@@ -112,7 +112,7 @@ |
||
112 | 112 | protected function startColumn() |
113 | 113 | { |
114 | 114 | // get class name using width array |
115 | - $classnName = collect($this->width)->map(function ($value, $key) { |
|
115 | + $classnName = collect($this->width)->map(function($value, $key) { |
|
116 | 116 | return "col-$key-$value"; |
117 | 117 | })->implode(' '); |
118 | 118 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | @if($errors->hasBag('exception') && config('app.debug') == true) |
2 | - <?php $error = $errors->getBag('exception');?> |
|
2 | + <?php $error = $errors->getBag('exception'); ?> |
|
3 | 3 | <div class="alert alert-warning alert-dismissable"> |
4 | 4 | <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> |
5 | 5 | <h4> |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | return $next($request); |
34 | 34 | } |
35 | 35 | |
36 | - if (!Admin::user()->allPermissions()->first(function ($permission) use ($request) { |
|
36 | + if (!Admin::user()->allPermissions()->first(function($permission) use ($request) { |
|
37 | 37 | return $permission->shouldPassThrough($request); |
38 | 38 | })) { |
39 | 39 | Checker::error(); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function checkRoutePermission(Request $request) |
54 | 54 | { |
55 | - if (!$middleware = collect($request->route()->middleware())->first(function ($middleware) { |
|
55 | + if (!$middleware = collect($request->route()->middleware())->first(function($middleware) { |
|
56 | 56 | return Str::startsWith($middleware, $this->middlewarePrefix); |
57 | 57 | })) { |
58 | 58 | return false; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | return collect($excepts) |
89 | 89 | ->map('admin_base_path') |
90 | - ->contains(function ($except) use ($request) { |
|
90 | + ->contains(function($except) use ($request) { |
|
91 | 91 | if ($except !== '/') { |
92 | 92 | $except = trim($except, '/'); |
93 | 93 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | return collect($excepts) |
45 | 45 | ->map('admin_base_path') |
46 | - ->contains(function ($except) use ($request) { |
|
46 | + ->contains(function($except) use ($request) { |
|
47 | 47 | if ($except !== '/') { |
48 | 48 | $except = trim($except, '/'); |
49 | 49 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | $eagerLoads = array_keys($this->getQuery()->getEagerLoads()); |
51 | 51 | |
52 | - $columns = collect($columns)->reject(function ($column) use ($eagerLoads) { |
|
52 | + $columns = collect($columns)->reject(function($column) use ($eagerLoads) { |
|
53 | 53 | return Str::contains($column, '.') || in_array($column, $eagerLoads); |
54 | 54 | }); |
55 | 55 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $columns = $titles; |
24 | 24 | } |
25 | 25 | |
26 | - $data = array_map(function ($item) use ($columns) { |
|
26 | + $data = array_map(function($item) use ($columns) { |
|
27 | 27 | $sorted = []; |
28 | 28 | |
29 | 29 | $arr = Arr::only($item, $columns); |
@@ -65,7 +65,7 @@ |
||
65 | 65 | |
66 | 66 | $this->value = Arr::get($inputs, $this->column); |
67 | 67 | |
68 | - $value = array_filter($this->value, function ($val) { |
|
68 | + $value = array_filter($this->value, function($val) { |
|
69 | 69 | return $val !== ''; |
70 | 70 | }); |
71 | 71 |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | { |
198 | 198 | static::$branchOrder = array_flip(Arr::flatten($order)); |
199 | 199 | |
200 | - static::$branchOrder = array_map(function ($item) { |
|
200 | + static::$branchOrder = array_map(function($item) { |
|
201 | 201 | return ++$item; |
202 | 202 | }, static::$branchOrder); |
203 | 203 | } |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | { |
295 | 295 | parent::boot(); |
296 | 296 | |
297 | - static::saving(function (Model $branch) { |
|
297 | + static::saving(function(Model $branch) { |
|
298 | 298 | $parentColumn = $branch->getParentColumn(); |
299 | 299 | |
300 | 300 | if (Request::has($parentColumn) && Request::input($parentColumn) == $branch->getKey()) { |
@@ -21,20 +21,20 @@ |
||
21 | 21 | public static function environment() |
22 | 22 | { |
23 | 23 | $envs = [ |
24 | - ['name' => 'PHP version', 'value' => 'PHP/'.PHP_VERSION], |
|
25 | - ['name' => 'Laravel version', 'value' => app()->version()], |
|
26 | - ['name' => 'CGI', 'value' => php_sapi_name()], |
|
27 | - ['name' => 'Uname', 'value' => php_uname()], |
|
28 | - ['name' => 'Server', 'value' => Arr::get($_SERVER, 'SERVER_SOFTWARE')], |
|
24 | + ['name' => 'PHP version', 'value' => 'PHP/'.PHP_VERSION], |
|
25 | + ['name' => 'Laravel version', 'value' => app()->version()], |
|
26 | + ['name' => 'CGI', 'value' => php_sapi_name()], |
|
27 | + ['name' => 'Uname', 'value' => php_uname()], |
|
28 | + ['name' => 'Server', 'value' => Arr::get($_SERVER, 'SERVER_SOFTWARE')], |
|
29 | 29 | |
30 | - ['name' => 'Cache driver', 'value' => config('cache.default')], |
|
31 | - ['name' => 'Session driver', 'value' => config('session.driver')], |
|
32 | - ['name' => 'Queue driver', 'value' => config('queue.default')], |
|
30 | + ['name' => 'Cache driver', 'value' => config('cache.default')], |
|
31 | + ['name' => 'Session driver', 'value' => config('session.driver')], |
|
32 | + ['name' => 'Queue driver', 'value' => config('queue.default')], |
|
33 | 33 | |
34 | - ['name' => 'Timezone', 'value' => config('app.timezone')], |
|
35 | - ['name' => 'Locale', 'value' => config('app.locale')], |
|
36 | - ['name' => 'Env', 'value' => config('app.env')], |
|
37 | - ['name' => 'URL', 'value' => config('app.url')], |
|
34 | + ['name' => 'Timezone', 'value' => config('app.timezone')], |
|
35 | + ['name' => 'Locale', 'value' => config('app.locale')], |
|
36 | + ['name' => 'Env', 'value' => config('app.env')], |
|
37 | + ['name' => 'URL', 'value' => config('app.url')], |
|
38 | 38 | ]; |
39 | 39 | |
40 | 40 | return view('admin::dashboard.environment', compact('envs')); |