mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 01:00:09 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -25,9 +25,9 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Take any steps necessary before loading the front controller for this driver.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
|
||||
|
||||
@@ -16,7 +16,7 @@ class JigsawValetDriver extends BasicValetDriver
|
||||
*/
|
||||
public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
{
|
||||
return is_dir($sitePath . '/build_local');
|
||||
return is_dir($sitePath.'/build_local');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,9 +22,9 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Take any steps necessary before loading the front controller for this driver.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
|
||||
|
||||
@@ -16,7 +16,7 @@ class KatanaValetDriver extends BasicValetDriver
|
||||
*/
|
||||
public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
{
|
||||
return file_exists($sitePath . '/katana');
|
||||
return file_exists($sitePath.'/katana');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -22,16 +22,16 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Take any steps necessary before loading the front controller for this driver.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
|
||||
{
|
||||
putenv('FLOW_CONTEXT=Development');
|
||||
putenv('FLOW_REWRITEURLS=1');
|
||||
$_SERVER['SCRIPT_FILENAME'] = $sitePath . '/Web/index.php';
|
||||
$_SERVER['SCRIPT_FILENAME'] = $sitePath.'/Web/index.php';
|
||||
$_SERVER['SCRIPT_NAME'] = '/index.php';
|
||||
}
|
||||
|
||||
|
||||
@@ -44,9 +44,9 @@ class Typo3ValetDriver extends ValetDriver
|
||||
/**
|
||||
* Take any steps necessary before loading the front controller for this driver.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
|
||||
@@ -54,7 +54,7 @@ public function beforeLoading(string $sitePath, string $siteName, string $uri):
|
||||
// without modifying the URI, redirect if necessary
|
||||
$this->handleRedirectBackendShorthandUris($uri);
|
||||
|
||||
$_SERVER['SERVER_NAME'] = $siteName . '.dev';
|
||||
$_SERVER['SERVER_NAME'] = $siteName.'.dev';
|
||||
$_SERVER['DOCUMENT_URI'] = $uri;
|
||||
$_SERVER['SCRIPT_NAME'] = $uri;
|
||||
$_SERVER['PHP_SELF'] = $uri;
|
||||
|
||||
@@ -22,9 +22,9 @@ public function serves(string $sitePath, string $siteName, string $uri): bool
|
||||
/**
|
||||
* Take any steps necessary before loading the front controller for this driver.
|
||||
*
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @param string $sitePath
|
||||
* @param string $siteName
|
||||
* @param string $uri
|
||||
* @return void
|
||||
*/
|
||||
public function beforeLoading(string $sitePath, string $siteName, string $uri): void
|
||||
|
||||
Reference in New Issue
Block a user