@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public function display($style) |
8 | 8 | { |
9 | - $style = collect((array) $style)->map(function ($style) { |
|
9 | + $style = collect((array) $style)->map(function($style) { |
|
10 | 10 | return 'btn-'.$style; |
11 | 11 | })->implode(' '); |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | { |
7 | 7 | public function display($style = 'primary', $size = 'sm', $max = 100) |
8 | 8 | { |
9 | - $style = collect((array) $style)->map(function ($style) { |
|
9 | + $style = collect((array) $style)->map(function($style) { |
|
10 | 10 | return 'progress-bar-'.$style; |
11 | 11 | })->implode(' '); |
12 | 12 |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | protected function prepareValue($key, $record) |
163 | 163 | { |
164 | - $field = $this->fields->first(function (Field $field) use ($key) { |
|
164 | + $field = $this->fields->first(function(Field $field) use ($key) { |
|
165 | 165 | return in_array($key, (array) $field->column()); |
166 | 166 | }); |
167 | 167 | |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | if (array_key_exists($key, $this->original)) { |
185 | 185 | $values = $this->original[$key]; |
186 | 186 | |
187 | - $this->fields->each(function (Field $field) use ($values) { |
|
187 | + $this->fields->each(function(Field $field) use ($values) { |
|
188 | 188 | $field->setOriginal($values); |
189 | 189 | }); |
190 | 190 | } |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | */ |
200 | 200 | public function fill(array $data) |
201 | 201 | { |
202 | - $this->fields->each(function (Field $field) use ($data) { |
|
202 | + $this->fields->each(function(Field $field) use ($data) { |
|
203 | 203 | $field->fill($data); |
204 | 204 | }); |
205 | 205 |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | { |
197 | 197 | static::$branchOrder = array_flip(array_flatten($order)); |
198 | 198 | |
199 | - static::$branchOrder = array_map(function ($item) { |
|
199 | + static::$branchOrder = array_map(function($item) { |
|
200 | 200 | return ++$item; |
201 | 201 | }, static::$branchOrder); |
202 | 202 | } |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | { |
291 | 291 | parent::boot(); |
292 | 292 | |
293 | - static::saving(function (Model $branch) { |
|
293 | + static::saving(function(Model $branch) { |
|
294 | 294 | $parentColumn = $branch->getParentColumn(); |
295 | 295 | |
296 | 296 | if (Request::has($parentColumn) && Request::input($parentColumn) == $branch->getKey()) { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | { |
135 | 135 | $this->name = $this->getStoreName($file); |
136 | 136 | |
137 | - return tap($this->upload($file), function () { |
|
137 | + return tap($this->upload($file), function() { |
|
138 | 138 | $this->name = null; |
139 | 139 | }); |
140 | 140 | } |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $this->callInterventionMethods($image->getRealPath()); |
35 | 35 | |
36 | - return tap($this->upload($image), function () { |
|
36 | + return tap($this->upload($image), function() { |
|
37 | 37 | $this->name = null; |
38 | 38 | }); |
39 | 39 | } |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public static function respond(Response $response) |
49 | 49 | { |
50 | - $next = function () use ($response) { |
|
50 | + $next = function() use ($response) { |
|
51 | 51 | return $response; |
52 | 52 | }; |
53 | 53 | |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | */ |
140 | 140 | protected function decodeUtf8HtmlEntities($html) |
141 | 141 | { |
142 | - return preg_replace_callback('/(&#[0-9]+;)/', function ($html) { |
|
142 | + return preg_replace_callback('/(&#[0-9]+;)/', function($html) { |
|
143 | 143 | return mb_convert_encoding($html[1], 'UTF-8', 'HTML-ENTITIES'); |
144 | 144 | }, $html); |
145 | 145 | } |
@@ -20,20 +20,20 @@ |
||
20 | 20 | public static function environment() |
21 | 21 | { |
22 | 22 | $envs = [ |
23 | - ['name' => 'PHP version', 'value' => 'PHP/'.PHP_VERSION], |
|
24 | - ['name' => 'Laravel version', 'value' => app()->version()], |
|
25 | - ['name' => 'CGI', 'value' => php_sapi_name()], |
|
26 | - ['name' => 'Uname', 'value' => php_uname()], |
|
27 | - ['name' => 'Server', 'value' => array_get($_SERVER, 'SERVER_SOFTWARE')], |
|
23 | + ['name' => 'PHP version', 'value' => 'PHP/'.PHP_VERSION], |
|
24 | + ['name' => 'Laravel version', 'value' => app()->version()], |
|
25 | + ['name' => 'CGI', 'value' => php_sapi_name()], |
|
26 | + ['name' => 'Uname', 'value' => php_uname()], |
|
27 | + ['name' => 'Server', 'value' => array_get($_SERVER, 'SERVER_SOFTWARE')], |
|
28 | 28 | |
29 | - ['name' => 'Cache driver', 'value' => config('cache.default')], |
|
30 | - ['name' => 'Session driver', 'value' => config('session.driver')], |
|
31 | - ['name' => 'Queue driver', 'value' => config('queue.default')], |
|
29 | + ['name' => 'Cache driver', 'value' => config('cache.default')], |
|
30 | + ['name' => 'Session driver', 'value' => config('session.driver')], |
|
31 | + ['name' => 'Queue driver', 'value' => config('queue.default')], |
|
32 | 32 | |
33 | - ['name' => 'Timezone', 'value' => config('app.timezone')], |
|
34 | - ['name' => 'Locale', 'value' => config('app.locale')], |
|
35 | - ['name' => 'Env', 'value' => config('app.env')], |
|
36 | - ['name' => 'URL', 'value' => config('app.url')], |
|
33 | + ['name' => 'Timezone', 'value' => config('app.timezone')], |
|
34 | + ['name' => 'Locale', 'value' => config('app.locale')], |
|
35 | + ['name' => 'Env', 'value' => config('app.env')], |
|
36 | + ['name' => 'URL', 'value' => config('app.url')], |
|
37 | 37 | ]; |
38 | 38 | |
39 | 39 | return view('admin::dashboard.environment', compact('envs')); |
@@ -168,7 +168,7 @@ |
||
168 | 168 | * |
169 | 169 | * @param string $target |
170 | 170 | * |
171 | - * @return mixed |
|
171 | + * @return string |
|
172 | 172 | */ |
173 | 173 | protected function getClass($target) : string |
174 | 174 | { |
@@ -105,7 +105,7 @@ |
||
105 | 105 | throw new \InvalidArgumentException("[$model] must be a valid model class"); |
106 | 106 | } |
107 | 107 | |
108 | - $this->options = function ($value) use ($model, $idField, $textField) { |
|
108 | + $this->options = function($value) use ($model, $idField, $textField) { |
|
109 | 109 | if (empty($value)) { |
110 | 110 | return []; |
111 | 111 | } |