Passed
Push — dev5 ( 1f3b64...3a6272 )
by Ron
06:33
created
app/Http/Controllers/FileLinks/GuestLinksController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
         if($files == 0 && $details->allow_upload === 'No')
57 57
         {
58
-            Log::warning('Visitor ' . \Request::ip() . ' visited a link that they cannot do anything with.  Hash - ' . $id);
58
+            Log::warning('Visitor '.\Request::ip().' visited a link that they cannot do anything with.  Hash - '.$id);
59 59
             return view('links.guestDeadLink');
60 60
         }
61 61
 
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/FileLinksController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $id = Auth::user()->user_id;
56 56
         }
57 57
         //  If the user is trying to pull someone elses links, they must be able to manage users
58
-        else if ($id != Auth::user()->user_id && !$this->authorize('hasAccess', 'manage_users'))
58
+        else if($id != Auth::user()->user_id && !$this->authorize('hasAccess', 'manage_users'))
59 59
         {
60 60
             return abort(403);
61 61
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             //  Verify that the upload is valid and being processed
94 94
             if($receiver->isUploaded() === false)
95 95
             {
96
-                Log::error('Upload File Missing - ' .
96
+                Log::error('Upload File Missing - '.
97 97
                 /** @scrutinizer ignore-type */
98 98
                 $request->toArray());
99 99
                 throw new UploadMissingFileException();
Please login to merge, or discard this patch.
database/migrations/2019_10_19_175205_updates_for_version_5_0.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,14 +83,14 @@  discard block
 block discarded – undo
83 83
                     'note' => $ins->instruction
84 84
                 ]);
85 85
             }
86
-            Schema::table('file_link_instructions', function (Blueprint $table) {
86
+            Schema::table('file_link_instructions', function(Blueprint $table) {
87 87
                 $table->dropForeign(['link_id']);
88 88
             });
89 89
             Schema::dropIfExists('file_link_instructions');
90 90
         }
91 91
         //  Add "notes" column to the file link files table
92
-        if (!Schema::hasColumn('file_link_files', 'note')) {
93
-            Schema::table('file_link_files', function (Blueprint $table) {
92
+        if(!Schema::hasColumn('file_link_files', 'note')) {
93
+            Schema::table('file_link_files', function(Blueprint $table) {
94 94
                 $table->longText('note')
95 95
                     ->nullable()
96 96
                     ->after('upload');
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                     'note' => $note->note
103 103
                 ]);
104 104
             }
105
-            Schema::table('file_link_notes', function (Blueprint $table) {
105
+            Schema::table('file_link_notes', function(Blueprint $table) {
106 106
                 $table->dropForeign(['link_id']);
107 107
                 $table->dropForeign(['file_id']);
108 108
             });
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,8 @@
 block discarded – undo
89 89
             Schema::dropIfExists('file_link_instructions');
90 90
         }
91 91
         //  Add "notes" column to the file link files table
92
-        if (!Schema::hasColumn('file_link_files', 'note')) {
92
+        if (!Schema::hasColumn('file_link_files', 'note'))
93
+        {
93 94
             Schema::table('file_link_files', function (Blueprint $table) {
94 95
                 $table->longText('note')
95 96
                     ->nullable()
Please login to merge, or discard this patch.
routes/web.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -8,58 +8,58 @@
 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\GuestLinksController@getFiles')->name('file-links.getFiles');
59
-Route::put('file-links/{id}',            'FileLinks\GuestLinksController@notify') ->name('file-links.show');
60
-Route::post('file-links/{id}',          'FileLinks\GuestLinksController@update')  ->name('file-links.show');
61
-Route::get('file-links/{id}',           'FileLinks\GuestLinksController@show')    ->name('file-links.show');
62
-Route::get('file-links',                'FileLinks\GuestLinksController@index')   ->name('file-links.index');
59
+Route::put('file-links/{id}', 'FileLinks\GuestLinksController@notify') ->name('file-links.show');
60
+Route::post('file-links/{id}', 'FileLinks\GuestLinksController@update')  ->name('file-links.show');
61
+Route::get('file-links/{id}', 'FileLinks\GuestLinksController@show')    ->name('file-links.show');
62
+Route::get('file-links', 'FileLinks\GuestLinksController@index')   ->name('file-links.index');
63 63
 
64 64
 
65 65
 
Please login to merge, or discard this patch.