@@ -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 |
@@ -22,8 +22,8 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | public function getUserCustomerFavs() |
| 24 | 24 | { |
| 25 | - $custFavs = CustomerFavs::where('user_id', $this->userID) |
|
| 26 | - ->with(array('Customers' => function($query){ |
|
| 25 | + $custFavs = CustomerFavs::where('user_id', $this->userID) |
|
| 26 | + ->with(array('Customers' => function($query) { |
|
| 27 | 27 | $query->select('cust_id', 'name'); |
| 28 | 28 | })) |
| 29 | 29 | ->get(); |
@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | public function getUserTechTipFavs() |
| 43 | 43 | { |
| 44 | - $tipFavs = TechTipFavs::where('user_id', $this->userID) |
|
| 45 | - ->with(array('TechTips' => function($query){ |
|
| 44 | + $tipFavs = TechTipFavs::where('user_id', $this->userID) |
|
| 45 | + ->with(array('TechTips' => function($query) { |
|
| 46 | 46 | $query->select('tip_id', 'subject'); |
| 47 | 47 | })) |
| 48 | 48 | ->get(); |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | public function getUserTotalLinks() |
| 70 | 70 | { |
| 71 | - $totalLinks = FileLinks::where('user_id', $this->userID)->count(); |
|
| 71 | + $totalLinks = FileLinks::where('user_id', $this->userID)->count(); |
|
| 72 | 72 | |
| 73 | 73 | Log::debug('Retrieved count of total File Links for User ID'.$this->userID.'. Data - './** @scrutinizer ignore-type */$totalLinks.' found'); |
| 74 | 74 | return $totalLinks; |
@@ -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(); |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | } |
| 532 | 532 | |
| 533 | 533 | // Check user_id foreign key |
| 534 | - $list = FileLinkFiles::select('user_id')->groupBy('user_id')->get(); |
|
| 534 | + $list = FileLinkFiles::select('user_id')->groupBy('user_id')->get(); |
|
| 535 | 535 | foreach($list as $l) |
| 536 | 536 | { |
| 537 | 537 | if($l->user_id) |
@@ -660,7 +660,7 @@ discard block |
||
| 660 | 660 | } |
| 661 | 661 | |
| 662 | 662 | // Check user_id foreign key |
| 663 | - $list = CustomerNotes::select('user_id')->groupBy('user_id')->get(); |
|
| 663 | + $list = CustomerNotes::select('user_id')->groupBy('user_id')->get(); |
|
| 664 | 664 | foreach($list as $l) |
| 665 | 665 | { |
| 666 | 666 | if($l->user_id) |
@@ -739,7 +739,7 @@ discard block |
||
| 739 | 739 | } |
| 740 | 740 | |
| 741 | 741 | // Check user_id foreign key |
| 742 | - $list = CustomerFiles::select('user_id')->groupBy('user_id')->get(); |
|
| 742 | + $list = CustomerFiles::select('user_id')->groupBy('user_id')->get(); |
|
| 743 | 743 | foreach($list as $l) |
| 744 | 744 | { |
| 745 | 745 | if($l->user_id) |
@@ -784,7 +784,7 @@ discard block |
||
| 784 | 784 | } |
| 785 | 785 | |
| 786 | 786 | // Check user_id foreign key |
| 787 | - $list = CustomerFavs::select('user_id')->groupBy('user_id')->get(); |
|
| 787 | + $list = CustomerFavs::select('user_id')->groupBy('user_id')->get(); |
|
| 788 | 788 | foreach($list as $l) |
| 789 | 789 | { |
| 790 | 790 | if($l->user_id) |
@@ -854,7 +854,7 @@ discard block |
||
| 854 | 854 | } |
| 855 | 855 | |
| 856 | 856 | // Check phone_type_id foreign key |
| 857 | - $list = CustomerContactPhones::select('phone_type_id')->groupBy('phone_type_id')->get(); |
|
| 857 | + $list = CustomerContactPhones::select('phone_type_id')->groupBy('phone_type_id')->get(); |
|
| 858 | 858 | foreach($list as $l) |
| 859 | 859 | { |
| 860 | 860 | if($l->user_id) |