@@ -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 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | */ |
18 | 18 | public function __construct(Application $app) |
19 | 19 | { |
20 | - $this->app = $app; |
|
20 | + $this->app = $app; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | /** |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | if (UserUtils::isBackendRole()) |
34 | 34 | { |
35 | 35 | UserUtils::setDisplayAllStatus(); |
36 | - }else{ |
|
36 | + } else { |
|
37 | 37 | UserUtils::forgotDisplayAllStatus(); |
38 | 38 | } |
39 | 39 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $order = 1; |
33 | 33 | foreach ($ids as $id) { |
34 | 34 | $instance = $this->model->find($id); |
35 | - if (! empty($instance)) { |
|
35 | + if (!empty($instance)) { |
|
36 | 36 | $instance->{$this->model->orderFieldName()} = $order; |
37 | 37 | $instance->save(); |
38 | 38 | $order++; |