@@ -292,7 +292,7 @@ |
||
292 | 292 | /** |
293 | 293 | * Get the html and script of template. |
294 | 294 | * |
295 | - * @return array |
|
295 | + * @return string[] |
|
296 | 296 | */ |
297 | 297 | public function getTemplateHtmlAndScript() |
298 | 298 | { |
@@ -209,7 +209,7 @@ |
||
209 | 209 | $values = $this->original[$key]; |
210 | 210 | } |
211 | 211 | |
212 | - $this->fields->each(function (Field $field) use ($values) { |
|
212 | + $this->fields->each(function(Field $field) use ($values) { |
|
213 | 213 | $field->setOriginal($values); |
214 | 214 | }); |
215 | 215 | } |
@@ -282,7 +282,6 @@ |
||
282 | 282 | /** |
283 | 283 | * Return all items of the tree. |
284 | 284 | * |
285 | - * @param array $items |
|
286 | 285 | */ |
287 | 286 | public function getItems() |
288 | 287 | { |
@@ -103,7 +103,7 @@ |
||
103 | 103 | protected function initBranchCallback() |
104 | 104 | { |
105 | 105 | if (is_null($this->branchCallback)) { |
106 | - $this->branchCallback = function ($branch) { |
|
106 | + $this->branchCallback = function($branch) { |
|
107 | 107 | $key = $branch[$this->model->getKeyName()]; |
108 | 108 | $title = $branch[$this->model->getTitleColumn()]; |
109 | 109 |
@@ -26,7 +26,6 @@ |
||
26 | 26 | /** |
27 | 27 | * Create a new Tools instance. |
28 | 28 | * |
29 | - * @param Builder $builder |
|
30 | 29 | */ |
31 | 30 | public function __construct(Tree $tree) |
32 | 31 | { |
@@ -55,7 +55,7 @@ |
||
55 | 55 | */ |
56 | 56 | public function render() |
57 | 57 | { |
58 | - return $this->tools->map(function ($tool) { |
|
58 | + return $this->tools->map(function($tool) { |
|
59 | 59 | if ($tool instanceof Renderable) { |
60 | 60 | return $tool->render(); |
61 | 61 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | 'total' => $this->paginator->total(), |
73 | 73 | ]; |
74 | 74 | |
75 | - $parameters = collect($parameters)->flatMap(function ($parameter, $key) { |
|
75 | + $parameters = collect($parameters)->flatMap(function($parameter, $key) { |
|
76 | 76 | return [$key => "<b>$parameter</b>"]; |
77 | 77 | }); |
78 | 78 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** |
42 | 42 | * Get Pagination links. |
43 | 43 | * |
44 | - * @return string |
|
44 | + * @return \Illuminate\Contracts\View\View |
|
45 | 45 | */ |
46 | 46 | protected function paginationLinks() |
47 | 47 | { |
@@ -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 |
@@ -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 | } |