@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | * |
13 | 13 | * @param $permission |
14 | 14 | * |
15 | - * @return true |
|
15 | + * @return boolean|null |
|
16 | 16 | */ |
17 | 17 | public static function check($permission) |
18 | 18 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @param $roles |
32 | 32 | * |
33 | - * @return true |
|
33 | + * @return boolean|null |
|
34 | 34 | */ |
35 | 35 | public static function allow($roles) |
36 | 36 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @param $roles |
50 | 50 | * |
51 | - * @return true |
|
51 | + * @return boolean|null |
|
52 | 52 | */ |
53 | 53 | public static function deny($roles) |
54 | 54 | { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * |
219 | 219 | * @param $id |
220 | 220 | * |
221 | - * @return mixed |
|
221 | + * @return boolean |
|
222 | 222 | */ |
223 | 223 | public function destroy($id) |
224 | 224 | { |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | * Prepare input data for insert or update. |
294 | 294 | * |
295 | 295 | * @param array $data |
296 | - * @param callable $callback |
|
296 | + * @param Closure $callback |
|
297 | 297 | */ |
298 | 298 | protected function prepare($data = [], Closure $callback = null) |
299 | 299 | { |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | * |
391 | 391 | * @param int $id |
392 | 392 | * |
393 | - * @return $this|\Illuminate\Http\RedirectResponse |
|
393 | + * @return \Symfony\Component\HttpFoundation\Response |
|
394 | 394 | */ |
395 | 395 | public function update($id) |
396 | 396 | { |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | * @param int $id |
460 | 460 | * @param array $input |
461 | 461 | * |
462 | - * @return array |
|
462 | + * @return boolean |
|
463 | 463 | */ |
464 | 464 | protected function handleOrderable($id, array $input = []) |
465 | 465 | { |
@@ -599,7 +599,7 @@ discard block |
||
599 | 599 | /** |
600 | 600 | * Set saving callback. |
601 | 601 | * |
602 | - * @param callable $callback |
|
602 | + * @param Closure $callback |
|
603 | 603 | * |
604 | 604 | * @return void |
605 | 605 | */ |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | /** |
612 | 612 | * Set saved callback. |
613 | 613 | * |
614 | - * @param callable $callback |
|
614 | + * @param Closure $callback |
|
615 | 615 | * |
616 | 616 | * @return void |
617 | 617 | */ |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | /** |
282 | 282 | * Get or set rules. |
283 | 283 | * |
284 | - * @param null $rules |
|
284 | + * @param string $rules |
|
285 | 285 | * |
286 | 286 | * @return $this |
287 | 287 | */ |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | /** |
302 | 302 | * Set or get value of the field. |
303 | 303 | * |
304 | - * @param null $value |
|
304 | + * @param string $value |
|
305 | 305 | * |
306 | 306 | * @return mixed |
307 | 307 | */ |
@@ -349,8 +349,8 @@ discard block |
||
349 | 349 | /** |
350 | 350 | * Add html attributes to elements. |
351 | 351 | * |
352 | - * @param array|string $attribute |
|
353 | - * @param mixed $value |
|
352 | + * @param string $attribute |
|
353 | + * @param boolean $value |
|
354 | 354 | * |
355 | 355 | * @return $this |
356 | 356 | */ |
@@ -117,7 +117,7 @@ |
||
117 | 117 | /** |
118 | 118 | * Add form attributes. |
119 | 119 | * |
120 | - * @param string|array $attr |
|
120 | + * @param string $attr |
|
121 | 121 | * @param string $value |
122 | 122 | * |
123 | 123 | * @return $this |
@@ -105,7 +105,7 @@ |
||
105 | 105 | */ |
106 | 106 | protected function decodeUtf8HtmlEntities($html) |
107 | 107 | { |
108 | - return preg_replace_callback('/(&#[0-9]+;)/', function ($html) { |
|
108 | + return preg_replace_callback('/(&#[0-9]+;)/', function($html) { |
|
109 | 109 | return mb_convert_encoding($html[1], 'UTF-8', 'HTML-ENTITIES'); |
110 | 110 | }, $html); |
111 | 111 | } |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | protected function htmlEntityEncode($item) |
237 | 237 | { |
238 | 238 | if (is_array($item)) { |
239 | - array_walk_recursive($item, function (&$value) { |
|
239 | + array_walk_recursive($item, function(&$value) { |
|
240 | 240 | $value = htmlentities($value); |
241 | 241 | }); |
242 | 242 | } else { |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | public function button($style = 'default') |
322 | 322 | { |
323 | 323 | if (is_array($style)) { |
324 | - $style = array_map(function ($style) { |
|
324 | + $style = array_map(function($style) { |
|
325 | 325 | return 'btn-'.$style; |
326 | 326 | }, $style); |
327 | 327 | |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | public function progressBar($style = 'primary', $size = 'sm', $max = 100) |
350 | 350 | { |
351 | 351 | if (is_array($style)) { |
352 | - $style = array_map(function ($style) { |
|
352 | + $style = array_map(function($style) { |
|
353 | 353 | return 'progress-bar-'.$style; |
354 | 354 | }, $style); |
355 | 355 |