Passed
Push — 2.0 ( 24c833...582908 )
by Samuel
02:05
created
src/Handlers/ModelNotFoundHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         $hasKey = in_array($entityName, $this->translationModelKeys());
60 60
 
61 61
         if ($hasKey) {
62
-            return ! empty($hasKey);
62
+            return !empty($hasKey);
63 63
         }
64 64
 
65 65
         return false;
Please login to merge, or discard this patch.
src/Handlers/ValidationHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
                     ->setTitle($attributes['title'])
29 29
                     ->setDetail($message);
30 30
 
31
-                if (! is_null($attributes['code'])) {
31
+                if (!is_null($attributes['code'])) {
32 32
                     $error->setCode($attributes['code']);
33 33
                 }
34 34
 
Please login to merge, or discard this patch.
src/Handlers/NotFoundHttpHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      */
27 27
     public function getNotFoundMessage()
28 28
     {
29
-        $message = ! empty($this->exception->getMessage())
29
+        $message = !empty($this->exception->getMessage())
30 30
             ? $this->exception->getMessage()
31 31
             : class_basename($this->exception);
32 32
 
Please login to merge, or discard this patch.
src/JsonApi/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             $this->errors->setStatusCode($errors->getStatus());
38 38
         }
39 39
 
40
-        if (! $this->errors instanceof ErrorCollection) {
40
+        if (!$this->errors instanceof ErrorCollection) {
41 41
             throw new InvalidArgumentException('The errors must be an array, '.Collection::class.','.Error::class.' or '.ErrorCollection::class.'.');
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Traits/NotNullArrayable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         $array = [];
17 17
         foreach (get_object_vars($this) as $attribute => $value) {
18
-            if (! is_null($value)) {
18
+            if (!is_null($value)) {
19 19
                 $array[$attribute] = $value instanceof Arrayable ? $value->toArray() : $value;
20 20
             }
21 21
         }
Please login to merge, or discard this patch.