Completed
Push — 2.0 ( 98f64c...181db1 )
by Olivier
02:10
created
lib/ErrorCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
lib/ErrorCollectionIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
 	/**
Please login to merge, or discard this patch.