Passed
Push — dev5 ( 455ff1...2be149 )
by Ron
22:55
created
routes/web.php 1 patch
Spacing   +55 added lines, -55 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,52 +21,52 @@  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
     //  Resource controllers for base access
51
-    Route::resource('data',           'FileLinks\FileLinksController');
52
-    Route::get('new',                 'FileLinks\FileLinksController@create')     ->name('new');
53
-    Route::get('find/{id}',           'FileLinks\FileLinksController@find')       ->name('user');
51
+    Route::resource('data', 'FileLinks\FileLinksController');
52
+    Route::get('new', 'FileLinks\FileLinksController@create')     ->name('new');
53
+    Route::get('find/{id}', 'FileLinks\FileLinksController@find')       ->name('user');
54 54
     Route::get('details/{id}/{name}', 'FileLinks\FileLinksController@details')    ->name('details');
55
-    Route::get('disable/{id}',        'FileLinks\FileLinksController@disableLink')->name('disable');
55
+    Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable');
56 56
     //  File Link Files
57
-    Route::resource('files',          'FileLinks\LinkFilesController');
57
+    Route::resource('files', 'FileLinks\LinkFilesController');
58 58
     //  Index landing page
59
-    Route::get('/',                   'FileLinks\FileLinksController@index')      ->name('index');
59
+    Route::get('/', 'FileLinks\FileLinksController@index')      ->name('index');
60 60
 });
61 61
 
62 62
 /*
63 63
 *   Guest File Link Routes
64 64
 */
65 65
 Route::get('file-links/{id}/get-files', 'FileLinks\GuestLinksController@getFiles')->name('file-links.getFiles');
66
-Route::put('file-links/{id}',           'FileLinks\GuestLinksController@notify')  ->name('file-links.show');
67
-Route::post('file-links/{id}',          'FileLinks\GuestLinksController@update')  ->name('file-links.show');
68
-Route::get('file-links/{id}',           'FileLinks\GuestLinksController@show')    ->name('file-links.show');
69
-Route::get('file-links',                'FileLinks\GuestLinksController@index')   ->name('file-links.index');
66
+Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify')  ->name('file-links.show');
67
+Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update')  ->name('file-links.show');
68
+Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show')    ->name('file-links.show');
69
+Route::get('file-links', 'FileLinks\GuestLinksController@index')   ->name('file-links.index');
70 70
 
71 71
 /*
72 72
 *   Customer Routes
@@ -74,44 +74,44 @@  discard block
 block discarded – undo
74 74
 Route::prefix('customer')->name('customer.')->group(function()
75 75
 {
76 76
     //  Customer Files
77
-    Route::resource('files',                   'Customers\CustomerFilesController');
77
+    Route::resource('files', 'Customers\CustomerFilesController');
78 78
     //  Custome Notes
79
-    Route::get('download-note/{id}',           'DownloadController@downloadCustNote')        ->name('download-note');
80
-    Route::resource('notes',                   'Customers\CustomerNotesController');
79
+    Route::get('download-note/{id}', 'DownloadController@downloadCustNote')        ->name('download-note');
80
+    Route::resource('notes', 'Customers\CustomerNotesController');
81 81
     //  Customer Contacts
82
-    Route::resource('contacts',                'Customers\CustomerContactsController');
82
+    Route::resource('contacts', 'Customers\CustomerContactsController');
83 83
     //  Customer Systems
84
-    Route::resource('systems',                 'Customers\CustomerSystemsController');
84
+    Route::resource('systems', 'Customers\CustomerSystemsController');
85 85
     //  Customer Details
86
-    Route::get('id/{id}/{name}',               'Customers\CustomerDetailsController@details')->name('details');
87
-    Route::resource('id',                      'Customers\CustomerDetailsController');
86
+    Route::get('id/{id}/{name}', 'Customers\CustomerDetailsController@details')->name('details');
87
+    Route::resource('id', 'Customers\CustomerDetailsController');
88 88
     //  check Id and bookmark customer
89 89
     Route::get('toggle-fav/{action}/{custID}', 'Customers\CustomerController@toggleFav')     ->name('toggle-fav');
90
-    Route::get('check-id/{id}',                'Customers\CustomerController@checkID')       ->name('check-id');
90
+    Route::get('check-id/{id}', 'Customers\CustomerController@checkID')       ->name('check-id');
91 91
     //  Index landing/search page
92
-    Route::get('search',                       'Customers\CustomerController@search')        ->name('search');
93
-    Route::get('/',                            'Customers\CustomerController@index')         ->name('index');
92
+    Route::get('search', 'Customers\CustomerController@search')        ->name('search');
93
+    Route::get('/', 'Customers\CustomerController@index')         ->name('index');
94 94
 });
95 95
 
96 96
 /*
97 97
 *   Tech Tip Routes
98 98
 */
99
-Route::resource('tips',                       'TechTips\TechTipsController');
100
-Route::post('submit-edit/{id}',               'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
99
+Route::resource('tips', 'TechTips\TechTipsController');
100
+Route::post('submit-edit/{id}', 'TechTips\TechTipsController@update')      ->name('tips.submit-edit');
101 101
 Route::prefix('tip')->name('tip.')->group(function()
102 102
 {
103
-    Route::resource('comments',               'TechTips\TechTipCommentsController');
104
-    Route::get('search',                      'TechTips\TechTipsController@search')      ->name('search');
105
-    Route::get('details/{id}/{name}',         'TechTips\TechTipsController@details')     ->name('details');
106
-    Route::post('process-image',              'TechTips\TechTipsController@processImage')->name('processImage');
103
+    Route::resource('comments', 'TechTips\TechTipCommentsController');
104
+    Route::get('search', 'TechTips\TechTipsController@search')      ->name('search');
105
+    Route::get('details/{id}/{name}', 'TechTips\TechTipsController@details')     ->name('details');
106
+    Route::post('process-image', 'TechTips\TechTipsController@processImage')->name('processImage');
107 107
     Route::get('toggle-fav/{action}/{tipID}', 'TechTips\TechTipsController@toggleFav')   ->name('toggle-fav');
108
-    Route::get('download-tip/{id}',           'DownloadController@downloadTechTip')      ->name('downloadTip');
108
+    Route::get('download-tip/{id}', 'DownloadController@downloadTechTip')      ->name('downloadTip');
109 109
 });
110 110
 
111 111
 /*
112 112
     *   Administration Routes
113 113
 */
114
-Route::prefix('admin')->name('admin.')->group(function () {
114
+Route::prefix('admin')->name('admin.')->group(function() {
115 115
 
116 116
 
117 117
 
@@ -132,26 +132,26 @@  discard block
 block discarded – undo
132 132
 
133 133
     //  Administrative routes for equipment and equipment categories
134 134
     Route::resource('categories', 'Installer\CategoriesController');
135
-    Route::resource('systems',    'Installer\SystemsController');
135
+    Route::resource('systems', 'Installer\SystemsController');
136 136
 
137 137
 
138 138
 
139 139
     //  Administrative routes for users
140
-    Route::resource('user',                'Admin\UserController');
141
-    Route::get('user/enable/{id}',         'Admin\UserController@reactivateUser')             ->name('user.reactivate');
142
-    Route::post('user/change-password',    'Admin\UserController@submitPassword')             ->name('user.changePassword');
140
+    Route::resource('user', 'Admin\UserController');
141
+    Route::get('user/enable/{id}', 'Admin\UserController@reactivateUser')             ->name('user.reactivate');
142
+    Route::post('user/change-password', 'Admin\UserController@submitPassword')             ->name('user.changePassword');
143 143
     Route::get('check-user/{name}/{type}', 'Admin\UserController@checkUser')                  ->name('checkUser');
144
-    Route::get('links/show/{id}',          'Admin\AdminController@showLinks')                 ->name('user.showLinks');
145
-    Route::get('links',                    'Admin\AdminController@userLinks')                 ->name('user.links');
146
-    Route::post('password-policy',         'Admin\AdminController@submitPolicy')              ->name('passwordPolicy');
147
-    Route::get('password-policy',          'Admin\AdminController@passwordPolicy')            ->name('passwordPolicy');
148
-    Route::post('role-policy',             'Admin\AdminController@submitRoleSettings')        ->name('roleSettings');
149
-    Route::get('role-policy',              'Admin\AdminController@roleSettings')              ->name('roleSettings');
144
+    Route::get('links/show/{id}', 'Admin\AdminController@showLinks')                 ->name('user.showLinks');
145
+    Route::get('links', 'Admin\AdminController@userLinks')                 ->name('user.links');
146
+    Route::post('password-policy', 'Admin\AdminController@submitPolicy')              ->name('passwordPolicy');
147
+    Route::get('password-policy', 'Admin\AdminController@passwordPolicy')            ->name('passwordPolicy');
148
+    Route::post('role-policy', 'Admin\AdminController@submitRoleSettings')        ->name('roleSettings');
149
+    Route::get('role-policy', 'Admin\AdminController@roleSettings')              ->name('roleSettings');
150 150
     //  Tech Benc Settings Routes
151
-    Route::post('logo',                    'Installer\SettingsController@submitLogo')         ->name('submitLogo');
152
-    Route::get('logo',                     'Installer\SettingsController@logoSettings')       ->name('logoSettings');
153
-    Route::post('configuratin',            'Installer\SettingsController@submitConfiguration')->name('submitConfig');
154
-    Route::get('configuration',            'Installer\Settingscontroller@configuration')      ->name('config');
151
+    Route::post('logo', 'Installer\SettingsController@submitLogo')         ->name('submitLogo');
152
+    Route::get('logo', 'Installer\SettingsController@logoSettings')       ->name('logoSettings');
153
+    Route::post('configuratin', 'Installer\SettingsController@submitConfiguration')->name('submitConfig');
154
+    Route::get('configuration', 'Installer\Settingscontroller@configuration')      ->name('config');
155 155
 
156 156
 
157 157
     //  Admin index route
Please login to merge, or discard this patch.
app/Http/Controllers/Installer/SettingsController.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
 
40 40
         Settings::firstOrCreate(
41 41
             ['key'   => 'app.logo'],
42
-            ['key'   => 'app.logo', 'value' => '/storage/img/' . $fileName]
43
-        )->update(['value' => '/storage/img/' . $fileName]);
42
+            ['key'   => 'app.logo', 'value' => '/storage/img/'.$fileName]
43
+        )->update(['value' => '/storage/img/'.$fileName]);
44 44
 
45
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id);
45
+        Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id);
46 46
         Log::debug('Submitted Data - ', $request->toArray());
47
-        Log::notice('A new company logo has been uploaded by User ID-' . Auth::user()->user_id);
47
+        Log::notice('A new company logo has been uploaded by User ID-'.Auth::user()->user_id);
48 48
 
49
-        return response()->json(['url' => '/storage/img/' . $fileName]);
49
+        return response()->json(['url' => '/storage/img/'.$fileName]);
50 50
     }
51 51
 
52 52
     public function configuration()
@@ -81,14 +81,14 @@  discard block
 block discarded – undo
81 81
             )->update(['value' => $request->url]);
82 82
         }
83 83
         //  Update the site timezone
84
-        if (config('app.timezone') !== $request->timezone) {
84
+        if(config('app.timezone') !== $request->timezone) {
85 85
             Settings::firstOrCreate(
86 86
                 ['key'   => 'app.timezone'],
87 87
                 ['key'   => 'app.timezone', 'value' => $request->timezone]
88 88
             )->update(['value' => $request->timezone]);
89 89
         }
90 90
         //  Update the maximum file upload size
91
-        if (config('filesystems.paths.max_size') !== $request->filesize) {
91
+        if(config('filesystems.paths.max_size') !== $request->filesize) {
92 92
             Settings::firstOrCreate(
93 93
                 ['key'   => 'filesystems.paths.max_size'],
94 94
                 ['key'   => 'filesystems.paths.max_size', 'value' => $request->filesize]
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,14 +81,16 @@
 block discarded – undo
81 81
             )->update(['value' => $request->url]);
82 82
         }
83 83
         //  Update the site timezone
84
-        if (config('app.timezone') !== $request->timezone) {
84
+        if (config('app.timezone') !== $request->timezone)
85
+        {
85 86
             Settings::firstOrCreate(
86 87
                 ['key'   => 'app.timezone'],
87 88
                 ['key'   => 'app.timezone', 'value' => $request->timezone]
88 89
             )->update(['value' => $request->timezone]);
89 90
         }
90 91
         //  Update the maximum file upload size
91
-        if (config('filesystems.paths.max_size') !== $request->filesize) {
92
+        if (config('filesystems.paths.max_size') !== $request->filesize)
93
+        {
92 94
             Settings::firstOrCreate(
93 95
                 ['key'   => 'filesystems.paths.max_size'],
94 96
                 ['key'   => 'filesystems.paths.max_size', 'value' => $request->filesize]
Please login to merge, or discard this patch.