Passed
Pull Request — master (#2)
by Toby
02:29
created
src/Request/UserGroupMembershipRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
             'GET'
79 79
         );
80 80
 
81
-        if($updatedAfter !== null) { $this->addQueryParameter('updated_at_after', $updatedAfter->format('d-m-y H:i:s')); }
82
-        if($updatedBefore !== null) { $this->addQueryParameter('updated_at_before', $updatedBefore->format('d-m-y H:i:s')); }
81
+        if ($updatedAfter !== null) { $this->addQueryParameter('updated_at_after', $updatedAfter->format('d-m-y H:i:s')); }
82
+        if ($updatedBefore !== null) { $this->addQueryParameter('updated_at_before', $updatedBefore->format('d-m-y H:i:s')); }
83 83
 
84 84
         $this->enableMode();
85 85
         $this->enablePagination();
Please login to merge, or discard this patch.
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.
src/Traits/CastsAttributes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         $collection = new ResourceCollection();
89 89
         foreach ($attributeValue as $resource)
90 90
         {
91
-            try{
91
+            try {
92 92
                 $collection->addResource(new $resourceClass($resource));
93 93
             } catch (\Exception $e)
94 94
             {
Please login to merge, or discard this patch.
src/Response/BaseResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -790,7 +790,7 @@
 block discarded – undo
790 790
                 $parsedResource = $this->parseResource($resource);
791 791
                 $resources->addResource($parsedResource);
792 792
             }
793
-        } catch(\Exception $e) {
793
+        } catch (\Exception $e) {
794 794
             // See the above TODO
795 795
         }
796 796
         return $resources;
Please login to merge, or discard this patch.