Completed
Pull Request — master (#266)
by Rudie
08:26
created
src/Kris/LaravelFormBuilder/Fields/FormField.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace Kris\LaravelFormBuilder\Fields;
4 4
 
5 5
 use Kris\LaravelFormBuilder\Form;
6
-use Illuminate\Database\Eloquent\Model;
7 6
 use Kris\LaravelFormBuilder\FormHelper;
8 7
 use Kris\LaravelFormBuilder\RulesParser;
9
-use Illuminate\Database\Eloquent\Collection;
10 8
 
11 9
 /**
12 10
  * Class FormField
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
      * Transform array like syntax to dot syntax.
219 219
      *
220 220
      * @param string $key
221
-     * @return mixed
221
+     * @return string
222 222
      */
223 223
     protected function transformKey($key)
224 224
     {
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
     /**
658 658
      * Get this field's attributes, probably just one.
659 659
      *
660
-     * @return array
660
+     * @return string[]
661 661
      */
662 662
     public function getAllAttributes()
663 663
     {
Please login to merge, or discard this patch.
src/Kris/LaravelFormBuilder/FormHelper.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,9 +5,9 @@
 block discarded – undo
5 5
 use Illuminate\Database\Eloquent\Model;
6 6
 use Illuminate\Support\Arr;
7 7
 use Illuminate\Support\Collection;
8
+use Illuminate\Translation\Translator;
8 9
 use Kris\LaravelFormBuilder\Fields\FormField;
9 10
 use Kris\LaravelFormBuilder\Form;
10
-use Illuminate\Translation\Translator;
11 11
 
12 12
 class FormHelper
13 13
 {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     /**
241 241
      * Format the label to the proper format.
242 242
      *
243
-     * @param $name
243
+     * @param string $name
244 244
      * @return string
245 245
      */
246 246
     public function formatLabel($name)
@@ -326,6 +326,7 @@  discard block
 block discarded – undo
326 326
     /**
327 327
      * Alter a form's validity recursively, and add messages with nested form prefix.
328 328
      *
329
+     * @param boolean $isValid
329 330
      * @return void
330 331
      */
331 332
     public function alterValid(Form $form, Form $mainForm, &$isValid)
@@ -350,6 +351,7 @@  discard block
 block discarded – undo
350 351
     /**
351 352
      * Add unprefixed messages with prefix to a MessageBag.
352 353
      *
354
+     * @param string|null $prefix
353 355
      * @return void
354 356
      */
355 357
     public function appendMessagesWithPrefix(MessageBag $messageBag, $prefix, array $keyedMessages)
Please login to merge, or discard this patch.
src/Kris/LaravelFormBuilder/Fields/ParentType.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     /**
63 63
      * Get all children of the choice field.
64 64
      *
65
-     * @return mixed
65
+     * @return FormField[]
66 66
      */
67 67
     public function getChildren()
68 68
     {
Please login to merge, or discard this patch.
src/Kris/LaravelFormBuilder/FormBuilder.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
      * Create a Form instance.
41 41
      *
42 42
      * @param string $formClass The name of the class that inherits \Kris\LaravelFormBuilder\Form.
43
-     * @param array $options|null
44
-     * @param array $data|null
43
+     * @param array $options
45 44
      * @return Form
46 45
      */
47 46
     public function create($formClass, array $options = [], array $data = [])
Please login to merge, or discard this patch.
src/Kris/LaravelFormBuilder/Form.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      * Set single form option on form.
477 477
      *
478 478
      * @param string $option
479
-     * @param mixed $value
479
+     * @param boolean $value
480 480
      *
481 481
      * @return $this
482 482
      */
@@ -908,7 +908,7 @@  discard block
 block discarded – undo
908 908
     /**
909 909
      * Get template from options if provided, otherwise fallback to config.
910 910
      *
911
-     * @return mixed
911
+     * @return string
912 912
      */
913 913
     protected function getTemplate()
914 914
     {
@@ -918,7 +918,7 @@  discard block
 block discarded – undo
918 918
     /**
919 919
      * Get fields template from options if provided, otherwise fallback to config
920 920
      *
921
-     * @return mixed
921
+     * @return string
922 922
      */
923 923
     protected function getFieldsTemplate()
924 924
     {
Please login to merge, or discard this patch.