@@ -151,7 +151,7 @@ |
||
151 | 151 | while ($file = readdir($openFolder)) { |
152 | 152 | if ($file != '.' && $file != '..') { |
153 | 153 | // Remove file |
154 | - $recursiveDelete = function ($str) use (&$recursiveDelete) { |
|
154 | + $recursiveDelete = function($str) use (&$recursiveDelete) { |
|
155 | 155 | if (is_file($str)) { |
156 | 156 | return @unlink($str); |
157 | 157 | } elseif (is_dir($str)) { |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | |
747 | 747 | public static function setTrustedHosts(array $hostPatterns) |
748 | 748 | { |
749 | - self::$trustedHostPatterns = array_map(function ($hostPattern) { |
|
749 | + self::$trustedHostPatterns = array_map(function($hostPattern) { |
|
750 | 750 | return sprintf('#%s#i', $hostPattern); |
751 | 751 | }, $hostPatterns); |
752 | 752 | self::$trustedHosts = []; |
@@ -1558,7 +1558,7 @@ discard block |
||
1558 | 1558 | 503 => 'Service Unavailable', |
1559 | 1559 | 504 => 'Gateway Timeout', |
1560 | 1560 | 505 => 'HTTP Version Not Supported', |
1561 | - 506 => 'Variant Also Negotiates (Experimental)', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 510 => 'Not Extended', 511 => 'Network Authentication Required',]; |
|
1561 | + 506 => 'Variant Also Negotiates (Experimental)', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 510 => 'Not Extended', 511 => 'Network Authentication Required', ]; |
|
1562 | 1562 | |
1563 | 1563 | public function __construct($content = '', $status = 200, $headers = []) |
1564 | 1564 | { |
@@ -2525,7 +2525,7 @@ discard block |
||
2525 | 2525 | $alternatives = []; |
2526 | 2526 | foreach ($this->services as $key => $associatedService) { |
2527 | 2527 | $lev = levenshtein($id, $key); |
2528 | - if ($lev <= strlen($id) / 3 || false !== strpos($key, $id)) { |
|
2528 | + if ($lev <= strlen($id)/3 || false !== strpos($key, $id)) { |
|
2529 | 2529 | $alternatives[] = $key; |
2530 | 2530 | } |
2531 | 2531 | } |