Passed
Push — master ( a99c1b...8c36fd )
by Iman
03:38
created
src/CBCoreModule/Index/FilterIndexRows.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     private function applyWhere($result, $filterColumn)
35 35
     {
36
-        $result->where(function ($query) use ($filterColumn) {
36
+        $result->where(function($query) use ($filterColumn) {
37 37
             foreach ($filterColumn as $key => $fc) {
38 38
 
39 39
                 $value = @$fc['value'];
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                     continue;
45 45
                 }
46 46
 
47
-                if (($type == 'between') || ! $value || ! $key || ! $type) {
47
+                if (($type == 'between') || !$value || !$key || !$type) {
48 48
                     continue;
49 49
                 }
50 50
                 switch ($type) {
@@ -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;
Please login to merge, or discard this patch.