@@ -203,7 +203,7 @@ |
||
203 | 203 | } elseif (false === $asFrame) { |
204 | 204 | self::send('X-Frame-Options: deny'); |
205 | 205 | } else { |
206 | - $asFrame = (string) $asFrame; |
|
206 | + $asFrame = (string)$asFrame; |
|
207 | 207 | self::send('X-Frame-Options: allow-from ' . $asFrame); |
208 | 208 | } |
209 | 209 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | public static function combine($keys, $values) |
179 | 179 | { |
180 | 180 | if (count($keys) == count($values)) { |
181 | - return (array) array_combine($keys, $values); |
|
181 | + return (array)array_combine($keys, $values); |
|
182 | 182 | } |
183 | 183 | $array = []; |
184 | 184 | foreach ($keys as $index => $key) { |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | } else { |
495 | 495 | $function = $callback; |
496 | 496 | if (false === is_callable($callback)) { |
497 | - $function = function ($row) use ($callback, $isStrict) { |
|
497 | + $function = function($row) use ($callback, $isStrict) { |
|
498 | 498 | return true === $isStrict ? $row === $callback : $row == $callback; |
499 | 499 | }; |
500 | 500 | } |
@@ -840,7 +840,7 @@ discard block |
||
840 | 840 | } |
841 | 841 | $header = array_keys($records[0]); |
842 | 842 | $arrays = self::values($records); |
843 | - return implode(',', $header) . PHP_EOL . implode(PHP_EOL, self::map($arrays, function ($array) { |
|
843 | + return implode(',', $header) . PHP_EOL . implode(PHP_EOL, self::map($arrays, function($array) { |
|
844 | 844 | return implode(',', $array); |
845 | 845 | })); |
846 | 846 | } |
@@ -931,7 +931,7 @@ discard block |
||
931 | 931 | return in_array($value, $array, $isStrict); |
932 | 932 | } else { |
933 | 933 | $value = Json::decode(strtolower(Json::encode($value))); |
934 | - $array = (array) Json::decode(strtolower(Json::encode($array))); |
|
934 | + $array = (array)Json::decode(strtolower(Json::encode($array))); |
|
935 | 935 | return in_array($value, $array, $isStrict); |
936 | 936 | } |
937 | 937 | } |