@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public static function filter($value, int $minCount = 1, int $maxCount = PHP_INT_MAX) : array |
| 26 | 26 | { |
| 27 | 27 | if (!is_array($value)) { |
| 28 | - throw new FilterException("Value '" . trim(var_export($value, true), "'") . "' is not an array"); |
|
| 28 | + throw new FilterException("Value '".trim(var_export($value, true), "'")."' is not an array"); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | $count = count($value); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | { |
| 56 | 56 | if (!in_array($value, $haystack, $strict)) { |
| 57 | 57 | throw new FilterException( |
| 58 | - "Value '" . trim(var_export($value, true), "'") . "' is not in array " . var_export($haystack, true) |
|
| 58 | + "Value '".trim(var_export($value, true), "'")."' is not in array ".var_export($haystack, true) |
|
| 59 | 59 | ); |
| 60 | 60 | } |
| 61 | 61 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | { |
| 78 | 78 | $result = []; |
| 79 | 79 | |
| 80 | - $callBack = function ($item) use (&$result) { |
|
| 80 | + $callBack = function($item) use (&$result) { |
|
| 81 | 81 | $result[] = $item; |
| 82 | 82 | }; |
| 83 | 83 | |