@@ -59,7 +59,7 @@ |
||
59 | 59 | $mail->to($emailAddress)->send(new TestEmail); |
60 | 60 | Log::info('Test email sent to '.$emailAddress); |
61 | 61 | } |
62 | - catch (\Exception $e) |
|
62 | + catch(\Exception $e) |
|
63 | 63 | { |
64 | 64 | Log::alert('Test Email to '.$emailAddress.' failed. Reason - ', array($e)); |
65 | 65 | return $e->getMessage(); |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $sort = $this->getSortFields($request); |
17 | 17 | |
18 | 18 | // Determine if the search request is blank - if so, return all customers |
19 | - if((array)$searchData) |
|
19 | + if((array) $searchData) |
|
20 | 20 | { |
21 | 21 | $results = $this->searchFor($searchData, $pagination, $sort, true); |
22 | 22 | } |
@@ -78,11 +78,11 @@ discard block |
||
78 | 78 | // Search equipment field |
79 | 79 | ->when(isset($searchData->equipment), function($q) use ($searchData) |
80 | 80 | { |
81 | - $q->whereHas('ParentSystems.SystemTypes', function ($qry) use ($searchData) |
|
81 | + $q->whereHas('ParentSystems.SystemTypes', function($qry) use ($searchData) |
|
82 | 82 | { |
83 | 83 | $qry->where('sys_id', $searchData->equipment); |
84 | 84 | }) |
85 | - ->orWhereHas('CustomerSystems.SystemTypes', function ($qry) use ($searchData) |
|
85 | + ->orWhereHas('CustomerSystems.SystemTypes', function($qry) use ($searchData) |
|
86 | 86 | { |
87 | 87 | $qry->where('sys_id', $searchData->equipment); |
88 | 88 | }); |
@@ -146,7 +146,7 @@ |
||
146 | 146 | // Remove all extra charachters from the phone number. Number should be stored as 10 digit direct number |
147 | 147 | protected function cleanPhoneNumber($number) |
148 | 148 | { |
149 | - $newNumber = preg_replace('~.*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4}).*~', '$1$2$3', $number); |
|
149 | + $newNumber = preg_replace('~.*(\d{3})[^\d]*(\d{3})[^\d]*(\d{4}).*~', '$1$2$3', $number); |
|
150 | 150 | Log::debug('Phone number '.$number.' cleaned to '.$newNumber); |
151 | 151 | return $newNumber; |
152 | 152 | } |