@@ -39,13 +39,13 @@ discard block |
||
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 |
||
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. |
@@ -153,7 +153,7 @@ |
||
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 |
@@ -36,7 +36,7 @@ discard block |
||
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 |
||
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 | } |