@@ -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); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | $this->mergeConfigFrom(__DIR__.'/../config/laravel-velo-api.php', 'laravel-velo-api'); |
22 | 22 | |
23 | - $this->app->bind('velo', function () { |
|
23 | + $this->app->bind('velo', function() { |
|
24 | 24 | return new Velo(new VeloClient()); |
25 | 25 | }); |
26 | 26 | } |
@@ -44,7 +44,7 @@ discard block |
||
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 | |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | $stations = $this->fetchStations(); |
124 | 124 | $statuses = $this->fetchStationsStatuses(); |
125 | 125 | |
126 | - $stationsWithStatus = $stations->map(function ($station) use ($statuses) { |
|
126 | + $stationsWithStatus = $stations->map(function($station) use ($statuses) { |
|
127 | 127 | return (object) array_merge((array) $station, (array) collect($statuses)->firstWhere('id', $station->id)); |
128 | 128 | }); |
129 | 129 |