Passed
Push — 2.0 ( 50041b...cfd0e0 )
by Samuel
02:05
created
src/Handlers/ValidationHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
                     ->setTitle($title ?? $this->getDefaultTitle())
28 28
                     ->setDetail($message);
29 29
 
30
-                if (! is_null($code)) {
30
+                if (!is_null($code)) {
31 31
                     $error->setCode($code);
32 32
                 }
33 33
 
Please login to merge, or discard this patch.
src/Handlers/AbstractHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
             $errors = (new ErrorCollection)->push($errors)->setStatusCode($errors->getStatus());
117 117
         }
118 118
 
119
-        if (! $errors instanceof ErrorCollection) {
119
+        if (!$errors instanceof ErrorCollection) {
120 120
             throw new InvalidArgumentException('The errors must be an array, ['.Collection::class.'], ['.Error::class.'] or ['.ErrorCollection::class.'].');
121 121
         }
122 122
 
Please login to merge, or discard this patch.