Passed
Push — dev5a ( 328ab1...cf3a23 )
by Ron
07:38
created
app/Domains/Admin/SetEmailProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
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
         $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
 block discarded – undo
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
                 });
Please login to merge, or discard this patch.
app/Domains/Customers/SetCustomerContacts.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.