@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (! function_exists('ddl')) { |
|
| 3 | +if (!function_exists('ddl')) { |
|
| 4 | 4 | function ddl($var, ...$moreVars) |
| 5 | 5 | { |
| 6 | 6 | $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1); |
@@ -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 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | |
| 29 | 29 | public function __get($key) |
| 30 | 30 | { |
| 31 | - if (! isset($this->values[$key])) { |
|
| 31 | + if (!isset($this->values[$key])) { |
|
| 32 | 32 | return; |
| 33 | 33 | } |
| 34 | 34 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | public function all() |
| 15 | 15 | { |
| 16 | - $stations = $this->veloClient->fetchStations()->map(function ($station) { |
|
| 16 | + $stations = $this->veloClient->fetchStations()->map(function($station) { |
|
| 17 | 17 | return new Station($station); |
| 18 | 18 | }); |
| 19 | 19 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $stations = $this->all(); |
| 26 | 26 | $statuses = $this->statuses(); |
| 27 | 27 | |
| 28 | - $stationsWithStatus = $stations->map(function ($station) use ($statuses) { |
|
| 28 | + $stationsWithStatus = $stations->map(function($station) use ($statuses) { |
|
| 29 | 29 | $station->setStatus(collect($statuses)->firstWhere('id', $station->id)); |
| 30 | 30 | |
| 31 | 31 | return $station; |