mirror of
https://github.com/laravel/valet.git
synced 2026-02-07 01:00:09 +01:00
Fix code styling
This commit is contained in:
committed by
github-actions[bot]
parent
92c135e2dd
commit
f37a474700
@@ -34,7 +34,7 @@ public function isStaticFile(string $sitePath, string $siteName, string $uri)/*:
|
||||
$route = parse_url(substr($uri, 1))['path'];
|
||||
|
||||
$pub = '';
|
||||
if ('developer' === $this->mageMode) {
|
||||
if ($this->mageMode === 'developer') {
|
||||
$pub = 'pub/';
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public function isStaticFile(string $sitePath, string $siteName, string $uri)/*:
|
||||
}
|
||||
|
||||
$magentoPackagePubDir = $sitePath;
|
||||
if ('developer' !== $this->mageMode) {
|
||||
if ($this->mageMode !== 'developer') {
|
||||
$magentoPackagePubDir .= '/pub';
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ private function handleForVersions($route): string
|
||||
*/
|
||||
private function checkMageMode($sitePath): void
|
||||
{
|
||||
if (null !== $this->mageMode) {
|
||||
if ($this->mageMode !== null) {
|
||||
// We have already figure out mode, no need to check it again
|
||||
return;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ public function frontControllerPath(string $sitePath, string $siteName, string $
|
||||
{
|
||||
$this->checkMageMode($sitePath);
|
||||
|
||||
if ('developer' === $this->mageMode) {
|
||||
if ($this->mageMode === 'developer') {
|
||||
$_SERVER['DOCUMENT_ROOT'] = $sitePath;
|
||||
|
||||
return $sitePath.'/index.php';
|
||||
|
||||
Reference in New Issue
Block a user