@@ -44,7 +44,7 @@ |
||
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 |
@@ -24,11 +24,11 @@ |
||
24 | 24 | $this->app->bind(VeloStations::class); |
25 | 25 | |
26 | 26 | if (app()->environment('testing')) { |
27 | - $this->app->bind('velo-stations', function () { |
|
27 | + $this->app->bind('velo-stations', function() { |
|
28 | 28 | return new VeloStations(new VeloClientMock()); |
29 | 29 | }); |
30 | 30 | } else { |
31 | - $this->app->bind('velo-stations', function () { |
|
31 | + $this->app->bind('velo-stations', function() { |
|
32 | 32 | return new VeloStations(new VeloClient()); |
33 | 33 | }); |
34 | 34 | } |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | public function all() |
17 | 17 | { |
18 | - $stations = $this->veloClient->fetchStations()->map(function($station){ |
|
18 | + $stations = $this->veloClient->fetchStations()->map(function($station) { |
|
19 | 19 | return new Station($station); |
20 | 20 | }); |
21 | 21 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $stations = $this->all(); |
28 | 28 | $statuses = $this->statuses(); |
29 | 29 | |
30 | - $stationsWithStatus = $stations->map(function ($station) use ($statuses) { |
|
30 | + $stationsWithStatus = $stations->map(function($station) use ($statuses) { |
|
31 | 31 | $station->setStatus(collect($statuses)->firstWhere('id', $station->id)); |
32 | 32 | return $station; |
33 | 33 | }); |