Completed
Branch master (4aab2b)
by Tobias
09:46
created
src/ProviderAndDumperAggregator.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     protected $results;
30 30
 
31 31
     /**
32
-     * @return array
32
+     * @return \Geocoder\Model\Address[]
33 33
      */
34 34
     public function all()
35 35
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $dumper = new $dumperClass;
64 64
         $results = collect($this->results->all());
65 65
 
66
-        return $results->map(function ($result) use ($dumper) {
66
+        return $results->map(function($result) use ($dumper) {
67 67
             return $dumper->dump($result);
68 68
         });
69 69
     }
Please login to merge, or discard this patch.
src/Providers/GeocoderService.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * Instantiate the configured Providers, as well as the Chain Provider.
62 62
      *
63 63
      * @param Collection $providers
64
-     * @return array
64
+     * @return \Geocoder\Provider\Provider[]
65 65
      */
66 66
     private function getProviders(Collection $providers)
67 67
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * Get the services provided by the provider.
131 131
      *
132
-     * @return array
132
+     * @return string[]
133 133
      */
134 134
     public function provides()
135 135
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 use Geocoder\Laravel\Facades\Geocoder;
13 13
 use Geocoder\Laravel\ProviderAndDumperAggregator;
14 14
 use Geocoder\Provider\Chain;
15
-use Illuminate\Foundation\AliasLoader;
16 15
 use Illuminate\Support\Collection;
17 16
 use Illuminate\Support\ServiceProvider;
18 17
 use ReflectionClass;
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
             $geocoder = new ProviderAndDumperAggregator();
52 52
             $geocoder->registerProviders(
53 53
                 $this->getProviders(collect(config('geocoder.providers')))
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     private function getProviders(Collection $providers)
67 67
     {
68
-        $providers = $providers->map(function ($arguments, $provider) {
68
+        $providers = $providers->map(function($arguments, $provider) {
69 69
             $arguments = $this->getArguments($arguments, $provider);
70 70
             $reflection = new ReflectionClass($provider);
71 71
 
@@ -133,6 +133,6 @@  discard block
 block discarded – undo
133 133
      */
134 134
     public function provides()
135 135
     {
136
-        return ['geocoder'];
136
+        return [ 'geocoder' ];
137 137
     }
138 138
 }
Please login to merge, or discard this patch.
config/geocoder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
                 true,
27 27
                 env('GOOGLE_MAPS_API_KEY'),
28 28
             ],
29
-            FreeGeoIp::class  => [],
29
+            FreeGeoIp::class  => [ ],
30 30
         ],
31 31
         BingMaps::class => [
32 32
             'en-US',
Please login to merge, or discard this patch.