Completed
Push — master ( e7b79c...402727 )
by Ryan
09:29
created
src/Ui/Form/FormBuilder.php 1 patch
Doc Comments   +18 added lines, -19 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * Fire field events.
276 276
      *
277
-     * @param       $trigger
277
+     * @param       string $trigger
278 278
      * @param array $payload
279 279
      */
280 280
     public function fireFieldEvents($trigger, array $payload = [])
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
     /**
409 409
      * Set the form model.
410 410
      *
411
-     * @param  $model
411
+     * @param  string|null $model
412 412
      * @return $this
413 413
      */
414 414
     public function setModel($model)
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
     /**
445 445
      * Get the entry object.
446 446
      *
447
-     * @return null|EntryInterface|FieldInterface|mixed
447
+     * @return null|integer
448 448
      */
449 449
     public function getEntry()
450 450
     {
@@ -685,8 +685,8 @@  discard block
 block discarded – undo
685 685
     /**
686 686
      * Get an option value.
687 687
      *
688
-     * @param      $key
689
-     * @param null $default
688
+     * @param      string $key
689
+     * @param string $default
690 690
      * @return mixed
691 691
      */
692 692
     public function getOption($key, $default = null)
@@ -697,8 +697,8 @@  discard block
 block discarded – undo
697 697
     /**
698 698
      * Set an option value.
699 699
      *
700
-     * @param $key
701
-     * @param $value
700
+     * @param string $key
701
+     * @param string $value
702 702
      * @return $this
703 703
      */
704 704
     public function setOption($key, $value)
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
     /**
763 763
      * Get a form option value.
764 764
      *
765
-     * @param      $key
765
+     * @param      string $key
766 766
      * @param null $default
767 767
      * @return mixed
768 768
      */
@@ -818,7 +818,7 @@  discard block
 block discarded – undo
818 818
     /**
819 819
      * Return the form entry's ID.
820 820
      *
821
-     * @return int|mixed|null
821
+     * @return null|integer
822 822
      */
823 823
     public function getFormEntryId()
824 824
     {
@@ -854,7 +854,7 @@  discard block
 block discarded – undo
854 854
     /**
855 855
      * Set the form mode.
856 856
      *
857
-     * @param $mode
857
+     * @param string $mode
858 858
      * @return $this
859 859
      */
860 860
     public function setFormMode($mode)
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
     /**
880 880
      * Set a form value.
881 881
      *
882
-     * @param $key
882
+     * @param string $key
883 883
      * @param $value
884 884
      * @return $this
885 885
      */
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
     /**
950 950
      * Set the form response.
951 951
      *
952
-     * @param null|false|Response $response
952
+     * @param Response $response
953 953
      * @return $this
954 954
      */
955 955
     public function setFormResponse(Response $response)
@@ -1021,7 +1021,7 @@  discard block
 block discarded – undo
1021 1021
      * Disable a form field.
1022 1022
      *
1023 1023
      * @param $fieldSlug
1024
-     * @return FieldType
1024
+     * @return Form
1025 1025
      */
1026 1026
     public function disableFormField($fieldSlug)
1027 1027
     {
@@ -1087,7 +1087,7 @@  discard block
 block discarded – undo
1087 1087
     /**
1088 1088
      * Get the form errors.
1089 1089
      *
1090
-     * @return null|MessageBag
1090
+     * @return \Illuminate\Support\MessageBag
1091 1091
      */
1092 1092
     public function getFormErrors()
1093 1093
     {
@@ -1098,7 +1098,7 @@  discard block
 block discarded – undo
1098 1098
      * Add an error to the form.
1099 1099
      *
1100 1100
      * @param $field
1101
-     * @param $message
1101
+     * @param string $message
1102 1102
      * @return $this
1103 1103
      */
1104 1104
     public function addFormError($field, $message)
@@ -1186,9 +1186,9 @@  discard block
 block discarded – undo
1186 1186
     /**
1187 1187
      * Get a request value.
1188 1188
      *
1189
-     * @param      $key
1189
+     * @param      string $key
1190 1190
      * @param null $default
1191
-     * @return mixed
1191
+     * @return string
1192 1192
      */
1193 1193
     public function getRequestValue($key, $default = null)
1194 1194
     {
@@ -1211,8 +1211,7 @@  discard block
 block discarded – undo
1211 1211
      * Return a post key flag.
1212 1212
      *
1213 1213
      * @param      $key
1214
-     * @param null $default
1215
-     * @return mixed
1214
+     * @return boolean
1216 1215
      */
1217 1216
     public function hasPostedInput($key)
1218 1217
     {
Please login to merge, or discard this patch.