Passed
Pull Request — master (#2)
by Toby
02:29
created
src/Resource/BaseResource.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,10 +100,12 @@
 block discarded – undo
100 100
         foreach ($attributes as $attributeKey => $value)
101 101
         {
102 102
             $value = $this->castAttribute($attributeKey, $value);
103
-            if ($value !== null) // Will occur for customCasts, since we don't want the attribute to exist in this class but in the child resource
103
+            if ($value !== null) {
104
+                // Will occur for customCasts, since we don't want the attribute to exist in this class but in the child resource
104 105
             {
105 106
                 $this->attributes[$attributeKey] = $value;
106 107
             }
108
+            }
107 109
         }
108 110
     }
109 111
 
Please login to merge, or discard this patch.