Completed
Pull Request — master (#1350)
by
unknown
03:06
created
src/Form/Field.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     /**
408 408
      * Get or set rules.
409 409
      *
410
-     * @param null  $rules
410
+     * @param string  $rules
411 411
      * @param array $messages
412 412
      *
413 413
      * @return $this
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
      * Add html attributes to elements.
651 651
      *
652 652
      * @param array|string $attribute
653
-     * @param mixed        $value
653
+     * @param boolean|string        $value
654 654
      *
655 655
      * @return $this
656 656
      */
Please login to merge, or discard this patch.
src/Grid.php 2 patches
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
      * Get or set option for grid.
230 230
      *
231 231
      * @param string $key
232
-     * @param mixed  $value
232
+     * @param boolean  $value
233 233
      *
234 234
      * @return $this|mixed
235 235
      */
@@ -286,6 +286,9 @@  discard block
 block discarded – undo
286 286
         return $column;
287 287
     }
288 288
 
289
+    /**
290
+     * @return string
291
+     */
289 292
     public function setLabel($label , $relationColumn)
290 293
     {
291 294
         $trans_key = 'validation.attributes.' . $relationColumn;
@@ -374,7 +377,7 @@  discard block
 block discarded – undo
374 377
     /**
375 378
      * Get the grid paginator.
376 379
      *
377
-     * @return mixed
380
+     * @return Tools\Paginator
378 381
      */
379 382
     public function paginator()
380 383
     {
@@ -750,7 +753,7 @@  discard block
 block discarded – undo
750 753
      *
751 754
      * @param Closure|null $closure
752 755
      *
753
-     * @return $this|Tools\Footer
756
+     * @return callable
754 757
      */
755 758
     public function footer(Closure $closure = null)
756 759
     {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
295 295
          }
296 296
          if (empty($label) && Lang::has($trans_key_low)) {
297 297
             $label = Lang::get($trans_key_low);
298
-        }else if (empty($label)) {
298
+        } else if (empty($label)) {
299 299
              $label = ucfirst($relationColumn);
300 300
          }
301 301
         return $label;
Please login to merge, or discard this patch.
src/Grid/Filter/AbstractFilter.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,6 +106,10 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $this->setPresenter(new Text($this->label));
108 108
     }
109
+
110
+    /**
111
+     * @param string $label
112
+     */
109 113
     public function setLabel($label)
110 114
     {
111 115
         $trans_key = 'validation.attributes.' . $label;
@@ -350,7 +354,7 @@  discard block
 block discarded – undo
350 354
      *
351 355
      * @param Presenter $presenter
352 356
      *
353
-     * @return mixed
357
+     * @return Presenter
354 358
      */
355 359
     protected function setPresenter(Presenter $presenter)
356 360
     {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -558,7 +558,7 @@
 block discarded – undo
558 558
         }
559 559
         if (Lang::has($trans_key_low)) {
560 560
             $label = Lang::get($trans_key_low);
561
-        }else {
561
+        } else {
562 562
             $label = ucfirst($label);
563 563
         }
564 564
         return $label;
Please login to merge, or discard this patch.
src/Grid/Column.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -558,7 +558,7 @@
 block discarded – undo
558 558
         }
559 559
         if (Lang::has($trans_key_low)) {
560 560
             $label = Lang::get($trans_key_low);
561
-        }else {
561
+        } else {
562 562
             $label = ucfirst($label);
563 563
         }
564 564
         return $label;
Please login to merge, or discard this patch.
src/Form/Builder.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -366,7 +366,9 @@
 block discarded – undo
366 366
      */
367 367
     public function title()
368 368
     {
369
-        if ($this->Title != "") return $this->Title;
369
+        if ($this->Title != "") {
370
+            return $this->Title;
371
+        }
370 372
 
371 373
         if ($this->mode == static::MODE_CREATE) {
372 374
             return trans('admin.create');
Please login to merge, or discard this patch.
src/Form/Field/PlainInput.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@  discard block
 block discarded – undo
26 26
         return $this;
27 27
     }
28 28
 
29
+    /**
30
+     * @param string $string
31
+     */
29 32
     public function prepend($string)
30 33
     {
31 34
         if (is_null($this->prepend)) {
@@ -35,6 +38,9 @@  discard block
 block discarded – undo
35 38
         return $this;
36 39
     }
37 40
 
41
+    /**
42
+     * @param string $string
43
+     */
38 44
     public function append($string)
39 45
     {
40 46
         if (is_null($this->append)) {
@@ -51,6 +57,9 @@  discard block
 block discarded – undo
51 57
         }
52 58
     }
53 59
 
60
+    /**
61
+     * @param string $attribute
62
+     */
54 63
     protected function defaultAttribute($attribute, $value)
55 64
     {
56 65
         if (!array_key_exists($attribute, $this->attributes)) {
Please login to merge, or discard this patch.
src/Form.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,9 @@
 block discarded – undo
228 228
     public function edit($id, $show_mode = false)
229 229
     {
230 230
         $mode = Builder::MODE_EDIT;
231
-        if ($show_mode) $mode = Builder::MODE_SHOW;
231
+        if ($show_mode) {
232
+            $mode = Builder::MODE_SHOW;
233
+        }
232 234
         $this->builder->setMode($mode);
233 235
         $this->builder->setResourceId($id);
234 236
 
Please login to merge, or discard this patch.
src/Widgets/InfoBox.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,9 @@
 block discarded – undo
27 27
      */
28 28
     public function __construct($name, $icon, $color, $link, $info, $more_text =null )
29 29
     {
30
-        if ($more_text == null) $more_text = trans('admin.more');
30
+        if ($more_text == null) {
31
+            $more_text = trans('admin.more');
32
+        }
31 33
 
32 34
 
33 35
         $this->data = [
Please login to merge, or discard this patch.