@@ -17,7 +17,8 @@ |
||
17 | 17 | */ |
18 | 18 | public function handle($request, Closure $next, $guard = null) |
19 | 19 | { |
20 | - if(Auth::guard($guard)->check()) { |
|
20 | + if(Auth::guard($guard)->check()) |
|
21 | + { |
|
21 | 22 | return redirect('/dashboard'); |
22 | 23 | } |
23 | 24 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | // Database primary key |
31 | 31 | protected $primaryKey = 'user_id'; |
32 | 32 | |
33 | - protected $appends = [ 'full_name' ]; |
|
33 | + protected $appends = ['full_name']; |
|
34 | 34 | |
35 | 35 | public function getFullNameAttribute() |
36 | 36 | { |
@@ -8,57 +8,57 @@ |
||
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 | /* |
17 | 17 | * Download File Routes |
18 | 18 | */ |
19 | -Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
19 | +Route::get('download/{id}/{filename}', 'DownloadController@index') ->name('download'); |
|
20 | 20 | Route::get('download-archive/{filename}', 'DownloadController@downloadArchive')->name('downloadArchive'); |
21 | -Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
21 | +Route::put('download-archive', 'DownloadController@archiveFiles') ->name('archiveFiles'); |
|
22 | 22 | |
23 | 23 | |
24 | 24 | /* |
25 | 25 | * User Settings Routes |
26 | 26 | */ |
27 | -Route::get('account', 'AccountController@index') ->name('account'); |
|
28 | -Route::post('account', 'AccountController@submit') ->name('account'); |
|
29 | -Route::put('account', 'AccountController@notifications') ->name('account'); |
|
30 | -Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
27 | +Route::get('account', 'AccountController@index') ->name('account'); |
|
28 | +Route::post('account', 'AccountController@submit') ->name('account'); |
|
29 | +Route::put('account', 'AccountController@notifications') ->name('account'); |
|
30 | +Route::get('/account/change-password', 'AccountController@changePassword')->name('changePassword'); |
|
31 | 31 | Route::post('/account/change-password', 'AccountController@submitPassword')->name('changePassword'); |
32 | 32 | |
33 | 33 | /* |
34 | 34 | * Basic Logged In Routes |
35 | 35 | */ |
36 | -Route::get('about', 'DashboardController@about')->name('about'); |
|
36 | +Route::get('about', 'DashboardController@about')->name('about'); |
|
37 | 37 | Route::get('dashboard', 'DashboardController@index')->name('dashboard'); |
38 | 38 | |
39 | 39 | /* |
40 | 40 | * File Link Routes |
41 | 41 | */ |
42 | -Route::prefix('links')->name('links.')->group(function () { |
|
42 | +Route::prefix('links')->name('links.')->group(function() { |
|
43 | 43 | // Resource controllers for base access |
44 | - Route::resource('data', 'FileLinks\FileLinksController'); |
|
45 | - Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
46 | - Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
44 | + Route::resource('data', 'FileLinks\FileLinksController'); |
|
45 | + Route::get('new', 'FileLinks\FileLinksController@create') ->name('new'); |
|
46 | + Route::get('find/{id}', 'FileLinks\FileLinksController@find') ->name('user'); |
|
47 | 47 | Route::get('details/{id}/{name}', 'FileLinks\FileLinksController@details') ->name('details'); |
48 | - Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
48 | + Route::get('disable/{id}', 'FileLinks\FileLinksController@disableLink')->name('disable'); |
|
49 | 49 | // File Link Files |
50 | - Route::resource('files', 'FileLinks\LinkFilesController'); |
|
50 | + Route::resource('files', 'FileLinks\LinkFilesController'); |
|
51 | 51 | // Index landing page |
52 | - Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
52 | + Route::get('/', 'FileLinks\FileLinksController@index') ->name('index'); |
|
53 | 53 | }); |
54 | 54 | |
55 | 55 | /* |
56 | 56 | * Guest File Link Routes |
57 | 57 | */ |
58 | 58 | Route::get('file-links/{id}/get-files', 'FileLinks\UserLinksController@getFiles')->name('file-links.getFiles'); |
59 | -Route::post('file-links/{id}', 'FileLinks\UserLinksController@update') ->name('file-links.show'); |
|
60 | -Route::get('file-links/{id}', 'FileLinks\UserLinksController@show') ->name('file-links.show'); |
|
61 | -Route::get('file-links', 'FileLinks\UserLinksController@index') ->name('file-links.index'); |
|
59 | +Route::post('file-links/{id}', 'FileLinks\UserLinksController@update') ->name('file-links.show'); |
|
60 | +Route::get('file-links/{id}', 'FileLinks\UserLinksController@show') ->name('file-links.show'); |
|
61 | +Route::get('file-links', 'FileLinks\UserLinksController@index') ->name('file-links.index'); |
|
62 | 62 | |
63 | 63 | |
64 | 64 |
@@ -42,7 +42,8 @@ discard block |
||
42 | 42 | $this->line(''); |
43 | 43 | |
44 | 44 | // Determine if the daily or single log channel is being used |
45 | - switch($channel) { |
|
45 | + switch($channel) |
|
46 | + { |
|
46 | 47 | case 'daily': |
47 | 48 | $this->dailyLog(); |
48 | 49 | break; |
@@ -84,10 +85,13 @@ discard block |
||
84 | 85 | private function cleanLogFile($logFile) |
85 | 86 | { |
86 | 87 | // Verify the file exists before trying to clear it |
87 | - if(file_exists($logFile)) { |
|
88 | + if(file_exists($logFile)) |
|
89 | + { |
|
88 | 90 | file_put_contents($logFile, ''); |
89 | 91 | $this->line('Log File Emptied'); |
90 | - } else { |
|
92 | + } |
|
93 | + else |
|
94 | + { |
|
91 | 95 | $this->line('Well, this is embarrassing...'); |
92 | 96 | $this->line('It seems I cannot find your log file'); |
93 | 97 | $this->line(''); |
@@ -14,8 +14,7 @@ |
||
14 | 14 | public function run() |
15 | 15 | { |
16 | 16 | // Create the test users |
17 | - factory(App\User::class, 15)->create()->each(function($user) |
|
18 | - { |
|
17 | + factory(App\User::class, 15)->create()->each(function($user) { |
|
19 | 18 | $user->UserPermissions()->save(factory(App\UserPermissions::class)->make()); |
20 | 19 | }); |
21 | 20 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | class TechTips extends Model |
8 | 8 | { |
9 | 9 | protected $primaryKey = 'tip_id'; |
10 | - protected $fillable = ['user_id', 'subject', 'documentation', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
10 | + protected $fillable = ['user_id', 'subject', 'documentation', 'description', 'created_at']; // ToDo: Remove Created_at - future build |
|
11 | 11 | |
12 | 12 | // public function user() |
13 | 13 | // { |
@@ -87,7 +87,7 @@ |
||
87 | 87 | // Verify that the upload is valid and being processed |
88 | 88 | if($receiver->isUploaded() === false) |
89 | 89 | { |
90 | - Log::error('Upload File Missing - ' . |
|
90 | + Log::error('Upload File Missing - '. |
|
91 | 91 | /** @scrutinizer ignore-type */ |
92 | 92 | $request->toArray()); |
93 | 93 | throw new UploadMissingFileException(); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | // Verify that the upload is valid and being processed |
49 | 49 | if($receiver->isUploaded() === false) |
50 | 50 | { |
51 | - Log::error('Upload File Missing - ' . |
|
51 | + Log::error('Upload File Missing - '. |
|
52 | 52 | /** @scrutinizer ignore-type */ |
53 | 53 | $request->toArray()); |
54 | 54 | throw new UploadMissingFileException(); |