@@ -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 | |
@@ -64,23 +64,23 @@ |
||
| 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 | } |