|
@@ -44,7 +44,7 @@ discard block |
|
|
block discarded – undo |
|
44
|
44
|
|
|
45
|
45
|
$access_token = json_decode($response->getBody()->getContents())->access_token; |
|
46
|
46
|
|
|
47
|
|
- if (! empty($access_token)) { |
|
|
47
|
+ if (!empty($access_token)) { |
|
48
|
48
|
return $access_token; |
|
49
|
49
|
} |
|
50
|
50
|
|
|
@@ -124,7 +124,7 @@ discard block |
|
|
block discarded – undo |
|
124
|
124
|
$statuses = $this->fetchStationsStatuses(); |
|
125
|
125
|
|
|
126
|
126
|
$stationsWithStatus = $stations->map(function($station) use($statuses){ |
|
127
|
|
- return (object) array_merge((array)$station, (array) collect($statuses)->firstWhere('id', $station->id)); |
|
|
127
|
+ return (object) array_merge((array) $station, (array) collect($statuses)->firstWhere('id', $station->id)); |
|
128
|
128
|
}); |
|
129
|
129
|
|
|
130
|
130
|
return $stationsWithStatus; |
Please login to merge, or discard this patch.