@@ -6,7 +6,7 @@ |
||
| 6 | 6 | if (PHP_SAPI === 'cli-server') { |
| 7 | 7 | 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'])) { |
| 8 | 8 | if (file_exists(__DIR__ . $_SERVER["REQUEST_URI"])) { |
| 9 | - return false; // serve the requested resource as-is. |
|
| 9 | + return false; // serve the requested resource as-is. |
|
| 10 | 10 | } |
| 11 | 11 | } |
| 12 | 12 | } |
@@ -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 |