Completed
Push — master ( d88c3d...073799 )
by Adrian
06:02
created
src/Repository/Criteria/SearchCriteria.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 
18 18
     public function apply($model, Repository $repository)
19 19
     {
20
-        $query = $model->where(function ($query) use ($repository) {
20
+        $query = $model->where(function($query) use ($repository) {
21 21
             $firstColumn = array_shift($this->columns);
22 22
 
23 23
             if (strpos($firstColumn, '.')) {
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         $columnRelation = explode('.', $column);
44 44
 
45 45
         if ($or) {
46
-            $query->orWhereHas($columnRelation[0], function ($subquery) use ($columnRelation) {
46
+            $query->orWhereHas($columnRelation[0], function($subquery) use ($columnRelation) {
47 47
                 $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%');
48 48
             });
49 49
         } else {
50
-            $query->whereHas($columnRelation[0], function ($subquery) use ($columnRelation) {
50
+            $query->whereHas($columnRelation[0], function($subquery) use ($columnRelation) {
51 51
                 $subquery->where($columnRelation[1], 'LIKE', '%'.$this->queryString.'%');
52 52
             });
53 53
         }
Please login to merge, or discard this patch.