@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | public static function combine($keys, $values) |
| 261 | 261 | { |
| 262 | 262 | if (count($keys) == count($values)) { |
| 263 | - return (array) array_combine($keys, $values); |
|
| 263 | + return (array)array_combine($keys, $values); |
|
| 264 | 264 | } |
| 265 | 265 | $array = []; |
| 266 | 266 | foreach ($keys as $index => $key) { |
@@ -663,7 +663,7 @@ discard block |
||
| 663 | 663 | } elseif (is_string($callback) || is_callable($callback)) { |
| 664 | 664 | $function = $callback; |
| 665 | 665 | if (is_string($callback)) { |
| 666 | - $function = function ($row) use ($callback, $isStrict) { |
|
| 666 | + $function = function($row) use ($callback, $isStrict) { |
|
| 667 | 667 | return true === $isStrict ? $row === $callback : $row == $callback; |
| 668 | 668 | }; |
| 669 | 669 | } |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | { |
| 51 | 51 | setlocale(LC_ALL, $locale); |
| 52 | 52 | clearstatcache(); |
| 53 | - $this->_functions['loader'] = function ($fileName) { |
|
| 53 | + $this->_functions['loader'] = function($fileName) { |
|
| 54 | 54 | $hashName = $this->__hash($fileName); |
| 55 | 55 | $this->_attributes[$hashName] = I::get($this->_attributes, $hashName, [ |
| 56 | 56 | 'isCached' => false, |
@@ -81,8 +81,8 @@ discard block |
||
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | curl_close($curl); |
| 84 | - } elseif ((bool) ini_get('allow_url_fopen')) { |
|
| 85 | - $headArray = (array) get_headers($fileName, 1); |
|
| 84 | + } elseif ((bool)ini_get('allow_url_fopen')) { |
|
| 85 | + $headArray = (array)get_headers($fileName, 1); |
|
| 86 | 86 | if (preg_match('/200/', $headArray[0])) { |
| 87 | 87 | $this->_attributes[$hashName]['isExists'] = true; |
| 88 | 88 | $this->_attributes[$hashName]['fileSize'] = $headArray['Content-Length']; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | private function __file($file) |
| 145 | 145 | { |
| 146 | - return (string) I::getAlias($file); |
|
| 146 | + return (string)I::getAlias($file); |
|
| 147 | 147 | } |
| 148 | 148 | |
| 149 | 149 | /** |
@@ -536,7 +536,7 @@ discard block |
||
| 536 | 536 | chmod($subFile, $mode); |
| 537 | 537 | } |
| 538 | 538 | } |
| 539 | - return (bool) chmod($file, $mode); |
|
| 539 | + return (bool)chmod($file, $mode); |
|
| 540 | 540 | } |
| 541 | 541 | |
| 542 | 542 | /** |