mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 08:40:09 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -43,7 +43,7 @@ public static function domainFromSiteName(string $siteName): string
|
||||
public static function show404()
|
||||
{
|
||||
http_response_code(404);
|
||||
require __DIR__ . '/cli/templates/404.html';
|
||||
require __DIR__.'/cli/templates/404.html';
|
||||
exit;
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ public static function show404()
|
||||
public static function showDirectoryListing(string $valetSitePath, string $uri)
|
||||
{
|
||||
$is_root = ($uri == '/');
|
||||
$directory = ($is_root) ? $valetSitePath : $valetSitePath . $uri;
|
||||
$directory = ($is_root) ? $valetSitePath : $valetSitePath.$uri;
|
||||
|
||||
if (!file_exists($directory)) {
|
||||
if (! file_exists($directory)) {
|
||||
static::show404();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user