Completed
Push — master ( acbbc3...48e3a6 )
by Adrian
05:57
created
src/Repository/Criteria/SearchCriteria.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@
 block discarded – undo
41 41
         $columnRelation = explode('.', $column);
42 42
 
43 43
         if ($or) {
44
-            $query->orWhereHas($columnRelation[0], function ($subquery) use ($columnRelation) {
44
+            $query->orWhereHas($columnRelation[0], function($subquery) use ($columnRelation) {
45 45
                 $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%');
46 46
             });
47 47
         } else {
48
-            $query->whereHas($columnRelation[0], function ($subquery) use ($columnRelation) {
48
+            $query->whereHas($columnRelation[0], function($subquery) use ($columnRelation) {
49 49
                 $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%');
50 50
             });
51 51
         }
Please login to merge, or discard this patch.