@@ -97,7 +97,7 @@ |
||
97 | 97 | public static function isLocalhost() |
98 | 98 | { |
99 | 99 | $ipchecklist = array("localhost", "127.0.0.1", "::1"); |
100 | - return in_array($_SERVER['REMOTE_ADDR'], $ipchecklist,true); |
|
100 | + return in_array($_SERVER['REMOTE_ADDR'], $ipchecklist, true); |
|
101 | 101 | } |
102 | 102 | } |
103 | 103 | } |
104 | 104 | \ No newline at end of file |
@@ -49,7 +49,7 @@ |
||
49 | 49 | if (PHP_SAPI === 'cli-server') { |
50 | 50 | if (preg_match('/\.(?:js|ico|txt|gif|jpg|jpeg|png|bmp|css|html|htm|php|pdf|exe|eot|svg|ttf|woff|ogg|mp3|xml|map|scss)$/', $_SERVER['REQUEST_URI'])) { |
51 | 51 | if (file_exists($dir . $_SERVER["REQUEST_URI"])) { |
52 | - return true; // serve the requested resource as-is. |
|
52 | + return true; // serve the requested resource as-is. |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | } |