Passed
Pull Request — master (#42)
by Raed
10:11
created
src/GeoGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
      */
154 154
     public function attribute($key, $value)
155 155
     {
156
-        if (! in_array($key, $this->allowedAttributes)) {
156
+        if (!in_array($key, $this->allowedAttributes)) {
157 157
             throw new \InvalidArgumentException("Attribute [{$key}] does not exist.");
158 158
         }
159 159
 
Please login to merge, or discard this patch.
src/GeoRoutesServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     {
37 37
         $router = $this->app->make('router');
38 38
 
39
-        $this->app->singleton('georoutes.callbacks', function () {
39
+        $this->app->singleton('georoutes.callbacks', function() {
40 40
             $registrar = new CallbackRegistrar();
41 41
             $registrar->loadCallbacks(config('geo-routes.routes.callbacks'));
42 42
 
@@ -71,23 +71,23 @@  discard block
 block discarded – undo
71 71
      */
72 72
     protected function registerMacros()
73 73
     {
74
-        Route::macro('allowFrom', function (string ...$countries) {
74
+        Route::macro('allowFrom', function(string ...$countries) {
75 75
             return new GeoRoute($this, $countries, 'allow');
76 76
         });
77 77
 
78
-        Route::macro('denyFrom', function (string ...$countries) {
78
+        Route::macro('denyFrom', function(string ...$countries) {
79 79
             return new GeoRoute($this, $countries, 'deny');
80 80
         });
81 81
 
82
-        Route::macro('from', function (string ...$countries) {
82
+        Route::macro('from', function(string ...$countries) {
83 83
             return new GeoRoute($this, $countries, 'allow');
84 84
         });
85 85
 
86
-        Route::macro('geo', function (array $attributes, Closure $routes) {
86
+        Route::macro('geo', function(array $attributes, Closure $routes) {
87 87
             return new GeoGroup($attributes, $routes);
88 88
         });
89 89
 
90
-        Router::macro('geo', function (array $attributes, Closure $routes) {
90
+        Router::macro('geo', function(array $attributes, Closure $routes) {
91 91
             return new GeoGroup($attributes, $routes);
92 92
         });
93 93
     }
Please login to merge, or discard this patch.