Completed
Pull Request — master (#201)
by
unknown
02:10
created
src/Filter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     /**
55 55
      * Returns filters value.
56 56
      *
57
-     * @return mixed
57
+     * @return string
58 58
      */
59 59
     public function getValue()
60 60
     {
Please login to merge, or discard this patch.
src/Components/RecordsPerPage.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,9 @@
 block discarded – undo
83 83
     public function prepare()
84 84
     {
85 85
         $value = $this->getValue();
86
-        if (!$value || !is_numeric($value)) return;
86
+        if (!$value || !is_numeric($value)) {
87
+            return;
88
+        }
87 89
         $this->grid->getConfig()->getDataProvider()->setPageSize($value);
88 90
     }
89 91
 }
Please login to merge, or discard this patch.
src/Components/RenderFunc.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,9 @@
 block discarded – undo
21 21
      */
22 22
     public function __construct($func = null)
23 23
     {
24
-        if ($func) $this->setFunc($func);
24
+        if ($func) {
25
+            $this->setFunc($func);
26
+        }
25 27
     }
26 28
 
27 29
     /**
Please login to merge, or discard this patch.
src/Components/TotalsRow.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,9 @@
 block discarded – undo
77 77
         Event::listen(
78 78
             DataProvider::EVENT_FETCH_ROW,
79 79
             function (DataRow $row, DataProvider $currentProvider) use ($provider) {
80
-                if ($currentProvider !== $provider) return;
80
+                if ($currentProvider !== $provider) {
81
+                    return;
82
+                }
81 83
                 $this->rows_processed++;
82 84
                 foreach ($this->fields as $field) {
83 85
                     $name = $field->getName();
Please login to merge, or discard this patch.
resources/views/default/components/filters/checkboxes.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 /** @var Nayjest\Grids\Components\SelectFilter $component */
3 3
 $value = $component->getValue();
4
-if (!is_array($value)) $value = [];
4
+if (!is_array($value)) {
5
+    $value = [];
6
+}
5 7
 $id = uniqid() . mt_rand();
6 8
 ?>
7 9
 <div class="btn-group">
Please login to merge, or discard this patch.
src/Grid.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     /**
208 208
      * Returns footer component.
209 209
      *
210
-     * @return TFoot|null
210
+     * @return null|Components\Base\ComponentInterface
211 211
      */
212 212
     public function footer()
213 213
     {
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     /**
218 218
      * Returns header component.
219 219
      *
220
-     * @return THead|null
220
+     * @return null|Components\Base\ComponentInterface
221 221
      */
222 222
     public function header()
223 223
     {
Please login to merge, or discard this patch.