@@ -25,14 +25,14 @@ |
||
25 | 25 | public function boot() |
26 | 26 | { |
27 | 27 | // Service provider to customize form inputs |
28 | - Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
28 | + Form::component('bsText', 'components.form.text', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
29 | 29 | Form::component('bsPassword', 'components.form.password', ['name', 'label', 'value' => null, 'attributes' => []]); |
30 | - Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
31 | - Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
32 | - Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
30 | + Form::component('bsNumber', 'components.form.number', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
31 | + Form::component('bsEmail', 'components.form.email', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
32 | + Form::component('bsDate', 'components.form.date', ['name', 'label', 'value' => null, 'attributes' => []]); |
|
33 | 33 | Form::component('bsTextarea', 'components.form.textarea', ['name', 'label', 'value' => null, 'attributes' => []]); |
34 | 34 | Form::component('bsCheckbox', 'components.form.checkbox', ['name', 'label', 'value' => 'on', 'checked' => false, 'attributes' => []]); |
35 | - Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]); |
|
35 | + Form::component('bsSelect', 'components.form.select', ['name', 'label', 'list', 'selected' => null, 'attributes' => []]); |
|
36 | 36 | // Custom Submit button |
37 | 37 | Form::component('bsSubmit', 'components.form.submit', ['name']); |
38 | 38 | // List of all states in a dropdown box |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $this->fix = true; |
33 | 33 | } |
34 | 34 | // Extend the amount of time the script is allowed to run |
35 | - ini_set('max_execution_time', 600); // 600 seconds = 10 minutes |
|
35 | + ini_set('max_execution_time', 600); // 600 seconds = 10 minutes |
|
36 | 36 | |
37 | 37 | // Begin check |
38 | 38 | $fixStr = $this->fix ? 'on' : 'off'; |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | Log::notice('Current Active Installers - ', $instArr); |
81 | 81 | |
82 | 82 | // All Active Administrators |
83 | - $adminArr = []; |
|
83 | + $adminArr = []; |
|
84 | 84 | $administrators = User::where('role_id', 2)->get(); |
85 | 85 | foreach($administrators as $adm) |
86 | 86 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | // Validate that each user has a user_settings entry |
99 | 99 | $this->line(''); |
100 | 100 | $this->line('Validating User Settings'); |
101 | - $userList = User::all(); |
|
101 | + $userList = User::all(); |
|
102 | 102 | foreach($userList as $user) |
103 | 103 | { |
104 | 104 | $row = UserSettings::where('user_id', $user->user_id)->count(); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | // Get the total count of file links the user has |
50 | 50 | public function getUserTotalLinks() |
51 | 51 | { |
52 | - $totalLinks = FileLinks::where('user_id', $this->userID)->count(); |
|
52 | + $totalLinks = FileLinks::where('user_id', $this->userID)->count(); |
|
53 | 53 | Log::debug('Retrieved count of total File Links for User ID'.$this->userID.'. Data - ', ['Total Links' => $totalLinks]); |
54 | 54 | |
55 | 55 | return $totalLinks; |
@@ -75,7 +75,7 @@ |
||
75 | 75 | // Find any fields that have been removed from the list |
76 | 76 | protected function findRemovedFields() |
77 | 77 | { |
78 | - $curFields = $this->getFieldsForEquip($this->sysID); //SystemDataFields::where('sys_id', $this->sysID)->get(); |
|
78 | + $curFields = $this->getFieldsForEquip($this->sysID); //SystemDataFields::where('sys_id', $this->sysID)->get(); |
|
79 | 79 | |
80 | 80 | $removedList = []; |
81 | 81 | foreach($curFields as $field) |
@@ -78,9 +78,9 @@ |
||
78 | 78 | 'cust_sys_id' => $equipID, |
79 | 79 | 'field_id' => $field['field_id'], |
80 | 80 | ], |
81 | - [ 'cust_sys_id' => $equipID, |
|
81 | + ['cust_sys_id' => $equipID, |
|
82 | 82 | 'field_id' => $field['field_id'], |
83 | - 'value' => isset($field['value']) ? $field['value'] : null,])->update([ |
|
83 | + 'value' => isset($field['value']) ? $field['value'] : null, ])->update([ |
|
84 | 84 | 'value' => isset($field['value']) ? $field['value'] : null, |
85 | 85 | ]); |
86 | 86 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | return false; |
30 | 30 | } |
31 | 31 | |
32 | - $fileID = $this->addDatabaseRow($filename, $this->path); |
|
32 | + $fileID = $this->addDatabaseRow($filename, $this->path); |
|
33 | 33 | $this->processCustFile($fileID, $userID, $request); |
34 | 34 | |
35 | 35 | return true; |
@@ -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 | } |