Passed
Push — develop ( 2390ef...f7a57e )
by Daniel
24:40 queued 09:37
created
src/Responses/Events/RetrieveResponse.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function from(array $attributes, $included = []): self
51 51
     {
52
-        if(empty($included)) {
52
+        if (empty($included)) {
53 53
             $location = LocationsRetrieveResponse::from([
54 54
                 'attributes' => [
55 55
                     'address_text' => null,
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
         else {
66 66
             foreach ($included as $includedData) {
67
-                if($includedData['type'] === 'location' && $includedData['id'] = $attributes['relationships']['location']['data']['id']) {
67
+                if ($includedData['type'] === 'location' && $includedData['id'] = $attributes['relationships']['location']['data']['id']) {
68 68
                     $location = LocationsRetrieveResponse::from($includedData);
69 69
                 }
70 70
             }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,7 @@
 block discarded – undo
61 61
                 ],
62 62
                 'id' => $attributes['relationships']['location']['data']['id']
63 63
             ]);
64
-        }
65
-        else {
64
+        } else {
66 65
             foreach ($included as $includedData) {
67 66
                 if($includedData['type'] === 'location' && $includedData['id'] = $attributes['relationships']['location']['data']['id']) {
68 67
                     $location = LocationsRetrieveResponse::from($includedData);
Please login to merge, or discard this patch.
src/Responses/Events/ListResponse.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public static function from(array $attributes): self
39 39
     {
40 40
         $included = [];
41
-        if(array_key_exists('included', $attributes)) {
41
+        if (array_key_exists('included', $attributes)) {
42 42
             $included = $attributes['included'];
43 43
         }
44 44
 
Please login to merge, or discard this patch.