diff --git a/cli/Valet/Drivers/BasicWithPublicValetDriver.php b/cli/Valet/Drivers/BasicWithPublicValetDriver.php index 1b36681..1c473b0 100644 --- a/cli/Valet/Drivers/BasicWithPublicValetDriver.php +++ b/cli/Valet/Drivers/BasicWithPublicValetDriver.php @@ -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; diff --git a/tests/Drivers/BasicValetDriverTest.php b/tests/Drivers/BasicValetDriverTest.php index f69c29e..8955ddb 100644 --- a/tests/Drivers/BasicValetDriverTest.php +++ b/tests/Drivers/BasicValetDriverTest.php @@ -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') ); } diff --git a/tests/Drivers/BasicWithPublicValetDriverTest.php b/tests/Drivers/BasicWithPublicValetDriverTest.php index 6f2b1b2..b91a09e 100644 --- a/tests/Drivers/BasicWithPublicValetDriverTest.php +++ b/tests/Drivers/BasicWithPublicValetDriverTest.php @@ -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') ); }