@@ -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) |
@@ -54,7 +54,7 @@ |
||
54 | 54 | { |
55 | 55 | $mail->to($emailAddress)->send(new TestEmail); |
56 | 56 | } |
57 | - catch (\Exception $e) |
|
57 | + catch(\Exception $e) |
|
58 | 58 | { |
59 | 59 | return $e->getMessage(); |
60 | 60 | } |
@@ -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 | }); |
@@ -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 | } |