Passed
Push — dev5a ( bf2271...c9bcfe )
by Ron
08:07
created
app/Domains/Customers/CustomerSearch.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         $pagination = $this->getPagination($request);
17 17
         $sort       = $this->getSortFields($request);
18 18
 
19
-        if((array)$searchData)
19
+        if((array) $searchData)
20 20
         {
21 21
             $results = $this->searchFor($searchData, $pagination, $sort, true);
22 22
         }
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
             //  Search equipment field
68 68
             ->when(isset($searchData->equipment), function($q) use ($searchData)
69 69
             {
70
-                $q->whereHas('ParentSystems.SystemTypes', function ($qry) use ($searchData)
70
+                $q->whereHas('ParentSystems.SystemTypes', function($qry) use ($searchData)
71 71
                 {
72 72
                     $qry->where('sys_id', $searchData->equipment);
73 73
                 })
74
-                ->orWhereHas('CustomerSystems.SystemTypes', function ($qry) use ($searchData)
74
+                ->orWhereHas('CustomerSystems.SystemTypes', function($qry) use ($searchData)
75 75
                 {
76 76
                     $qry->where('sys_id', $searchData->equipment);
77 77
                 });
Please login to merge, or discard this patch.