@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | \Route::group([ |
57 | 57 | 'middleware' => 'web', |
58 | 58 | 'namespace' => $this->namespace, |
59 | - ], function ($router) { |
|
59 | + ], function($router) { |
|
60 | 60 | |
61 | - require __DIR__ . '/../routes/web.php'; |
|
61 | + require __DIR__.'/../routes/web.php'; |
|
62 | 62 | }); |
63 | 63 | } |
64 | 64 | |
@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | 'middleware' => 'api', |
76 | 76 | 'namespace' => $this->namespace, |
77 | 77 | 'prefix' => 'api', |
78 | - ], function ($router) { |
|
79 | - require __DIR__ . '/../routes/api.php'; |
|
78 | + ], function($router) { |
|
79 | + require __DIR__.'/../routes/api.php'; |
|
80 | 80 | }); |
81 | 81 | } |
82 | 82 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | protected function registerRouter() |
15 | 15 | { |
16 | - $this->app['router'] = $this->app->share(function ($app) { |
|
16 | + $this->app['router'] = $this->app->share(function($app) { |
|
17 | 17 | return new Router($app['events'], $app); |
18 | 18 | }); |
19 | 19 | } |
@@ -16,13 +16,13 @@ |
||
16 | 16 | */ |
17 | 17 | public function handle($request, Closure $next, $guard = null) |
18 | 18 | { |
19 | - $ipsAuth = env('BASIC_AUTH_IP',''); |
|
20 | - $ipsAuth = explode(',',$ipsAuth); |
|
19 | + $ipsAuth = env('BASIC_AUTH_IP', ''); |
|
20 | + $ipsAuth = explode(',', $ipsAuth); |
|
21 | 21 | |
22 | 22 | |
23 | - if (env('BASIC_AUTH',false) == true) |
|
23 | + if (env('BASIC_AUTH', false) == true) |
|
24 | 24 | { |
25 | - if(empty($ipsAuth) || !in_array($request->ip(),$ipsAuth)) |
|
25 | + if (empty($ipsAuth) || !in_array($request->ip(), $ipsAuth)) |
|
26 | 26 | { |
27 | 27 | return $this->auth->guard($guard)->basic() ?: $next($request); |
28 | 28 | } |