Completed
Pull Request — master (#526)
by Kristijan
01:39
created
src/Kris/LaravelFormBuilder/FormHelper.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
     /**
260 260
      * Format the label to the proper format.
261 261
      *
262
-     * @param $name
262
+     * @param string $name
263 263
      * @return string
264 264
      */
265 265
     public function formatLabel($name)
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 
291 291
     /**
292 292
      * @param FormField $field
293
-     * @return array
293
+     * @return Rules
294 294
      */
295 295
     public function getFieldValidationRules(FormField $field)
296 296
     {
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
     /**
310 310
      * @param FormField[] $fields
311
-     * @return array
311
+     * @return Rules
312 312
      */
313 313
     public function mergeFieldsRules($fields)
314 314
     {
@@ -362,6 +362,7 @@  discard block
 block discarded – undo
362 362
     /**
363 363
      * Alter a form's validity recursively, and add messages with nested form prefix.
364 364
      *
365
+     * @param boolean $isValid
365 366
      * @return void
366 367
      */
367 368
     public function alterValid(Form $form, Form $mainForm, &$isValid)
@@ -386,6 +387,7 @@  discard block
 block discarded – undo
386 387
     /**
387 388
      * Add unprefixed messages with prefix to a MessageBag.
388 389
      *
390
+     * @param string|null $prefix
389 391
      * @return void
390 392
      */
391 393
     public function appendMessagesWithPrefix(MessageBag $messageBag, $prefix, array $keyedMessages)
@@ -458,6 +460,9 @@  discard block
 block discarded – undo
458 460
         return true;
459 461
     }
460 462
 
463
+    /**
464
+     * @param string $name
465
+     */
461 466
     public function getModelValue($model, $name) {
462 467
         $transformedName = $this->transformToDotSyntax($name);
463 468
         if (is_string($model)) {
Please login to merge, or discard this patch.