Completed
Push — master ( d09c49...b1a6d4 )
by Raed
16s queued 11s
created
src/GeoRoutesServiceProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         $this->publishes([__DIR__ . '/../config' => config_path('geo-routes')], 'config');
26 26
         $this->registerMacros();
27 27
         $this->registerGlobalMiddleware();
28
-        $this->app->extend('command.route.list', function ($command, $app) {
28
+        $this->app->extend('command.route.list', function($command, $app) {
29 29
             return new RouteListCommand($app['router']);
30 30
         });
31 31
     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $router = $this->app->make('router');
41 41
 
42
-        $this->app->singleton('georoutes.callbacks', function () {
42
+        $this->app->singleton('georoutes.callbacks', function() {
43 43
             $registrar = new CallbackRegistrar();
44 44
             $registrar->loadCallbacks(config('geo-routes.routes.callbacks'));
45 45
 
@@ -74,23 +74,23 @@  discard block
 block discarded – undo
74 74
      */
75 75
     protected function registerMacros()
76 76
     {
77
-        Route::macro('allowFrom', function (string ...$countries) {
77
+        Route::macro('allowFrom', function(string ...$countries) {
78 78
             return new GeoRoute($this, $countries, 'allow');
79 79
         });
80 80
 
81
-        Route::macro('denyFrom', function (string ...$countries) {
81
+        Route::macro('denyFrom', function(string ...$countries) {
82 82
             return new GeoRoute($this, $countries, 'deny');
83 83
         });
84 84
 
85
-        Route::macro('from', function (string ...$countries) {
85
+        Route::macro('from', function(string ...$countries) {
86 86
             return new GeoRoute($this, $countries, 'allow');
87 87
         });
88 88
 
89
-        Route::macro('geo', function (array $attributes, Closure $routes) {
89
+        Route::macro('geo', function(array $attributes, Closure $routes) {
90 90
             return new GeoGroup($attributes, $routes);
91 91
         });
92 92
 
93
-        Router::macro('geo', function (array $attributes, Closure $routes) {
93
+        Router::macro('geo', function(array $attributes, Closure $routes) {
94 94
             return new GeoGroup($attributes, $routes);
95 95
         });
96 96
     }
Please login to merge, or discard this patch.