@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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 | }); |