Test Setup Failed
Branch test5 (4b2bc0)
by Ron
25:56
created
app/Exceptions/Handler.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,17 +39,17 @@
 block discarded – undo
39 39
     //    {
40 40
     //        parent::report($exception);
41 41
     //    }
42
-       if(!config('app.stack_trace') && $exception->getMessage() != null)
43
-       {
42
+        if(!config('app.stack_trace') && $exception->getMessage() != null)
43
+        {
44 44
             // dd($excption);
45 45
 
46 46
         parent::report($exception);
47 47
             // Log::error('[' . $exception->getCode() . '] "' . $exception->getMessage() . '" on line ' . $exception->getTrace()[0]['line'] . ' of file ' . $exception->getTrace()[0]['file']);
48
-       }
49
-       else
50
-       {
48
+        }
49
+        else
50
+        {
51 51
             parent::report($exception);
52
-       }
52
+        }
53 53
     }
54 54
 
55 55
     /**
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/LinkFilesController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         //  Verify the user is logged in and has permissions for this page
29 29
         $this->middleware('auth');
30
-        $this->middleware(function ($request, $next) {
30
+        $this->middleware(function($request, $next) {
31 31
             $this->user = auth()->user();
32 32
             $this->authorize('hasAccess', 'use_file_links');
33 33
             return $next($request);
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         {
137 137
             Storage::move($fileData->file_link.$fileData->file_name, $newPath.$fileData->file_name);
138 138
         }
139
-        catch (\Exception $e)
139
+        catch(\Exception $e)
140 140
         {
141 141
             report($e);
142 142
             return response()->json(['success' => false, 'reason' => 'Cannot Find File']);
Please login to merge, or discard this patch.
app/Http/Controllers/DownloadController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     public function __construct()
27 27
     {
28
-        $this->root = config('filesystems.disks.local.root') . DIRECTORY_SEPARATOR;
28
+        $this->root = config('filesystems.disks.local.root').DIRECTORY_SEPARATOR;
29 29
         $this->path = $this->root.$this->tmpFolder;
30 30
     }
31 31
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         ]);
55 55
 
56 56
         //  Filename of zip archive
57
-        $name       = 'zip_archive_'.Carbon::now()->timestamp.'.zip';
57
+        $name = 'zip_archive_'.Carbon::now()->timestamp.'.zip';
58 58
 
59 59
         //  The archive_downloads directory does not exist by default.  Touching a file in it ensures the directory is created and usable
60 60
         Storage::put($this->tmpFolder.'.ignore', '');
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -8,57 +8,57 @@
 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
 /*
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
 
Please login to merge, or discard this patch.