Passed
Push — dev5 ( 1c738e...7a9344 )
by Ron
06:10
created
database/factories/TechTipTypes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use App\TechTipTypes;
6 6
 use Faker\Generator as Faker;
7 7
 
8
-$factory->define(TechTipTypes::class, function (Faker $faker) {
8
+$factory->define(TechTipTypes::class, function(Faker $faker) {
9 9
     return [
10 10
         'description' => $faker->catchPhrase,
11 11
     ];
Please login to merge, or discard this patch.
database/factories/CustomerFilesFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use App\CustomerFiles;
6 6
 use Faker\Generator as Faker;
7 7
 
8
-$factory->define(CustomerFiles::class, function (Faker $faker) {
8
+$factory->define(CustomerFiles::class, function(Faker $faker) {
9 9
     return [
10 10
         'file_id'      => factory(App\Files::class)->create()->file_id,
11 11
         'file_type_id' => factory(App\CustomerFileTypes::class)->create()->file_type_id,
Please login to merge, or discard this patch.
database/factories/SystemDataFieldTypesFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use App\SystemDataFieldTypes;
6 6
 use Faker\Generator as Faker;
7 7
 
8
-$factory->define(SystemDataFieldTypes::class, function (Faker $faker) {
8
+$factory->define(SystemDataFieldTypes::class, function(Faker $faker) {
9 9
     return [
10 10
         'name'   => $faker->words(3, true),
11 11
         'hidden' => 0
Please login to merge, or discard this patch.
database/migrations/2019_11_25_175206_updates_for_version_5_0.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
     private function updatePhoneIcons()
66 66
     {
67 67
         $newIcons = [
68
-            ['description' => 'Home',   'icon_class' => 'ti-home'],
69
-            ['description' => 'Work',   'icon_class' => 'ti-briefcase'],
68
+            ['description' => 'Home', 'icon_class' => 'ti-home'],
69
+            ['description' => 'Work', 'icon_class' => 'ti-briefcase'],
70 70
             ['description' => 'Mobile', 'icon_class' => 'ti-mobile'],
71 71
         ];
72 72
 
@@ -363,8 +363,8 @@  discard block
 block discarded – undo
363 363
     //  Add soft deletes to tech tips table to prevent accidental deletes
364 364
     private function addSoftDeleteToTechTips()
365 365
     {
366
-        if (!Schema::hasColumn('tech_tips', 'deleted_at')) {
367
-            Schema::table('tech_tips', function (Blueprint $table) {
366
+        if(!Schema::hasColumn('tech_tips', 'deleted_at')) {
367
+            Schema::table('tech_tips', function(Blueprint $table) {
368 368
                 $table->softDeletes()->after('description');
369 369
             });
370 370
         }
Please login to merge, or discard this patch.
database/migrations/2018_11_27_193438_create_settings_table.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,16 +23,16 @@
 block discarded – undo
23 23
         //  TODO - simplify this
24 24
         //  Insert default settings
25 25
         DB::table('settings')->insert([
26
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.logo',          'value' => config('app.logo')],
27
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.timezone',      'value' => config('app.timezone')],
28
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.host',         'value' => config('mail.host')],
29
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.port',         'value' => config('mail.port')],
30
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.encryption',   'value' => config('mail.encryption')],
31
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.username',     'value' => config('mail.username')],
32
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.password',     'value' => config('mail.password')],
26
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.logo', 'value' => config('app.logo')],
27
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'app.timezone', 'value' => config('app.timezone')],
28
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.host', 'value' => config('mail.host')],
29
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.port', 'value' => config('mail.port')],
30
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.encryption', 'value' => config('mail.encryption')],
31
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.username', 'value' => config('mail.username')],
32
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.password', 'value' => config('mail.password')],
33 33
             ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.address', 'value' => config('mail.from.address')],
34
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.name',    'value' => config('mail.from.name')],
35
-            ['created_at' => \Carbon\Carbon::now(), 'key' => 'user.passExpires',  'value' => 30],
34
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'mail.from.name', 'value' => config('mail.from.name')],
35
+            ['created_at' => \Carbon\Carbon::now(), 'key' => 'user.passExpires', 'value' => 30],
36 36
         ]);
37 37
     }
38 38
 
Please login to merge, or discard this patch.
routes/web.php 2 patches
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -8,56 +8,56 @@  discard block
 block discarded – undo
8 8
 /*
9 9
 *   Non user Routes
10 10
 */
11
-Route::get('/',         'Auth\LoginController@showLoginForm')->name('index');
12
-Route::get('logout',    'Auth\LoginController@logout')       ->name('logout');
11
+Route::get('/', 'Auth\LoginController@showLoginForm')->name('index');
12
+Route::get('logout', 'Auth\LoginController@logout')       ->name('logout');
13 13
 Route::get('no-script', 'Controller@noScript')               ->name('noscript');
14 14
 
15 15
 /*
16 16
 *   Download File Routes
17 17
 */
18
-Route::get('download/{id}/{filename}',    'DownloadController@index')          ->name('download');
18
+Route::get('download/{id}/{filename}', 'DownloadController@index')          ->name('download');
19 19
 Route::get('download-archive/{filename}', 'DownloadController@downloadArchive')->name('downloadArchive');
20
-Route::put('download-archive',            'DownloadController@archiveFiles')   ->name('archiveFiles');
20
+Route::put('download-archive', 'DownloadController@archiveFiles')   ->name('archiveFiles');
21 21
 
22 22
 /*
23 23
 *   User Settings Routes
24 24
 */
25
-Route::get('account',                   'AccountController@index')         ->name('account');
26
-Route::post('account',                  'AccountController@submit')        ->name('account');
27
-Route::put('account',                   'AccountController@notifications') ->name('account');
28
-Route::get('/account/change-password',  'AccountController@changePassword')->name('changePassword');
25
+Route::get('account', 'AccountController@index')         ->name('account');
26
+Route::post('account', 'AccountController@submit')        ->name('account');
27
+Route::put('account', 'AccountController@notifications') ->name('account');
28
+Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword');
29 29
 Route::post('/account/change-password', 'AccountController@submitPassword')->name('changePassword');
30 30
 
31 31
 /*
32 32
 *   Basic Logged In Routes
33 33
 */
34
-Route::get('about',     'DashboardController@about')->name('about');
34
+Route::get('about', 'DashboardController@about')->name('about');
35 35
 Route::get('dashboard', 'DashboardController@index')->name('dashboard');
36 36
 
37 37
 /*
38 38
 *   File Link Routes
39 39
 */
40
-Route::prefix('links')->name('links.')->group(function () {
40
+Route::prefix('links')->name('links.')->group(function() {
41 41
     //  Resource controllers for base access
42
-    Route::resource('data',           'FileLinks\FileLinksController');
43
-    Route::get('new',                 'FileLinks\FileLinksController@create')     ->name('new');
44
-    Route::get('find/{id}',           'FileLinks\FileLinksController@find')       ->name('user');
42
+    Route::resource('data', 'FileLinks\FileLinksController');
43
+    Route::get('new', 'FileLinks\FileLinksController@create')     ->name('new');
44
+    Route::get('find/{id}', 'FileLinks\FileLinksController@find')       ->name('user');
45 45
     Route::get('details/{id}/{name}', 'FileLinks\FileLinksController@details')    ->name('details');
46
-    Route::get('disable/{id}',        'FileLinks\FileLinksController@disableLink')->name('disable');
46
+    Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable');
47 47
     //  File Link Files
48
-    Route::resource('files',          'FileLinks\LinkFilesController');
48
+    Route::resource('files', 'FileLinks\LinkFilesController');
49 49
     //  Index landing page
50
-    Route::get('/',                   'FileLinks\FileLinksController@index')      ->name('index');
50
+    Route::get('/', 'FileLinks\FileLinksController@index')      ->name('index');
51 51
 });
52 52
 
53 53
 /*
54 54
 *   Guest File Link Routes
55 55
 */
56 56
 Route::get('file-links/{id}/get-files', 'FileLinks\GuestLinksController@getFiles')->name('file-links.getFiles');
57
-Route::put('file-links/{id}',           'FileLinks\GuestLinksController@notify')  ->name('file-links.show');
58
-Route::post('file-links/{id}',          'FileLinks\GuestLinksController@update')  ->name('file-links.show');
59
-Route::get('file-links/{id}',           'FileLinks\GuestLinksController@show')    ->name('file-links.show');
60
-Route::get('file-links',                'FileLinks\GuestLinksController@index')   ->name('file-links.index');
57
+Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify')  ->name('file-links.show');
58
+Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update')  ->name('file-links.show');
59
+Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show')    ->name('file-links.show');
60
+Route::get('file-links', 'FileLinks\GuestLinksController@index')   ->name('file-links.index');
61 61
 
62 62
 /*
63 63
 *   Customer Routes
@@ -65,38 +65,38 @@  discard block
 block discarded – undo
65 65
 Route::prefix('customer')->name('customer.')->group(function()
66 66
 {
67 67
     //  Customer Files
68
-    Route::resource('files',                   'Customers\CustomerFilesController');
68
+    Route::resource('files', 'Customers\CustomerFilesController');
69 69
     //  Custome Notes
70
-    Route::get('download-note/{id}',           'DownloadController@downloadCustNote')        ->name('download-note');
71
-    Route::resource('notes',                   'Customers\CustomerNotesController');
70
+    Route::get('download-note/{id}', 'DownloadController@downloadCustNote')        ->name('download-note');
71
+    Route::resource('notes', 'Customers\CustomerNotesController');
72 72
     //  Customer Contacts
73
-    Route::resource('contacts',                'Customers\CustomerContactsController');
73
+    Route::resource('contacts', 'Customers\CustomerContactsController');
74 74
     //  Customer Systems
75
-    Route::resource('systems',                 'Customers\CustomerSystemsController');
75
+    Route::resource('systems', 'Customers\CustomerSystemsController');
76 76
     //  Customer Details
77
-    Route::get('id/{id}/{name}',               'Customers\CustomerDetailsController@details')->name('details');
78
-    Route::resource('id',                      'Customers\CustomerDetailsController');
77
+    Route::get('id/{id}/{name}', 'Customers\CustomerDetailsController@details')->name('details');
78
+    Route::resource('id', 'Customers\CustomerDetailsController');
79 79
     //  check Id and bookmark customer
80 80
     Route::get('toggle-fav/{action}/{custID}', 'Customers\CustomerController@toggleFav')     ->name('toggle-fav');
81
-    Route::get('check-id/{id}',                'Customers\CustomerController@checkID')       ->name('check-id');
81
+    Route::get('check-id/{id}', 'Customers\CustomerController@checkID')       ->name('check-id');
82 82
     //  Index landing/search page
83
-    Route::get('search',                       'Customers\CustomerController@search')        ->name('search');
84
-    Route::get('/',                            'Customers\CustomerController@index')         ->name('index');
83
+    Route::get('search', 'Customers\CustomerController@search')        ->name('search');
84
+    Route::get('/', 'Customers\CustomerController@index')         ->name('index');
85 85
 });
86 86
 
87 87
 /*
88 88
 *   Tech Tip Routes
89 89
 */
90
-Route::resource('tips',                       'TechTips\TechTipsController');
91
-Route::post('submit-edit/{id}',               'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
90
+Route::resource('tips', 'TechTips\TechTipsController');
91
+Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
92 92
 Route::prefix('tip')->name('tip.')->group(function()
93 93
 {
94
-    Route::resource('comments',               'TechTips\TechTipCommentsController');
95
-    Route::get('search',                      'TechTips\TechTipsController@search')      ->name('search');
96
-    Route::get('details/{id}/{name}',         'TechTips\TechTipsController@details')     ->name('details');
97
-    Route::post('process-image',              'TechTips\TechTipsController@processImage')->name('processImage');
94
+    Route::resource('comments', 'TechTips\TechTipCommentsController');
95
+    Route::get('search', 'TechTips\TechTipsController@search')      ->name('search');
96
+    Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details')     ->name('details');
97
+    Route::post('process-image', 'TechTips\TechTipsController@processImage')->name('processImage');
98 98
     Route::get('toggle-fav/{action}/{tipID}', 'TechTips\TechTipsController@toggleFav')   ->name('toggle-fav');
99
-    Route::get('download-tip/{id}',           'DownloadController@downloadTechTip')      ->name('downloadTip');
99
+    Route::get('download-tip/{id}', 'DownloadController@downloadTechTip')      ->name('downloadTip');
100 100
 });
101 101
 
102 102
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,8 +62,7 @@  discard block
 block discarded – undo
62 62
 /*
63 63
 *   Customer Routes
64 64
 */
65
-Route::prefix('customer')->name('customer.')->group(function()
66
-{
65
+Route::prefix('customer')->name('customer.')->group(function() {
67 66
     //  Customer Files
68 67
     Route::resource('files',                   'Customers\CustomerFilesController');
69 68
     //  Custome Notes
@@ -89,8 +88,7 @@  discard block
 block discarded – undo
89 88
 */
90 89
 Route::resource('tips',                       'TechTips\TechTipsController');
91 90
 Route::post('submit-edit/{id}',               'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
92
-Route::prefix('tip')->name('tip.')->group(function()
93
-{
91
+Route::prefix('tip')->name('tip.')->group(function() {
94 92
     Route::resource('comments',               'TechTips\TechTipCommentsController');
95 93
     Route::get('search',                      'TechTips\TechTipsController@search')      ->name('search');
96 94
     Route::get('details/{id}/{name}',         'TechTips\TechTipsController@details')     ->name('details');
Please login to merge, or discard this patch.