@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | public static function filter($value, int $minCount = 1, int $maxCount = PHP_INT_MAX) |
| 29 | 29 | { |
| 30 | 30 | if (!is_array($value)) { |
| 31 | - throw new FilterException("Value '" . trim(var_export($value, true), "'") . "' is not an array"); |
|
| 31 | + throw new FilterException("Value '".trim(var_export($value, true), "'")."' is not an array"); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | $count = count($value); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | if (!in_array($value, $haystack, $strict)) { |
| 64 | 64 | throw new FilterException( |
| 65 | - "Value '" . trim(var_export($value, true), "'") . "' is not in array " . var_export($haystack, true) |
|
| 65 | + "Value '".trim(var_export($value, true), "'")."' is not in array ".var_export($haystack, true) |
|
| 66 | 66 | ); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | |
| 87 | 87 | array_walk_recursive( |
| 88 | 88 | $value, |
| 89 | - function ($item) use (&$result) { |
|
| 89 | + function($item) use (&$result) { |
|
| 90 | 90 | $result[] = $item; |
| 91 | 91 | } |
| 92 | 92 | ); |