@@ -1,5 +1,5 @@ |
||
| 1 | 1 | @if($errors->hasBag('exception') && env('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> |
@@ -174,7 +174,7 @@ |
||
| 174 | 174 | /** |
| 175 | 175 | * Get stub contents. |
| 176 | 176 | * |
| 177 | - * @param $name |
|
| 177 | + * @param string $name |
|
| 178 | 178 | * |
| 179 | 179 | * @return string |
| 180 | 180 | */ |
@@ -89,7 +89,7 @@ |
||
| 89 | 89 | $fields = \DB::getSchemaBuilder()->getColumnListing($table); |
| 90 | 90 | $fields = array_diff($fields, $exceptFields); |
| 91 | 91 | |
| 92 | - $array = \DB::table($table)->get($fields)->map(function ($item) { |
|
| 92 | + $array = \DB::table($table)->get($fields)->map(function($item) { |
|
| 93 | 93 | return (array) $item; |
| 94 | 94 | })->all(); |
| 95 | 95 | |
@@ -640,7 +640,7 @@ |
||
| 640 | 640 | } |
| 641 | 641 | |
| 642 | 642 | /* Build row elements */ |
| 643 | - $template = array_reduce($fields, function ($all, $field) { |
|
| 643 | + $template = array_reduce($fields, function($all, $field) { |
|
| 644 | 644 | $all .= "<td>{$field}</td>"; |
| 645 | 645 | |
| 646 | 646 | return $all; |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | /** |
| 223 | 223 | * Field constructor. |
| 224 | 224 | * |
| 225 | - * @param $column |
|
| 225 | + * @param string $column |
|
| 226 | 226 | * @param array $arguments |
| 227 | 227 | */ |
| 228 | 228 | public function __construct($column, $arguments = []) |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | /** |
| 459 | 459 | * Get or set rules. |
| 460 | 460 | * |
| 461 | - * @param null $rules |
|
| 461 | + * @param string $rules |
|
| 462 | 462 | * @param array $messages |
| 463 | 463 | * |
| 464 | 464 | * @return $this |
@@ -556,7 +556,7 @@ discard block |
||
| 556 | 556 | /** |
| 557 | 557 | * Set or get value of the field. |
| 558 | 558 | * |
| 559 | - * @param null $value |
|
| 559 | + * @param string $value |
|
| 560 | 560 | * |
| 561 | 561 | * @return mixed |
| 562 | 562 | */ |
@@ -727,7 +727,7 @@ discard block |
||
| 727 | 727 | /** |
| 728 | 728 | * Add html attributes to elements. |
| 729 | 729 | * |
| 730 | - * @param array|string $attribute |
|
| 730 | + * @param string $attribute |
|
| 731 | 731 | * @param mixed $value |
| 732 | 732 | * |
| 733 | 733 | * @return $this |
@@ -1019,7 +1019,7 @@ discard block |
||
| 1019 | 1019 | } |
| 1020 | 1020 | |
| 1021 | 1021 | /** |
| 1022 | - * @param array $labelClass |
|
| 1022 | + * @param string[] $labelClass |
|
| 1023 | 1023 | * |
| 1024 | 1024 | * @return self |
| 1025 | 1025 | */ |
@@ -1072,7 +1072,7 @@ discard block |
||
| 1072 | 1072 | /** |
| 1073 | 1073 | * Set view of current field. |
| 1074 | 1074 | * |
| 1075 | - * @return string |
|
| 1075 | + * @return Field |
|
| 1076 | 1076 | */ |
| 1077 | 1077 | public function setView($view) |
| 1078 | 1078 | { |