Passed
Pull Request — master (#34)
by Raed
04: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   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,23 +64,23 @@
 block discarded – undo
64 64
      */
65 65
     protected function registerMacros()
66 66
     {
67
-        Route::macro('allowFrom', function (string ...$countries) {
67
+        Route::macro('allowFrom', function(string ...$countries) {
68 68
             return new GeoRoute($this, $countries, 'allow');
69 69
         });
70 70
 
71
-        Route::macro('denyFrom', function (string ...$countries) {
71
+        Route::macro('denyFrom', function(string ...$countries) {
72 72
             return new GeoRoute($this, $countries, 'deny');
73 73
         });
74 74
 
75
-        Route::macro('from', function (string ...$countries) {
75
+        Route::macro('from', function(string ...$countries) {
76 76
             return new GeoRoute($this, $countries, 'allow');
77 77
         });
78 78
 
79
-        Route::macro('geo', function (array $attributes, Closure $routes) {
79
+        Route::macro('geo', function(array $attributes, Closure $routes) {
80 80
             return new GeoGroup($attributes, $routes);
81 81
         });
82 82
 
83
-        Router::macro('geo', function (array $attributes, Closure $routes) {
83
+        Router::macro('geo', function(array $attributes, Closure $routes) {
84 84
             return new GeoGroup($attributes, $routes);
85 85
         });
86 86
     }
Please login to merge, or discard this patch.