@@ -49,7 +49,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -61,8 +61,7 @@ |
||
| 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); |
@@ -38,7 +38,7 @@ |
||
| 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 | |