mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 16:50:09 +01:00
Apply fixes from StyleCI
This commit is contained in:
@@ -71,7 +71,7 @@ public static function showDirectoryListing(string $valetSitePath, string $uri)
|
||||
// Output the HTML for the directory listing
|
||||
echo "<h1>Index of $uri</h1>";
|
||||
echo '<hr>';
|
||||
echo implode("<br>".PHP_EOL, array_map(function ($path) use ($uri, $is_root) {
|
||||
echo implode('<br>'.PHP_EOL, array_map(function ($path) use ($uri, $is_root) {
|
||||
$file = basename($path);
|
||||
|
||||
return ($is_root) ? "<a href='/$file'>/$file</a>" : "<a href='$uri/$file'>$uri/$file/</a>";
|
||||
|
||||
Reference in New Issue
Block a user