Passed
Push — master ( 12f961...e1bf1d )
by Evert
03:22
created
src/VeloClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 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
 
Please login to merge, or discard this patch.
src/VeloServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,11 +24,11 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/VeloStations.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.