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