mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Dry's up things
This commit is contained in:
@@ -84,13 +84,7 @@ function show_valet_404()
|
||||
/**
|
||||
* Determine if the incoming request is for a static file.
|
||||
*/
|
||||
$uriPathInfo = pathinfo($uri);
|
||||
|
||||
$isPhpFile = false;
|
||||
|
||||
if (isset($uriPathInfo['extension']) && $uriPathInfo['extension'] === 'php') {
|
||||
$isPhpFile = true;
|
||||
}
|
||||
$isPhpFile = pathinfo($uri, PATHINFO_EXTENSION) === 'php';
|
||||
|
||||
if ($uri !== '/' && ! $isPhpFile && $staticFilePath = $valetDriver->isStaticFile($valetSitePath, $siteName, $uri)) {
|
||||
return $valetDriver->serveStaticFile($staticFilePath, $valetSitePath, $siteName, $uri);
|
||||
|
||||
Reference in New Issue
Block a user