Passed
Pull Request — master (#42)
by Raed
10: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   +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.