Test Failed
Push — dev5 ( 12da53...ea9e9d )
by Ron
07:49
created
routes/web.php 2 patches
Spacing   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@  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
 
@@ -21,53 +21,53 @@  discard block
 block discarded – undo
21 21
 /*
22 22
 *   Download File Routes
23 23
 */
24
-Route::get('download/{id}/{filename}',    'DownloadController@index')          ->name('download');
24
+Route::get('download/{id}/{filename}', 'DownloadController@index')          ->name('download');
25 25
 Route::get('download-archive/{filename}', 'DownloadController@downloadArchive')->name('downloadArchive');
26
-Route::put('download-archive',            'DownloadController@archiveFiles')   ->name('archiveFiles');
26
+Route::put('download-archive', 'DownloadController@archiveFiles')   ->name('archiveFiles');
27 27
 
28 28
 /*
29 29
 *   User Settings Routes
30 30
 */
31
-Route::get('account',                   'AccountController@index')         ->name('account');
32
-Route::post('account',                  'AccountController@submit')        ->name('account');
33
-Route::put('account',                   'AccountController@notifications') ->name('account');
34
-Route::get('/account/change-password',  'AccountController@changePassword')->name('changePassword');
31
+Route::get('account', 'AccountController@index')         ->name('account');
32
+Route::post('account', 'AccountController@submit')        ->name('account');
33
+Route::put('account', 'AccountController@notifications') ->name('account');
34
+Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword');
35 35
 Route::post('/account/change-password', 'AccountController@submitPassword')->name('changePassword');
36 36
 
37 37
 /*
38 38
 *   Basic Logged In Routes
39 39
 */
40
-Route::get('about',                  'DashboardController@about')           ->name('about');
41
-Route::get('dashboard',              'DashboardController@index')           ->name('dashboard');
42
-Route::get('notifications',          'DashboardController@getNotifications')->name('getNotifications');
40
+Route::get('about', 'DashboardController@about')           ->name('about');
41
+Route::get('dashboard', 'DashboardController@index')           ->name('dashboard');
42
+Route::get('notifications', 'DashboardController@getNotifications')->name('getNotifications');
43 43
 Route::get('mark-notification/{id}', 'DashboardController@markNotification')->name('markNotification');
44
-Route::delete('notifications/{id}',  'DashboardController@delNotification') ->name('delNotification');
44
+Route::delete('notifications/{id}', 'DashboardController@delNotification') ->name('delNotification');
45 45
 
46 46
 /*
47 47
 *   File Link Routes
48 48
 */
49
-Route::prefix('links')->name('links.')->group(function ()
49
+Route::prefix('links')->name('links.')->group(function()
50 50
 {
51 51
     //  Resource controllers for base access
52
-    Route::resource('data',           'FileLinks\FileLinksController');
53
-    Route::get('new',                 'FileLinks\FileLinksController@create')     ->name('new');
54
-    Route::get('find/{id}',           'FileLinks\FileLinksController@find')       ->name('user');
52
+    Route::resource('data', 'FileLinks\FileLinksController');
53
+    Route::get('new', 'FileLinks\FileLinksController@create')     ->name('new');
54
+    Route::get('find/{id}', 'FileLinks\FileLinksController@find')       ->name('user');
55 55
     Route::get('details/{id}/{name}', 'FileLinks\FileLinksController@details')    ->name('details');
56
-    Route::get('disable/{id}',        'FileLinks\FileLinksController@disableLink')->name('disable');
56
+    Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable');
57 57
     //  File Link Files
58
-    Route::resource('files',          'FileLinks\LinkFilesController');
58
+    Route::resource('files', 'FileLinks\LinkFilesController');
59 59
     //  Index landing page
60
-    Route::get('/',                   'FileLinks\FileLinksController@index')      ->name('index');
60
+    Route::get('/', 'FileLinks\FileLinksController@index')      ->name('index');
61 61
 });
62 62
 
63 63
 /*
64 64
 *   Guest File Link Routes
65 65
 */
66 66
 Route::get('file-links/{id}/get-files', 'FileLinks\GuestLinksController@getFiles')->name('file-links.getFiles');
67
-Route::put('file-links/{id}',           'FileLinks\GuestLinksController@notify')  ->name('file-links.show');
68
-Route::post('file-links/{id}',          'FileLinks\GuestLinksController@update')  ->name('file-links.show');
69
-Route::get('file-links/{id}',           'FileLinks\GuestLinksController@show')    ->name('file-links.show');
70
-Route::get('file-links',                'FileLinks\GuestLinksController@index')   ->name('file-links.index');
67
+Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify')  ->name('file-links.show');
68
+Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update')  ->name('file-links.show');
69
+Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show')    ->name('file-links.show');
70
+Route::get('file-links', 'FileLinks\GuestLinksController@index')   ->name('file-links.index');
71 71
 
72 72
 /*
73 73
 *   Customer Routes
@@ -75,89 +75,89 @@  discard block
 block discarded – undo
75 75
 Route::prefix('customer')->name('customer.')->group(function()
76 76
 {
77 77
     //  Customer Files
78
-    Route::resource('files',                   'Customers\CustomerFilesController');
78
+    Route::resource('files', 'Customers\CustomerFilesController');
79 79
     //  Custome Notes
80
-    Route::get('download-note/{id}',           'DownloadController@downloadCustNote')             ->name('download-note');
81
-    Route::resource('notes',                   'Customers\CustomerNotesController');
80
+    Route::get('download-note/{id}', 'DownloadController@downloadCustNote')             ->name('download-note');
81
+    Route::resource('notes', 'Customers\CustomerNotesController');
82 82
     //  Customer Contacts
83
-    Route::resource('contacts',                'Customers\CustomerContactsController');
83
+    Route::resource('contacts', 'Customers\CustomerContactsController');
84 84
     //  Customer Systems
85
-    Route::resource('systems',                 'Customers\CustomerSystemsController');
85
+    Route::resource('systems', 'Customers\CustomerSystemsController');
86 86
     //  Customer Details
87
-    Route::get('link-parent/{id}',             'Customers\CustomerDetailsController@removeParent')->name('removeParent');
88
-    Route::post('link-parent',                 'Customers\CustomerDetailsController@linkParent')  ->name('linkParent');
89
-    Route::get('id/{id}/{name}',               'Customers\CustomerDetailsController@details')     ->name('details');
90
-    Route::resource('id',                      'Customers\CustomerDetailsController');
87
+    Route::get('link-parent/{id}', 'Customers\CustomerDetailsController@removeParent')->name('removeParent');
88
+    Route::post('link-parent', 'Customers\CustomerDetailsController@linkParent')  ->name('linkParent');
89
+    Route::get('id/{id}/{name}', 'Customers\CustomerDetailsController@details')     ->name('details');
90
+    Route::resource('id', 'Customers\CustomerDetailsController');
91 91
     //  check Id and bookmark customer
92 92
     Route::get('toggle-fav/{action}/{custID}', 'Customers\CustomerController@toggleFav')          ->name('toggle-fav');
93
-    Route::get('check-id/{id}',                'Customers\CustomerController@checkID')            ->name('check-id');
93
+    Route::get('check-id/{id}', 'Customers\CustomerController@checkID')            ->name('check-id');
94 94
     //  Index landing/search page
95
-    Route::get('search',                       'Customers\CustomerController@search')             ->name('search');
96
-    Route::get('/',                            'Customers\CustomerController@index')              ->name('index');
95
+    Route::get('search', 'Customers\CustomerController@search')             ->name('search');
96
+    Route::get('/', 'Customers\CustomerController@index')              ->name('index');
97 97
 });
98 98
 
99 99
 /*
100 100
 *   Tech Tip Routes
101 101
 */
102
-Route::resource('tips',                       'TechTips\TechTipsController');
103
-Route::post('submit-edit/{id}',               'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
102
+Route::resource('tips', 'TechTips\TechTipsController');
103
+Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
104 104
 Route::prefix('tip')->name('tip.')->group(function()
105 105
 {
106
-    Route::resource('comments',               'TechTips\TechTipCommentsController');
107
-    Route::get('search',                      'TechTips\TechTipsController@search')      ->name('search');
108
-    Route::get('details/{id}/{name}',         'TechTips\TechTipsController@details')     ->name('details');
109
-    Route::post('process-image',              'TechTips\TechTipsController@processImage')->name('processImage');
106
+    Route::resource('comments', 'TechTips\TechTipCommentsController');
107
+    Route::get('search', 'TechTips\TechTipsController@search')      ->name('search');
108
+    Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details')     ->name('details');
109
+    Route::post('process-image', 'TechTips\TechTipsController@processImage')->name('processImage');
110 110
     Route::get('toggle-fav/{action}/{tipID}', 'TechTips\TechTipsController@toggleFav')   ->name('toggle-fav');
111
-    Route::get('download-tip/{id}',           'DownloadController@downloadTechTip')      ->name('downloadTip');
111
+    Route::get('download-tip/{id}', 'DownloadController@downloadTechTip')      ->name('downloadTip');
112 112
 });
113 113
 
114 114
 /*
115 115
 *   Administration Routes
116 116
 */
117
-Route::prefix('admin')->name('admin.')->group(function ()
117
+Route::prefix('admin')->name('admin.')->group(function()
118 118
 {
119 119
     //  Routes for Tech Bench Add-ons
120 120
     Route::prefix('modules')->name('module.')->group(function()
121 121
     {
122 122
         Route::delete('delete-staged/{name}', 'Installer\ModuleController@delStaged')->name('deleteStaged');
123
-        Route::post('upload',                 'Installer\ModuleController@upload')->name('upload');
124
-        Route::get('activate/{name}',         'Installer\ModuleController@activate')->name('activate');
125
-        Route::get('disable/{name}',          'Installer\ModuleController@disable')->name('disable');
126
-        Route::get('enable/{name}',           'Installer\ModuleController@enable')->name('enable');
127
-        Route::get('get-active',              'Installer\ModuleController@getEnabled')->name('getEnabled');
128
-        Route::get('get-staged',              'Installer\ModuleController@getStaged')->name('getStaged');
129
-        Route::get('/',                       'Installer\ModuleController@index')->name('index');
123
+        Route::post('upload', 'Installer\ModuleController@upload')->name('upload');
124
+        Route::get('activate/{name}', 'Installer\ModuleController@activate')->name('activate');
125
+        Route::get('disable/{name}', 'Installer\ModuleController@disable')->name('disable');
126
+        Route::get('enable/{name}', 'Installer\ModuleController@enable')->name('enable');
127
+        Route::get('get-active', 'Installer\ModuleController@getEnabled')->name('getEnabled');
128
+        Route::get('get-staged', 'Installer\ModuleController@getStaged')->name('getStaged');
129
+        Route::get('/', 'Installer\ModuleController@index')->name('index');
130 130
     });
131 131
     //  Administrative routes for equipment and equipment categories
132
-    Route::resource('categories',          'Installer\CategoriesController');
133
-    Route::resource('systems',             'Installer\SystemsController');
132
+    Route::resource('categories', 'Installer\CategoriesController');
133
+    Route::resource('systems', 'Installer\SystemsController');
134 134
     //  Administrative routes for users
135
-    Route::resource('user',                'Admin\UserController');
136
-    Route::get('user/enable/{id}',         'Admin\UserController@reactivateUser')             ->name('user.reactivate');
137
-    Route::post('user/change-password',    'Admin\UserController@submitPassword')             ->name('user.changePassword');
135
+    Route::resource('user', 'Admin\UserController');
136
+    Route::get('user/enable/{id}', 'Admin\UserController@reactivateUser')             ->name('user.reactivate');
137
+    Route::post('user/change-password', 'Admin\UserController@submitPassword')             ->name('user.changePassword');
138 138
     Route::get('check-user/{name}/{type}', 'Admin\UserController@checkUser')                  ->name('checkUser');
139
-    Route::get('links/show/{id}',          'Admin\AdminController@showLinks')                 ->name('user.showLinks');
140
-    Route::get('links',                    'Admin\AdminController@userLinks')                 ->name('user.links');
141
-    Route::post('password-policy',         'Admin\AdminController@submitPolicy')              ->name('passwordPolicy');
142
-    Route::get('password-policy',          'Admin\AdminController@passwordPolicy')            ->name('passwordPolicy');
143
-    Route::post('role-policy',             'Admin\AdminController@submitRoleSettings')        ->name('roleSettings');
144
-    Route::get('role-policy',              'Admin\AdminController@roleSettings')              ->name('roleSettings');
139
+    Route::get('links/show/{id}', 'Admin\AdminController@showLinks')                 ->name('user.showLinks');
140
+    Route::get('links', 'Admin\AdminController@userLinks')                 ->name('user.links');
141
+    Route::post('password-policy', 'Admin\AdminController@submitPolicy')              ->name('passwordPolicy');
142
+    Route::get('password-policy', 'Admin\AdminController@passwordPolicy')            ->name('passwordPolicy');
143
+    Route::post('role-policy', 'Admin\AdminController@submitRoleSettings')        ->name('roleSettings');
144
+    Route::get('role-policy', 'Admin\AdminController@roleSettings')              ->name('roleSettings');
145 145
     //  Tech Bench Settings Routes
146
-    Route::post('logo',                    'Installer\SettingsController@submitLogo')         ->name('submitLogo');
147
-    Route::get('logo',                     'Installer\SettingsController@logoSettings')       ->name('logoSettings');
148
-    Route::post('configuratin',            'Installer\SettingsController@submitConfiguration')->name('submitConfig');
149
-    Route::get('configuration',            'Installer\SettingsController@configuration')      ->name('config');
150
-    Route::post('email-settings',          'Installer\SettingsController@submitEmailSettings')->name('emailSettings');
151
-    Route::put('email-settings',           'Installer\SettingsController@sendTestEmail')      ->name('emailSettings');
152
-    Route::get('email-settings',           'Installer\SettingsController@emailSettings')      ->name('emailSettings');
146
+    Route::post('logo', 'Installer\SettingsController@submitLogo')         ->name('submitLogo');
147
+    Route::get('logo', 'Installer\SettingsController@logoSettings')       ->name('logoSettings');
148
+    Route::post('configuratin', 'Installer\SettingsController@submitConfiguration')->name('submitConfig');
149
+    Route::get('configuration', 'Installer\SettingsController@configuration')      ->name('config');
150
+    Route::post('email-settings', 'Installer\SettingsController@submitEmailSettings')->name('emailSettings');
151
+    Route::put('email-settings', 'Installer\SettingsController@sendTestEmail')      ->name('emailSettings');
152
+    Route::get('email-settings', 'Installer\SettingsController@emailSettings')      ->name('emailSettings');
153 153
     //  Tech Bench Backup Routes
154
-    Route::get('backups/download/{name}',  'Installer\SettingsController@downloadBackup')     ->name('downloadBackup');
155
-    Route::get('backups/delete/{name}',    'Installer\SettingsController@delBackup')          ->name('delBackup');
156
-    Route::get('backups/run',              'Installer\SettingsController@runBackup')          ->name('runBackup');
157
-    Route::get('backups/get',              'Installer\SettingsController@getBackups')         ->name('getBackups');
158
-    Route::get('backups',                  'Installer\SettingsController@backupsIndex')       ->name('backups');
154
+    Route::get('backups/download/{name}', 'Installer\SettingsController@downloadBackup')     ->name('downloadBackup');
155
+    Route::get('backups/delete/{name}', 'Installer\SettingsController@delBackup')          ->name('delBackup');
156
+    Route::get('backups/run', 'Installer\SettingsController@runBackup')          ->name('runBackup');
157
+    Route::get('backups/get', 'Installer\SettingsController@getBackups')         ->name('getBackups');
158
+    Route::get('backups', 'Installer\SettingsController@backupsIndex')       ->name('backups');
159 159
     //  Admin index route
160
-    Route::get('/',                        'Admin\AdminController@index')                     ->name('index');
160
+    Route::get('/', 'Admin\AdminController@index')                     ->name('index');
161 161
 
162 162
 
163 163
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
 /*
47 47
 *   File Link Routes
48 48
 */
49
-Route::prefix('links')->name('links.')->group(function ()
50
-{
49
+Route::prefix('links')->name('links.')->group(function () {
51 50
     //  Resource controllers for base access
52 51
     Route::resource('data',           'FileLinks\FileLinksController');
53 52
     Route::get('new',                 'FileLinks\FileLinksController@create')     ->name('new');
@@ -72,8 +71,7 @@  discard block
 block discarded – undo
72 71
 /*
73 72
 *   Customer Routes
74 73
 */
75
-Route::prefix('customer')->name('customer.')->group(function()
76
-{
74
+Route::prefix('customer')->name('customer.')->group(function() {
77 75
     //  Customer Files
78 76
     Route::resource('files',                   'Customers\CustomerFilesController');
79 77
     //  Custome Notes
@@ -101,8 +99,7 @@  discard block
 block discarded – undo
101 99
 */
102 100
 Route::resource('tips',                       'TechTips\TechTipsController');
103 101
 Route::post('submit-edit/{id}',               'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
104
-Route::prefix('tip')->name('tip.')->group(function()
105
-{
102
+Route::prefix('tip')->name('tip.')->group(function() {
106 103
     Route::resource('comments',               'TechTips\TechTipCommentsController');
107 104
     Route::get('search',                      'TechTips\TechTipsController@search')      ->name('search');
108 105
     Route::get('details/{id}/{name}',         'TechTips\TechTipsController@details')     ->name('details');
@@ -114,11 +111,9 @@  discard block
 block discarded – undo
114 111
 /*
115 112
 *   Administration Routes
116 113
 */
117
-Route::prefix('admin')->name('admin.')->group(function ()
118
-{
114
+Route::prefix('admin')->name('admin.')->group(function () {
119 115
     //  Routes for Tech Bench Add-ons
120
-    Route::prefix('modules')->name('module.')->group(function()
121
-    {
116
+    Route::prefix('modules')->name('module.')->group(function() {
122 117
         Route::delete('delete-staged/{name}', 'Installer\ModuleController@delStaged')->name('deleteStaged');
123 118
         Route::post('upload',                 'Installer\ModuleController@upload')->name('upload');
124 119
         Route::get('activate/{name}',         'Installer\ModuleController@activate')->name('activate');
Please login to merge, or discard this patch.
database/seeds/EquipmentSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
                 SystemDataFields::create([
58 58
                     'sys_id' => $sys->sys_id,
59 59
                     'data_type_id' => $i,
60
-                    'order' => $i-1,
60
+                    'order' => $i - 1,
61 61
                 ]);
62 62
             }
63 63
         }
Please login to merge, or discard this patch.
database/seeds/DatabaseSeeder.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
     public function run()
13 13
     {
14 14
         //  TODO:  add seeders for demo setup
15
-         $this->call(UserTableSeeder::class);
16
-         $this->call(EquipmentSeeder::class);
17
-         $this->call(CustomerSeeder::class);
18
-         $this->call(TechTipsSeeder::class);
15
+            $this->call(UserTableSeeder::class);
16
+            $this->call(EquipmentSeeder::class);
17
+            $this->call(CustomerSeeder::class);
18
+            $this->call(TechTipsSeeder::class);
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
database/factories/Customers.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\Customers;
6 6
 use Faker\Generator as Faker;
7 7
 
8
-$factory->define(Customers::class, function (Faker $faker) {
8
+$factory->define(Customers::class, function(Faker $faker) {
9 9
     return [
10 10
         'cust_id'   => $faker->unique()->numberBetween(50, 10000),
11 11
         'parent_id' => null,
Please login to merge, or discard this patch.
database/factories/UserFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         'first_name'       => $faker->firstName,
11 11
         'last_name'        => $faker->lastName,
12 12
         'email'            => $faker->unique()->safeEmail,
13
-        'password'         => bcrypt('password'),  //  All test users will have the password of 'password' to allow testing access
13
+        'password'         => bcrypt('password'), //  All test users will have the password of 'password' to allow testing access
14 14
         'remember_token'   => null, // Str::random(10),
15 15
         'password_expires' => null,
16 16
     ];
Please login to merge, or discard this patch.