Passed
Push — master ( b427db...6bd04a )
by Iman
03:37
created
src/CBCoreModule/Index/FilterIndexRows.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $filterColumn = $this->filterFalsyValues($filterColumn);
37 37
 
38
-        $result->where(function ($query) use ($filterColumn) {
38
+        $result->where(function($query) use ($filterColumn) {
39 39
             foreach ($filterColumn as $key => $fc) {
40 40
 
41 41
                 $value = @$fc['value'];
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
                     case 'in':
59 59
                     case 'not in':
60 60
                         $value = explode(',', $value);
61
-                        if (! empty($value)) {
61
+                        if (!empty($value)) {
62 62
                             $query->whereIn($key, $value);
63 63
                         }
64 64
                         break;
@@ -102,11 +102,11 @@  discard block
 block discarded – undo
102 102
      */
103 103
     private function filterFalsyValues($filterColumn)
104 104
     {
105
-        return array_filter($filterColumn, function ($fc) {
105
+        return array_filter($filterColumn, function($fc) {
106 106
             $value = @$fc['value'];
107 107
             $type = @$fc['type'];
108 108
 
109
-            if (($type == 'between') || ! $value || ! $type) {
109
+            if (($type == 'between') || !$value || !$type) {
110 110
                 return false;
111 111
             }
112 112
 
Please login to merge, or discard this patch.