@@ -43,7 +43,8 @@ discard block |
||
| 43 | 43 | ]; |
| 44 | 44 | } |
| 45 | 45 | $mods = Module::allDisabled(); |
| 46 | - foreach ($mods as $name => $mod) { |
|
| 46 | + foreach ($mods as $name => $mod) |
|
| 47 | + { |
|
| 47 | 48 | $moduleList[] = [ |
| 48 | 49 | 'name' => $name, |
| 49 | 50 | 'status' => 'Disabled', |
@@ -80,7 +81,8 @@ discard block |
||
| 80 | 81 | $receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request)); |
| 81 | 82 | |
| 82 | 83 | // Verify that the upload is valid and being processed |
| 83 | - if ($receiver->isUploaded() === false) { |
|
| 84 | + if ($receiver->isUploaded() === false) |
|
| 85 | + { |
|
| 84 | 86 | Log::error('Upload File Missing - ' . |
| 85 | 87 | /** @scrutinizer ignore-type */ |
| 86 | 88 | $request->toArray()); |
@@ -91,7 +93,8 @@ discard block |
||
| 91 | 93 | $save = $receiver->receive(); |
| 92 | 94 | |
| 93 | 95 | // See if the uploade has finished |
| 94 | - if ($save->isFinished()) { |
|
| 96 | + if ($save->isFinished()) |
|
| 97 | + { |
|
| 95 | 98 | $this->saveFile($save->getFile()); |
| 96 | 99 | |
| 97 | 100 | return 'uploaded successfully'; |
@@ -46,8 +46,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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'); |