Passed
Pull Request — master (#34)
by Raed
04:11
created
src/GeoGroup.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
     protected $router;
40 40
 
41 41
     /**
42
-    * The attributes that can be set through this class.
43
-    *
44
-    * @var array
45
-    */
42
+     * The attributes that can be set through this class.
43
+     *
44
+     * @var array
45
+     */
46 46
     protected $allowedAttributes = [
47
-       'as', 'domain', 'middleware', 'name', 'namespace', 'prefix', 'where',
48
-   ];
47
+        'as', 'domain', 'middleware', 'name', 'namespace', 'prefix', 'where',
48
+    ];
49 49
 
50 50
     /**
51 51
      * The attributes that are aliased.
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
      * @var array
54 54
      */
55 55
     protected $aliases = [
56
-       'name' => 'as',
57
-   ];
56
+        'name' => 'as',
57
+    ];
58 58
 
59 59
     /**
60 60
      * Create a new GeoGroup instance.
Please login to merge, or discard this 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.