@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | */ |
282 | 282 | public function count() |
283 | 283 | { |
284 | - return count($this->collection, COUNT_RECURSIVE) - count($this->collection); |
|
284 | + return count($this->collection, COUNT_RECURSIVE) - count($this->collection); |
|
285 | 285 | } |
286 | 286 | |
287 | 287 | /** |
@@ -299,6 +299,6 @@ discard block |
||
299 | 299 | */ |
300 | 300 | public function to_array() |
301 | 301 | { |
302 | - return array_filter(array_merge([ self::GENERIC => [] ], $this->collection)); |
|
302 | + return array_filter(array_merge([self::GENERIC => []], $this->collection)); |
|
303 | 303 | } |
304 | 304 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | public function __construct(ErrorCollection $collection, callable $render_error = null) |
34 | 34 | { |
35 | 35 | $this->collection = $collection; |
36 | - $this->render_error = $render_error ?: function (Error $error) { return (string) $error; }; |
|
36 | + $this->render_error = $render_error ?: function(Error $error) { return (string) $error; }; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |