Skip to content

Commit a0dbae7

Browse files
vicdelfantadamwathan
authored andcommitted
Shortened isset()
1 parent 745005d commit a0dbae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/drivers/LaravelValetDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function isStaticFile($sitePath, $siteName, $uri)
5454
public function frontControllerPath($sitePath, $siteName, $uri)
5555
{
5656
// Shortcut for getting the "local" hostname as the HTTP_HOST
57-
if (isset($_SERVER['HTTP_X_ORIGINAL_HOST']) && isset($_SERVER['HTTP_X_FORWARDED_HOST'])) {
57+
if (isset($_SERVER['HTTP_X_ORIGINAL_HOST'], $_SERVER['HTTP_X_FORWARDED_HOST'])) {
5858
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
5959
}
6060

0 commit comments

Comments
 (0)