Completed
Push — master ( 5081da...0415ba )
by
unknown
24:28
created
src/Providers/GeocoderService.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     /**
127 127
      * Get the services provided by the provider.
128 128
      *
129
-     * @return array
129
+     * @return string[]
130 130
      */
131 131
     public function provides()
132 132
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     public function boot()
36 36
     {
37 37
         $configPath = __DIR__ . '/../../config/geocoder.php';
38
-        $this->publishes([$configPath => config_path('geocoder.php')], 'config');
38
+        $this->publishes([ $configPath => config_path('geocoder.php') ], 'config');
39 39
         $this->mergeConfigFrom($configPath, 'geocoder');
40 40
     }
41 41
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function register()
48 48
     {
49 49
         $this->app->alias('Geocoder', Geocoder::class);
50
-        $this->app->singleton('geocoder', function () {
50
+        $this->app->singleton('geocoder', function() {
51 51
             return (new ProviderAndDumperAggregator)->registerProviders(
52 52
                 $this->getProviders(collect(config('geocoder.providers')))
53 53
             );
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      */
63 63
     private function getProviders(Collection $providers)
64 64
     {
65
-        $providers = $providers->map(function ($arguments, $provider) {
65
+        $providers = $providers->map(function($arguments, $provider) {
66 66
             $arguments = $this->getArguments($arguments, $provider);
67 67
             $reflection = new ReflectionClass($provider);
68 68
 
@@ -130,6 +130,6 @@  discard block
 block discarded – undo
130 130
      */
131 131
     public function provides()
132 132
     {
133
-        return ['geocoder'];
133
+        return [ 'geocoder' ];
134 134
     }
135 135
 }
Please login to merge, or discard this patch.
src/ProviderAndDumperAggregator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $dumper = new $dumperClass;
66 66
         $results = collect($this->results->all());
67 67
 
68
-        return $results->map(function ($result) use ($dumper) {
68
+        return $results->map(function($result) use ($dumper) {
69 69
             return $dumper->dump($result);
70 70
         });
71 71
     }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         $this->results = cache()->remember(
92 92
             "geocoder-{$cacheId}",
93 93
             config('geocoder.cache-duraction', 0),
94
-            function () use ($value) {
94
+            function() use ($value) {
95 95
                 return $this->aggregator->geocode($value);
96 96
             }
97 97
         );
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         $this->results = cache()->remember(
106 106
             "geocoder-{$cacheId}",
107 107
             config('geocoder.cache-duraction', 0),
108
-            function () use ($latitude, $longitude) {
108
+            function() use ($latitude, $longitude) {
109 109
                 return $this->aggregator->reverse($latitude, $longitude);
110 110
             }
111 111
         );
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         return $this;
133 133
     }
134 134
 
135
-    public function registerProviders($providers = [])
135
+    public function registerProviders($providers = [ ])
136 136
     {
137 137
         $this->aggregator->registerProviders($providers);
138 138
 
Please login to merge, or discard this patch.
src/GeocoderProviderAggregatorAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         return $this;
65 65
     }
66 66
 
67
-    public function registerProviders($providers = [])
67
+    public function registerProviders($providers = [ ])
68 68
     {
69 69
         $this->aggregator->registerProviders($providers);
70 70
 
Please login to merge, or discard this patch.