@@ -147,7 +147,7 @@ |
||
147 | 147 | /** |
148 | 148 | * Get the dropdown position. |
149 | 149 | * |
150 | - * @return array |
|
150 | + * @return string |
|
151 | 151 | */ |
152 | 152 | public function getPosition() |
153 | 153 | { |
@@ -52,7 +52,6 @@ |
||
52 | 52 | /** |
53 | 53 | * Handle the command. |
54 | 54 | * |
55 | - * @param Translator $translator |
|
56 | 55 | * @return string |
57 | 56 | */ |
58 | 57 | public function handle() |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * Set the highlighted flag. |
128 | 128 | * |
129 | - * @param boolean $active |
|
129 | + * @param boolean $highlighted |
|
130 | 130 | * @return $this |
131 | 131 | */ |
132 | 132 | public function setHighlighted($highlighted); |
@@ -157,6 +157,7 @@ discard block |
||
157 | 157 | * Set the buttons. |
158 | 158 | * |
159 | 159 | * @param array|string $buttons |
160 | + * @return void |
|
160 | 161 | */ |
161 | 162 | public function setButtons($buttons); |
162 | 163 | |
@@ -171,6 +172,7 @@ discard block |
||
171 | 172 | * Set the attributes. |
172 | 173 | * |
173 | 174 | * @param array $attributes |
175 | + * @return void |
|
174 | 176 | */ |
175 | 177 | public function setAttributes(array $attributes); |
176 | 178 |
@@ -275,7 +275,6 @@ |
||
275 | 275 | /** |
276 | 276 | * Set the highlighted flag. |
277 | 277 | * |
278 | - * @param boolean $active |
|
279 | 278 | * @return $this |
280 | 279 | */ |
281 | 280 | public function setHighlighted($highlighted) |
@@ -50,7 +50,7 @@ |
||
50 | 50 | * Make the section from it's parameters. |
51 | 51 | * |
52 | 52 | * @param array $parameters |
53 | - * @return mixed |
|
53 | + * @return Contract\SectionInterface |
|
54 | 54 | */ |
55 | 55 | public function make(array $parameters) |
56 | 56 | { |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * Set the form response. |
164 | 164 | * |
165 | - * @param null|false|Response $response |
|
165 | + * @param Response $response |
|
166 | 166 | * @return $this |
167 | 167 | */ |
168 | 168 | public function setResponse(Response $response) |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | /** |
311 | 311 | * Get the form content. |
312 | 312 | * |
313 | - * @return null|View |
|
313 | + * @return null|string |
|
314 | 314 | */ |
315 | 315 | public function getContent() |
316 | 316 | { |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | * Get an option value. |
431 | 431 | * |
432 | 432 | * @param $key |
433 | - * @param null $default |
|
433 | + * @param string|null $default |
|
434 | 434 | * @return mixed |
435 | 435 | */ |
436 | 436 | public function getOption($key, $default = null) |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | * Get a form field. |
554 | 554 | * |
555 | 555 | * @param $fieldSlug |
556 | - * @return FieldType|mixed |
|
556 | + * @return FieldType |
|
557 | 557 | */ |
558 | 558 | public function getField($fieldSlug) |
559 | 559 | { |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | /** |
564 | 564 | * Add data to the view data collection. |
565 | 565 | * |
566 | - * @param $key |
|
566 | + * @param string $key |
|
567 | 567 | * @param $value |
568 | 568 | * @return $this |
569 | 569 | */ |
@@ -24,7 +24,6 @@ |
||
24 | 24 | /** |
25 | 25 | * Create a new FormAuthorizer instance. |
26 | 26 | * |
27 | - * @param ModuleCollection $modules |
|
28 | 27 | * @param Authorizer $authorizer |
29 | 28 | */ |
30 | 29 | public function __construct(Authorizer $authorizer) |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | /** |
258 | 258 | * Fire field events. |
259 | 259 | * |
260 | - * @param $trigger |
|
260 | + * @param string $trigger |
|
261 | 261 | * @param array $payload |
262 | 262 | */ |
263 | 263 | public function fireFieldEvents($trigger, array $payload = []) |
@@ -391,7 +391,7 @@ discard block |
||
391 | 391 | /** |
392 | 392 | * Set the form model. |
393 | 393 | * |
394 | - * @param $model |
|
394 | + * @param string|null $model |
|
395 | 395 | * @return $this |
396 | 396 | */ |
397 | 397 | public function setModel($model) |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | /** |
428 | 428 | * Get the entry object. |
429 | 429 | * |
430 | - * @return null|EntryInterface|FieldInterface|mixed |
|
430 | + * @return null|integer |
|
431 | 431 | */ |
432 | 432 | public function getEntry() |
433 | 433 | { |
@@ -658,8 +658,8 @@ discard block |
||
658 | 658 | /** |
659 | 659 | * Get an option value. |
660 | 660 | * |
661 | - * @param $key |
|
662 | - * @param null $default |
|
661 | + * @param string $key |
|
662 | + * @param string $default |
|
663 | 663 | * @return mixed |
664 | 664 | */ |
665 | 665 | public function getOption($key, $default = null) |
@@ -670,8 +670,8 @@ discard block |
||
670 | 670 | /** |
671 | 671 | * Set an option value. |
672 | 672 | * |
673 | - * @param $key |
|
674 | - * @param $value |
|
673 | + * @param string $key |
|
674 | + * @param string $value |
|
675 | 675 | * @return $this |
676 | 676 | */ |
677 | 677 | public function setOption($key, $value) |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | /** |
736 | 736 | * Get a form option value. |
737 | 737 | * |
738 | - * @param $key |
|
738 | + * @param string $key |
|
739 | 739 | * @param null $default |
740 | 740 | * @return mixed |
741 | 741 | */ |
@@ -791,7 +791,7 @@ discard block |
||
791 | 791 | /** |
792 | 792 | * Return the form entry's ID. |
793 | 793 | * |
794 | - * @return int|mixed|null |
|
794 | + * @return null|integer |
|
795 | 795 | */ |
796 | 796 | public function getFormEntryId() |
797 | 797 | { |
@@ -827,7 +827,7 @@ discard block |
||
827 | 827 | /** |
828 | 828 | * Set the form mode. |
829 | 829 | * |
830 | - * @param $mode |
|
830 | + * @param string $mode |
|
831 | 831 | * @return $this |
832 | 832 | */ |
833 | 833 | public function setFormMode($mode) |
@@ -922,7 +922,7 @@ discard block |
||
922 | 922 | /** |
923 | 923 | * Set the form response. |
924 | 924 | * |
925 | - * @param null|false|Response $response |
|
925 | + * @param Response $response |
|
926 | 926 | * @return $this |
927 | 927 | */ |
928 | 928 | public function setFormResponse(Response $response) |
@@ -994,7 +994,7 @@ discard block |
||
994 | 994 | * Disable a form field. |
995 | 995 | * |
996 | 996 | * @param $fieldSlug |
997 | - * @return FieldType |
|
997 | + * @return Form |
|
998 | 998 | */ |
999 | 999 | public function disableFormField($fieldSlug) |
1000 | 1000 | { |
@@ -1054,7 +1054,7 @@ discard block |
||
1054 | 1054 | /** |
1055 | 1055 | * Get the form errors. |
1056 | 1056 | * |
1057 | - * @return null|MessageBag |
|
1057 | + * @return MessageBag |
|
1058 | 1058 | */ |
1059 | 1059 | public function getFormErrors() |
1060 | 1060 | { |
@@ -1065,7 +1065,7 @@ discard block |
||
1065 | 1065 | * Add an error to the form. |
1066 | 1066 | * |
1067 | 1067 | * @param $field |
1068 | - * @param $message |
|
1068 | + * @param string $message |
|
1069 | 1069 | * @return $this |
1070 | 1070 | */ |
1071 | 1071 | public function addFormError($field, $message) |
@@ -1153,9 +1153,9 @@ discard block |
||
1153 | 1153 | /** |
1154 | 1154 | * Get a request value. |
1155 | 1155 | * |
1156 | - * @param $key |
|
1156 | + * @param string $key |
|
1157 | 1157 | * @param null $default |
1158 | - * @return mixed |
|
1158 | + * @return string |
|
1159 | 1159 | */ |
1160 | 1160 | public function getRequestValue($key, $default = null) |
1161 | 1161 | { |
@@ -1178,8 +1178,7 @@ discard block |
||
1178 | 1178 | * Return a post key flag. |
1179 | 1179 | * |
1180 | 1180 | * @param $key |
1181 | - * @param null $default |
|
1182 | - * @return mixed |
|
1181 | + * @return boolean |
|
1183 | 1182 | */ |
1184 | 1183 | public function hasPostedInput($key) |
1185 | 1184 | { |
@@ -33,7 +33,6 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * Make the form. |
35 | 35 | * |
36 | - * @param null $builder |
|
37 | 36 | * @param array $parameters |
38 | 37 | * @return FormCriteria |
39 | 38 | */ |
@@ -60,7 +59,7 @@ discard block |
||
60 | 59 | |
61 | 60 | /** |
62 | 61 | * @param array $parameters |
63 | - * @return array |
|
62 | + * @return string |
|
64 | 63 | */ |
65 | 64 | protected function resolve(array $parameters) |
66 | 65 | { |