mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 16:40:05 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -31,8 +31,8 @@ public function isStaticFile($sitePath, $siteName, $uri)
|
||||
|
||||
if ($this->isActualFile($publicPath)) {
|
||||
return $publicPath;
|
||||
} elseif (file_exists($publicPath . '/index.html')) {
|
||||
return $publicPath . '/index.html';
|
||||
} elseif (file_exists($publicPath.'/index.html')) {
|
||||
return $publicPath.'/index.html';
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -34,7 +34,7 @@ public function test_it_serves_directory_with_index_php()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$this->assertEquals(
|
||||
$projectPath . '/about/index.php',
|
||||
$projectPath.'/about/index.php',
|
||||
$driver->frontControllerPath($projectPath, 'my-site', '/about')
|
||||
);
|
||||
}
|
||||
@@ -47,7 +47,7 @@ public function test_it_routes_to_index_if_404()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$this->assertEquals(
|
||||
$projectPath . '/index.php',
|
||||
$projectPath.'/index.php',
|
||||
$driver->frontControllerPath($projectPath, 'my-site', '/not-a-real-url')
|
||||
);
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public function test_it_serves_directory_with_index_html()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$this->assertEquals(
|
||||
$projectPath . '/team/index.html',
|
||||
$projectPath.'/team/index.html',
|
||||
$driver->isStaticFile($projectPath, 'my-site', '/team')
|
||||
);
|
||||
}
|
||||
@@ -73,7 +73,7 @@ public function test_it_serves_static_files()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$this->assertEquals(
|
||||
$projectPath . '/assets/document.txt',
|
||||
$projectPath.'/assets/document.txt',
|
||||
$driver->isStaticFile($projectPath, 'my-site', '/assets/document.txt')
|
||||
);
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public function test_it_serves_php_files_from_public()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$this->assertEquals(
|
||||
$projectPath . '/public/file-in-public.php',
|
||||
$projectPath.'/public/file-in-public.php',
|
||||
$driver->frontControllerPath($projectPath, 'my-site', '/file-in-public.php')
|
||||
);
|
||||
}
|
||||
@@ -52,7 +52,7 @@ public function test_it_serves_directory_with_index_php()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$this->assertEquals(
|
||||
$projectPath . '/public/about/index.php',
|
||||
$projectPath.'/public/about/index.php',
|
||||
$driver->frontControllerPath($projectPath, 'my-site', '/about')
|
||||
);
|
||||
}
|
||||
@@ -65,7 +65,7 @@ public function test_it_route_to_public_index_if_404()
|
||||
$_SERVER['HTTP_HOST'] = 'this is set in Valet requests but not phpunit';
|
||||
|
||||
$this->assertEquals(
|
||||
$projectPath . '/public/index.php',
|
||||
$projectPath.'/public/index.php',
|
||||
$driver->frontControllerPath($projectPath, 'my-site', '/not-a-real-url')
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user