Passed
Branch dev5 (1d6d9a)
by Ron
09:07
created
database/factories/UserRolePermissionsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use App\UserRolePermissions;
6 6
 
7
-$factory->define(UserRolePermissions::class, function () {
7
+$factory->define(UserRolePermissions::class, function() {
8 8
     return [
9 9
         'role_id'      => factory(App\UserRoleType::class)->create()->role_id,
10 10
         'perm_type_id' => factory(App\UserRolePermissionTypes::class)->create()->perm_type_id,
Please login to merge, or discard this patch.
database/factories/UserRoleTypeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use App\UserRoleType;
6 6
 use Faker\Generator as Faker;
7 7
 
8
-$factory->define(UserRoleType::class, function (Faker $faker) {
8
+$factory->define(UserRoleType::class, function(Faker $faker) {
9 9
     return [
10 10
         'name'        => $faker->words(2, true),
11 11
         'description' => $faker->words(3, true),
Please login to merge, or discard this patch.
database/factories/UserRolePermissionTypesFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 use Faker\Generator as Faker;
6 6
 use App\UserRolePermissionTypes;
7 7
 
8
-$factory->define(UserRolePermissionTypes::class, function (Faker $faker) {
8
+$factory->define(UserRolePermissionTypes::class, function(Faker $faker) {
9 9
     return [
10 10
         'description' => $faker->words(2, true),
11 11
     ];
Please login to merge, or discard this patch.
database/factories/NotificationsFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
 
5 5
 use Faker\Generator as Faker;
6 6
 
7
-$factory->define(Illuminate\Notifications\DatabaseNotification::class, function (Faker $faker) {
7
+$factory->define(Illuminate\Notifications\DatabaseNotification::class, function(Faker $faker) {
8 8
     return [
9 9
         'id' => $faker->uuid,
10 10
     ];
Please login to merge, or discard this patch.
database/factories/UserInitializeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 
3 3
 /** @var \Illuminate\Database\Eloquent\Factory $factory */
4 4
 
5
-$factory->define(App\UserInitialize::class, function () {
5
+$factory->define(App\UserInitialize::class, function() {
6 6
     return [
7 7
         'username' => factory(App\User::class)->create()->username,
8 8
         'token'    => strtolower(Str::random(30)),
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/GuestLinksController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
 
52 52
         if($files == 0 && $details->allow_upload === 'No')
53 53
         {
54
-            Log::warning('Visitor ' . \Request::ip() . ' visited a link that they cannot do anything with.  Hash - ' . $id);
54
+            Log::warning('Visitor '.\Request::ip().' visited a link that they cannot do anything with.  Hash - '.$id);
55 55
             return view('links.guestDeadLink');
56 56
         }
57 57
 
58
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by IP Address ' . \Request::ip());
58
+        Log::debug('Route '.Route::currentRouteName().' visited by IP Address '.\Request::ip());
59 59
         return view('links.guestDetails', [
60 60
             'hash'    => $id,
61 61
             'details' => $details,
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     //  Get the guest available files for the link
68 68
     public function getFiles($id)
69 69
     {
70
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by IP Address ' . \Request::ip());
70
+        Log::debug('Route '.Route::currentRouteName().' visited by IP Address '.\Request::ip());
71 71
         $linkID = FileLinks::where('link_hash', $id)->first()->link_id;
72 72
 
73 73
         $files = new FileLinkFilesCollection(
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     //  Upload new file
85 85
     public function update(Request $request, $id)
86 86
     {
87
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by IP Address ' . \Request::ip().'. Submitted Data - ', $request->toArray());
87
+        Log::debug('Route '.Route::currentRouteName().' visited by IP Address '.\Request::ip().'. Submitted Data - ', $request->toArray());
88 88
         $request->validate(['name' => 'required', 'file' => 'required']);
89 89
 
90 90
         $receiver = new FileReceiver('file', $request, HandlerFactory::classFromRequest($request));
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/FileLinksController.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     //  Ajax call to show the links for a specific user
48 48
     public function find($id)
49 49
     {
50
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
50
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
51 51
 
52 52
         //  Verify if the user is trying to pull their own links
53 53
         if($id == 0)
@@ -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)
58
+        else if($id != Auth::user()->user_id)
59 59
         {
60 60
             $this->authorize('hasAccess', 'manage_users');
61 61
         }
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
     //  Create a new file link form
73 73
     public function create()
74 74
     {
75
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
75
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
76 76
         return view('links.newLink');
77 77
     }
78 78
 
79 79
     //  Submit the new file link form
80 80
     public function store(Request $request)
81 81
     {
82
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
82
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
83 83
 
84 84
         $request->validate([
85 85
             'name'       => 'required',
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     //  Create the new file link
154 154
     private function createLink($data)
155 155
     {
156
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $data->toArray());
156
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $data->toArray());
157 157
 
158 158
         //  Generate a random hash to use as the file link and make sure it is not already in use
159 159
         do
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     //  Save a file attached to the link
182 182
     private function saveFile(UploadedFile $file)
183 183
     {
184
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
184
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
185 185
 
186 186
         $filePath = config('filesystems.paths.links').DIRECTORY_SEPARATOR.'_tmp';
187 187
 
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     //  Show details about a file link
210 210
     public function details($id, /** @scrutinizer ignore-unused */ $name)
211 211
     {
212
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
212
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
213 213
 
214 214
         //  Verify that the link is a valid link
215 215
         $linkData = FileLinks::find($id);
@@ -234,14 +234,14 @@  discard block
 block discarded – undo
234 234
     {
235 235
         $linkData = new FileLinksResource(FileLinks::find($id));
236 236
 
237
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
237
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
238 238
         return $linkData;
239 239
     }
240 240
 
241 241
     //  Update the link's details
242 242
     public function update(Request $request, $id)
243 243
     {
244
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
244
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
245 245
 
246 246
         $request->validate([
247 247
             'name'       => 'required',
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         ]);
272 272
 
273 273
         Log::info('User '.Auth::user()->full_name.' disabled link ID - '.$id);
274
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
274
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
275 275
         return response()->json(['success' => true]);
276 276
     }
277 277
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
         FileLinks::find($id)->delete();
296 296
 
297
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
297
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
298 298
         Log::info('File link deleted by '.Auth::user()->full_name, ['link_id' => $id, 'user_id' => Auth::user()->user_id]);
299 299
 
300 300
         return response()->json([
Please login to merge, or discard this patch.
app/Http/Controllers/FileLinks/LinkFilesController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     //  Add a file to the file link
35 35
     public function store(Request $request)
36 36
     {
37
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
37
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
38 38
 
39 39
         $request->validate([
40 40
             'linkID' => 'required|exists:file_links,link_id'
@@ -98,14 +98,14 @@  discard block
 block discarded – undo
98 98
             ->get()
99 99
         );
100 100
 
101
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
101
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
102 102
         return $files;
103 103
     }
104 104
 
105 105
     //  Move a file to a customer file
106 106
     public function update(Request $request, $id)
107 107
     {
108
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
108
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
109 109
 
110 110
         $request->validate([
111 111
             'fileID'   => 'required',
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         //  Delete the file from the folder (not, will not delete if in use elsewhere)
167 167
         Files::deleteFile($fileID);
168 168
 
169
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
169
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
170 170
         Log::info('File ID-'.$fileData->file_id.' deleted for Link ID-'.$fileData->link_id.' by '.Auth::user()->user_id);
171 171
         return response()->json(['success' => true]);
172 172
     }
Please login to merge, or discard this patch.
app/Http/Controllers/TechTips/TechTipCommentsController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     //  Add a new Tech Tip Comment
24 24
     public function store(Request $request)
25 25
     {
26
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
26
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name.'. Submitted Data - ', $request->toArray());
27 27
 
28 28
         $request->validate([
29 29
             'comment' => 'required',
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     //  Retrieve the comments for a tech tip
49 49
     public function show($id)
50 50
     {
51
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
51
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
52 52
 
53 53
         return TechTipComments::where('tip_id', $id)->with('user')->get();
54 54
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     //  Delete a comment
57 57
     public function destroy($id)
58 58
     {
59
-        Log::debug('Route ' . Route::currentRouteName() . ' visited by ' . Auth::user()->full_name);
59
+        Log::debug('Route '.Route::currentRouteName().' visited by '.Auth::user()->full_name);
60 60
 
61 61
         TechTipComments::find($id)->delete();
62 62
 
Please login to merge, or discard this patch.