1
0
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:
StyleCI Bot
2022-12-21 22:45:50 +00:00
parent ab8c4e8c4a
commit e9e865e8f2
2 changed files with 4 additions and 5 deletions

View File

@@ -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();
}