Passed
Push — main ( e92816...debb02 )
by Julian
04:28
created
app/Http/Controllers/Auth/RegisteredUserController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $name = $request->input('name');
47 47
 
48
-        if(env('MANUAL_USER_VERIFICATION') == true){
48
+        if (env('MANUAL_USER_VERIFICATION') == true) {
49 49
             $block = 'yes';
50 50
         } else {
51 51
             $block = 'no';
@@ -66,10 +66,10 @@  discard block
 block discarded – undo
66 66
             $user = $request->name;
67 67
             $email = $request->email;
68 68
             
69
-            if(env('REGISTER_AUTH') == 'verified'){
70
-                if(env('MANUAL_USER_VERIFICATION') == true){
69
+            if (env('REGISTER_AUTH') == 'verified') {
70
+                if (env('MANUAL_USER_VERIFICATION') == true) {
71 71
                 try {
72
-                Mail::send('auth.user-confirmation', ['user' => $user, 'email' => $email], function ($message) use ($user) {
72
+                Mail::send('auth.user-confirmation', ['user' => $user, 'email' => $email], function($message) use ($user) {
73 73
                     $message->to(env('ADMIN_EMAIL'))
74 74
                             ->subject('New user registration');
75 75
                 });
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/VerifyEmailController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
     public function __invoke(EmailVerificationRequest $request)
19 19
     {
20 20
         if ($request->user()->hasVerifiedEmail()) {
21
-            return redirect()->intended(RouteServiceProvider::HOME.'?verified=1');
21
+            return redirect()->intended(RouteServiceProvider::HOME . '?verified=1');
22 22
         }
23 23
 
24 24
         if ($request->user()->markEmailAsVerified()) {
25 25
             event(new Verified($request->user()));
26 26
         }
27 27
 
28
-        return redirect()->intended(RouteServiceProvider::HOME.'?verified=1');
28
+        return redirect()->intended(RouteServiceProvider::HOME . '?verified=1');
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/ConfirmablePasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function store(Request $request)
31 31
     {
32
-        if (! Auth::guard('web')->validate([
32
+        if (!Auth::guard('web')->validate([
33 33
             'email' => $request->user()->email,
34 34
             'password' => $request->password,
35 35
         ])) {
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/NewPasswordController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         // database. Otherwise we will parse the error and return the response.
43 43
         $status = Password::reset(
44 44
             $request->only('email', 'password', 'password_confirmation', 'token'),
45
-            function ($user) use ($request) {
45
+            function($user) use ($request) {
46 46
                 $user->forceFill([
47 47
                     'password' => Hash::make($request->password),
48 48
                     'remember_token' => Str::random(60),
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1094,7 +1094,7 @@
 block discarded – undo
1094 1094
             $pathinfo = "/img/" . $name. "." . pathinfo($file, PATHINFO_EXTENSION);
1095 1095
             }}
1096 1096
             return $pathinfo;
1097
-          }
1097
+            }
1098 1098
 
1099 1099
         if (file_exists(base_path(findAvatar($userId)))){
1100 1100
             $imagePath = base_path(findAvatar($userId));
Please login to merge, or discard this patch.
Spacing   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     //Show littlelink page. example => http://127.0.0.1:8000/+admin
85 85
     public function littlelink(request $request)
86 86
     {
87
-        if(isset($request->useif)){
87
+        if (isset($request->useif)) {
88 88
             $littlelink_name = User::select('littlelink_name')->where('id', $request->littlelink)->value('littlelink_name');
89 89
             $id = $request->littlelink;
90 90
         } else {
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             return abort(404);
141 141
         }
142 142
 
143
-        return redirect(url('@'.$user));
143
+        return redirect(url('@' . $user));
144 144
     }
145 145
 
146 146
     //Show add/update form
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 
166 166
             $bid = $links->button_id;
167 167
 
168
-            if($bid == 1 or $bid == 2){
168
+            if ($bid == 1 or $bid == 2) {
169 169
                 $data['linkTypeID'] = "2";
170 170
             } elseif ($bid == 42) {
171 171
                 $data['linkTypeID'] = "3";
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
         $customParams = [];
213 213
         foreach ($request->all() as $key => $param) {
214 214
             //echo $key . " = " . $param . "<br />";
215
-            if (str_starts_with($key, "_") ||  in_array($key, ['linktype_id', 'linktype_title', 'link_text', 'link_url']))
215
+            if (str_starts_with($key, "_") || in_array($key, ['linktype_id', 'linktype_title', 'link_text', 'link_url']))
216 216
                 continue;
217 217
 
218 218
             $customParams[$key] = $param;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
             }
232 232
         }
233 233
 
234
-        $message = (ucwords($button?->name) ?? ucwords($linkType->typename)). " has been ";
234
+        $message = (ucwords($button?->name) ?? ucwords($linkType->typename)) . " has been ";
235 235
 
236 236
         if ($OrigLink) {
237 237
             //EDITING EXISTING
@@ -239,50 +239,50 @@  discard block
 block discarded – undo
239 239
             $isCustomWebsite = $customParams['GetSiteIcon'] ?? null;
240 240
             $SpacerHeight = $customParams['height'] ?? null;
241 241
 
242
-                if($linkType->typename == "link" and $isCustomWebsite == "1"){
242
+                if ($linkType->typename == "link" and $isCustomWebsite == "1") {
243 243
                     $OrigLink->update([
244 244
                         'link' => $LinkURL,
245 245
                         'title' => $LinkTitle,
246 246
                         'button_id' => "2",
247 247
                     ]);
248
-                }elseif($linkType->typename == "link"){
248
+                }elseif ($linkType->typename == "link") {
249 249
                     $OrigLink->update([
250 250
                         'link' => $LinkURL,
251 251
                         'title' => $LinkTitle,
252 252
                         'button_id' => "1",
253 253
                     ]);
254
-                }elseif($linkType->typename == "spacer"){
254
+                }elseif ($linkType->typename == "spacer") {
255 255
                     $OrigLink->update([
256 256
                         'link' => $LinkURL,
257 257
                         'title' => $customParams['height'] ?? null,
258 258
                         'button_id' => "43",
259 259
                     ]);
260
-                }elseif($linkType->typename == "heading"){
260
+                }elseif ($linkType->typename == "heading") {
261 261
                     $OrigLink->update([
262 262
                         'link' => $LinkURL,
263 263
                         'title' => $LinkTitle,
264 264
                         'button_id' => "42",
265 265
                     ]);
266
-                }elseif($linkType->typename == "text"){
266
+                }elseif ($linkType->typename == "text") {
267 267
                     $OrigLink->update([
268 268
                         'button_id' => "93",
269 269
                         'title' => $request->text,
270 270
                     ]);
271
-                }elseif($linkType->typename == "email"){
272
-                    $LinkURL = "mailto:".$LinkURL;
271
+                }elseif ($linkType->typename == "email") {
272
+                    $LinkURL = "mailto:" . $LinkURL;
273 273
                     $OrigLink->update([
274 274
                         'link' => $LinkURL,
275 275
                         'button_id' => $button?->id,
276 276
                         'title' => $LinkTitle,
277 277
                     ]);
278
-                }elseif($linkType->typename == "telephone"){
279
-                    $LinkURL = "tel:".$LinkURL;
278
+                }elseif ($linkType->typename == "telephone") {
279
+                    $LinkURL = "tel:" . $LinkURL;
280 280
                     $OrigLink->update([
281 281
                         'link' => $LinkURL,
282 282
                         'button_id' => $button?->id,
283 283
                         'title' => $LinkTitle,
284 284
                     ]);
285
-                }elseif($linkType->typename == "vcard"){
285
+                }elseif ($linkType->typename == "vcard") {
286 286
 
287 287
                     $prefix = $request->input('prefix');
288 288
                     $firstName = $request->input('first_name');
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
                         'button_id' => 96,
355 355
                         'title' => $LinkTitle,
356 356
                     ]);
357
-                }else{
357
+                } else {
358 358
                     $OrigLink->update([
359 359
                         'link' => $LinkURL,
360 360
                         'title' => $LinkTitle,
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
                     ]);
363 363
                 }
364 364
                 
365
-            $message .="updated";
365
+            $message .= "updated";
366 366
 
367 367
         } else {
368 368
             // ADDING NEW
@@ -373,29 +373,29 @@  discard block
 block discarded – undo
373 373
             $links = new Link;
374 374
             $links->link = $LinkURL;
375 375
             $links->user_id = $userId;
376
-            if($linkType->typename == "spacer"){
376
+            if ($linkType->typename == "spacer") {
377 377
             $links->title = $SpacerHeight;
378
-            }else{
378
+            } else {
379 379
             $links->title = $LinkTitle;
380 380
             }
381
-            if($linkType->typename == "link" and $isCustomWebsite == "1"){
381
+            if ($linkType->typename == "link" and $isCustomWebsite == "1") {
382 382
                 $links->button_id = "2";
383
-            }elseif($linkType->typename == "link"){
383
+            }elseif ($linkType->typename == "link") {
384 384
                 $links->button_id = "1";
385
-            }elseif($linkType->typename == "spacer"){
385
+            }elseif ($linkType->typename == "spacer") {
386 386
                 $links->button_id = "43";
387
-            }elseif($linkType->typename == "heading"){
387
+            }elseif ($linkType->typename == "heading") {
388 388
                 $links->button_id = "42";
389
-            }elseif($linkType->typename == "text"){
389
+            }elseif ($linkType->typename == "text") {
390 390
                 $links->button_id = "93";
391 391
                 $links->title = $request->text;
392
-            }elseif($linkType->typename == "email"){
393
-                $links->link = "mailto:".$links->link;
392
+            }elseif ($linkType->typename == "email") {
393
+                $links->link = "mailto:" . $links->link;
394 394
                 $links->button_id = $button?->id;
395
-            }elseif($linkType->typename == "telephone"){
396
-                $links->link = "tel:".$links->link;
395
+            }elseif ($linkType->typename == "telephone") {
396
+                $links->link = "tel:" . $links->link;
397 397
                 $links->button_id = $button?->id;
398
-            }elseif($linkType->typename == "vcard"){
398
+            }elseif ($linkType->typename == "vcard") {
399 399
 
400 400
                 $prefix = $request->input('prefix');
401 401
                 $firstName = $request->input('first_name');
@@ -463,11 +463,11 @@  discard block
 block discarded – undo
463 463
                 $links->link = $json ? $json : null;               
464 464
 
465 465
                 $links->button_id = 96;
466
-            }else{
466
+            } else {
467 467
                 $links->button_id = $button?->id;
468 468
             }
469 469
 
470
-            if(empty($links->button_id)) {
470
+            if (empty($links->button_id)) {
471 471
                 return redirect(route('showButtons')); die;
472 472
             }
473 473
             
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
 
535 535
         if (substr($linkId, -1) == '+') {
536 536
             $linkWithoutPlus = str_replace('+', '', $linkId);
537
-            return redirect(url('info/'.$linkWithoutPlus));
537
+            return redirect(url('info/' . $linkWithoutPlus));
538 538
         }
539 539
     
540 540
         $link = Link::find($linkId);
@@ -625,11 +625,11 @@  discard block
 block discarded – undo
625 625
 
626 626
         $directory = base_path("assets/favicon/icons");
627 627
         $files = scandir($directory);
628
-        foreach($files as $file) {
629
-        if (strpos($file, $linkId.".") !== false) {
630
-        $pathinfo = pathinfo($file, PATHINFO_EXTENSION);}}
628
+        foreach ($files as $file) {
629
+        if (strpos($file, $linkId . ".") !== false) {
630
+        $pathinfo = pathinfo($file, PATHINFO_EXTENSION); }}
631 631
         if (isset($pathinfo)) {
632
-        try{File::delete(base_path("assets/favicon/icons")."/".$linkId.".".$pathinfo);} catch (exception $e) {}
632
+        try {File::delete(base_path("assets/favicon/icons") . "/" . $linkId . "." . $pathinfo); } catch (exception $e) {}
633 633
         }
634 634
 
635 635
         return redirect('/studio/links');
@@ -642,11 +642,11 @@  discard block
 block discarded – undo
642 642
 
643 643
         $directory = base_path("assets/favicon/icons");
644 644
         $files = scandir($directory);
645
-        foreach($files as $file) {
646
-        if (strpos($file, $linkId.".") !== false) {
647
-        $pathinfo = pathinfo($file, PATHINFO_EXTENSION);}}
645
+        foreach ($files as $file) {
646
+        if (strpos($file, $linkId . ".") !== false) {
647
+        $pathinfo = pathinfo($file, PATHINFO_EXTENSION); }}
648 648
         if (isset($pathinfo)) {
649
-        try{File::delete(base_path("assets/favicon/icons")."/".$linkId.".".$pathinfo);} catch (exception $e) {}
649
+        try {File::delete(base_path("assets/favicon/icons") . "/" . $linkId . "." . $pathinfo); } catch (exception $e) {}
650 650
         }
651 651
 
652 652
         return redirect('/studio/links');
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
                 'sometimes',
771 771
                 'max:255',
772 772
                 'string',
773
-                'isunique:users,id,'.$userId,
773
+                'isunique:users,id,' . $userId,
774 774
             ],
775 775
             'name' => 'sometimes|max:255|string',
776 776
             'image' => 'sometimes|image|mimes:jpeg,jpg,png,webp|max:2048', // Max file size: 2MB
@@ -794,7 +794,7 @@  discard block
 block discarded – undo
794 794
         $sharebtn = $request->sharebtn;
795 795
         $tablinks = $request->tablinks;
796 796
 
797
-        if(env('HOME_URL') !== '' && $pageName != $littlelink_name && $littlelink_name == env('HOME_URL')){
797
+        if (env('HOME_URL') !== '' && $pageName != $littlelink_name && $littlelink_name == env('HOME_URL')) {
798 798
             EnvEditor::editKey('HOME_URL', $pageName);
799 799
         }
800 800
     
@@ -883,7 +883,7 @@  discard block
 block discarded – undo
883 883
 
884 884
         $user_id = Auth::user()->id;
885 885
         $path = findBackground($user_id);
886
-        $path = base_path('assets/img/background-img/'.$path);
886
+        $path = base_path('assets/img/background-img/' . $path);
887 887
         
888 888
         if (File::exists($path)) {
889 889
             File::delete($path);
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
         // echo Auth::id();
1021 1021
         $id = $request->id;
1022 1022
 
1023
-    if($id == Auth::id() and $id != "1") {
1023
+    if ($id == Auth::id() and $id != "1") {
1024 1024
 
1025 1025
         Link::where('user_id', $id)->delete();
1026 1026
 
@@ -1066,7 +1066,7 @@  discard block
 block discarded – undo
1066 1066
         $fileName = "links-$domain-$date.json";
1067 1067
         $headers = [
1068 1068
             'Content-Type' => 'application/json',
1069
-            'Content-Disposition' => 'attachment; filename="'.$fileName.'"',
1069
+            'Content-Disposition' => 'attachment; filename="' . $fileName . '"',
1070 1070
         ];
1071 1071
         return response()->json($userData, 200, $headers);
1072 1072
 
@@ -1088,18 +1088,18 @@  discard block
 block discarded – undo
1088 1088
         $userData = $user->toArray();
1089 1089
         $userData['links'] = $links->toArray();
1090 1090
     
1091
-        function findAvatar($name){
1091
+        function findAvatar($name) {
1092 1092
             $directory = base_path('assets/img');
1093 1093
             $files = scandir($directory);
1094 1094
             $pathinfo = "error.error";
1095
-            foreach($files as $file) {
1096
-            if (strpos($file, $name.'.') !== false) {
1097
-            $pathinfo = "/img/" . $name. "." . pathinfo($file, PATHINFO_EXTENSION);
1095
+            foreach ($files as $file) {
1096
+            if (strpos($file, $name . '.') !== false) {
1097
+            $pathinfo = "/img/" . $name . "." . pathinfo($file, PATHINFO_EXTENSION);
1098 1098
             }}
1099 1099
             return $pathinfo;
1100 1100
           }
1101 1101
 
1102
-        if (file_exists(base_path(findAvatar($userId)))){
1102
+        if (file_exists(base_path(findAvatar($userId)))) {
1103 1103
             $imagePath = base_path(findAvatar($userId));
1104 1104
             $imageData = base64_encode(file_get_contents($imagePath));
1105 1105
             $userData['image_data'] = $imageData;
@@ -1113,7 +1113,7 @@  discard block
 block discarded – undo
1113 1113
         $fileName = "user_data-$domain-$date.json";
1114 1114
         $headers = [
1115 1115
             'Content-Type' => 'application/json',
1116
-            'Content-Disposition' => 'attachment; filename="'.$fileName.'"',
1116
+            'Content-Disposition' => 'attachment; filename="' . $fileName . '"',
1117 1117
         ];
1118 1118
         return response()->json($userData, 200, $headers);
1119 1119
     
Please login to merge, or discard this patch.
Braces   +33 added lines, -29 removed lines patch added patch discarded remove patch
@@ -212,8 +212,9 @@  discard block
 block discarded – undo
212 212
         $customParams = [];
213 213
         foreach ($request->all() as $key => $param) {
214 214
             //echo $key . " = " . $param . "<br />";
215
-            if (str_starts_with($key, "_") ||  in_array($key, ['linktype_id', 'linktype_title', 'link_text', 'link_url']))
216
-                continue;
215
+            if (str_starts_with($key, "_") ||  in_array($key, ['linktype_id', 'linktype_title', 'link_text', 'link_url'])) {
216
+                            continue;
217
+            }
217 218
 
218 219
             $customParams[$key] = $param;
219 220
         }
@@ -221,8 +222,9 @@  discard block
 block discarded – undo
221 222
         $userId = Auth::user()->id;
222 223
         $button = Button::where('name', $request->button)->first();
223 224
 
224
-        if ($button && empty($LinkTitle))
225
-            $LinkTitle = $button->alt;
225
+        if ($button && empty($LinkTitle)) {
226
+                    $LinkTitle = $button->alt;
227
+        }
226 228
 
227 229
         if ($linkType->typename == 'video' && empty($LinkTitle)) {
228 230
             $embed = OEmbed::get($LinkURL);
@@ -245,44 +247,44 @@  discard block
 block discarded – undo
245 247
                         'title' => $LinkTitle,
246 248
                         'button_id' => "2",
247 249
                     ]);
248
-                }elseif($linkType->typename == "link"){
250
+                } elseif($linkType->typename == "link"){
249 251
                     $OrigLink->update([
250 252
                         'link' => $LinkURL,
251 253
                         'title' => $LinkTitle,
252 254
                         'button_id' => "1",
253 255
                     ]);
254
-                }elseif($linkType->typename == "spacer"){
256
+                } elseif($linkType->typename == "spacer"){
255 257
                     $OrigLink->update([
256 258
                         'link' => $LinkURL,
257 259
                         'title' => $customParams['height'] ?? null,
258 260
                         'button_id' => "43",
259 261
                     ]);
260
-                }elseif($linkType->typename == "heading"){
262
+                } elseif($linkType->typename == "heading"){
261 263
                     $OrigLink->update([
262 264
                         'link' => $LinkURL,
263 265
                         'title' => $LinkTitle,
264 266
                         'button_id' => "42",
265 267
                     ]);
266
-                }elseif($linkType->typename == "text"){
268
+                } elseif($linkType->typename == "text"){
267 269
                     $OrigLink->update([
268 270
                         'button_id' => "93",
269 271
                         'title' => $request->text,
270 272
                     ]);
271
-                }elseif($linkType->typename == "email"){
273
+                } elseif($linkType->typename == "email"){
272 274
                     $LinkURL = "mailto:".$LinkURL;
273 275
                     $OrigLink->update([
274 276
                         'link' => $LinkURL,
275 277
                         'button_id' => $button?->id,
276 278
                         'title' => $LinkTitle,
277 279
                     ]);
278
-                }elseif($linkType->typename == "telephone"){
280
+                } elseif($linkType->typename == "telephone"){
279 281
                     $LinkURL = "tel:".$LinkURL;
280 282
                     $OrigLink->update([
281 283
                         'link' => $LinkURL,
282 284
                         'button_id' => $button?->id,
283 285
                         'title' => $LinkTitle,
284 286
                     ]);
285
-                }elseif($linkType->typename == "vcard"){
287
+                } elseif($linkType->typename == "vcard"){
286 288
 
287 289
                     $prefix = $request->input('prefix');
288 290
                     $firstName = $request->input('first_name');
@@ -354,7 +356,7 @@  discard block
 block discarded – undo
354 356
                         'button_id' => 96,
355 357
                         'title' => $LinkTitle,
356 358
                     ]);
357
-                }else{
359
+                } else{
358 360
                     $OrigLink->update([
359 361
                         'link' => $LinkURL,
360 362
                         'title' => $LinkTitle,
@@ -375,27 +377,27 @@  discard block
 block discarded – undo
375 377
             $links->user_id = $userId;
376 378
             if($linkType->typename == "spacer"){
377 379
             $links->title = $SpacerHeight;
378
-            }else{
380
+            } else{
379 381
             $links->title = $LinkTitle;
380 382
             }
381 383
             if($linkType->typename == "link" and $isCustomWebsite == "1"){
382 384
                 $links->button_id = "2";
383
-            }elseif($linkType->typename == "link"){
385
+            } elseif($linkType->typename == "link"){
384 386
                 $links->button_id = "1";
385
-            }elseif($linkType->typename == "spacer"){
387
+            } elseif($linkType->typename == "spacer"){
386 388
                 $links->button_id = "43";
387
-            }elseif($linkType->typename == "heading"){
389
+            } elseif($linkType->typename == "heading"){
388 390
                 $links->button_id = "42";
389
-            }elseif($linkType->typename == "text"){
391
+            } elseif($linkType->typename == "text"){
390 392
                 $links->button_id = "93";
391 393
                 $links->title = $request->text;
392
-            }elseif($linkType->typename == "email"){
394
+            } elseif($linkType->typename == "email"){
393 395
                 $links->link = "mailto:".$links->link;
394 396
                 $links->button_id = $button?->id;
395
-            }elseif($linkType->typename == "telephone"){
397
+            } elseif($linkType->typename == "telephone"){
396 398
                 $links->link = "tel:".$links->link;
397 399
                 $links->button_id = $button?->id;
398
-            }elseif($linkType->typename == "vcard"){
400
+            } elseif($linkType->typename == "vcard"){
399 401
 
400 402
                 $prefix = $request->input('prefix');
401 403
                 $firstName = $request->input('first_name');
@@ -463,7 +465,7 @@  discard block
 block discarded – undo
463 465
                 $links->link = $json ? $json : null;               
464 466
 
465 467
                 $links->button_id = 96;
466
-            }else{
468
+            } else{
467 469
                 $links->button_id = $button?->id;
468 470
             }
469 471
 
@@ -712,14 +714,16 @@  discard block
 block discarded – undo
712 714
             'button' => 'required',
713 715
         ]);
714 716
 
715
-        if (stringStartsWith($request->link, 'http://') == 'true' or stringStartsWith($request->link, 'https://') == 'true' or stringStartsWith($request->link, 'mailto:') == 'true')
716
-            $link1 = $request->link;
717
-        else
718
-            $link1 = 'https://' . $request->link;
719
-        if (stringEndsWith($request->link, '/') == 'true')
720
-            $link = rtrim($link1, "/ ");
721
-        else
722
-        $link = $link1;
717
+        if (stringStartsWith($request->link, 'http://') == 'true' or stringStartsWith($request->link, 'https://') == 'true' or stringStartsWith($request->link, 'mailto:') == 'true') {
718
+                    $link1 = $request->link;
719
+        } else {
720
+                    $link1 = 'https://' . $request->link;
721
+        }
722
+        if (stringEndsWith($request->link, '/') == 'true') {
723
+                    $link = rtrim($link1, "/ ");
724
+        } else {
725
+                $link = $link1;
726
+        }
723 727
         $title = $request->title;
724 728
         $order = $request->order;
725 729
         $button = $request->button;
Please login to merge, or discard this patch.
app/Http/Controllers/InstallerController.php 2 patches
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -38,9 +38,9 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function db(request $request)
40 40
     {
41
-        if($request->database == 'MySQL'){
41
+        if ($request->database == 'MySQL') {
42 42
             return redirect(url('?mysql'));
43
-        }else{
43
+        } else {
44 44
             return redirect(url('?4'));
45 45
         }
46 46
     }
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
 
56 56
         $file = base_path('INSTALLERLOCK');
57 57
         if (!file_exists($file)) {
58
-            $handleFile = fopen($file, 'w') or die('Cannot create file:  '.$file);
58
+            $handleFile = fopen($file, 'w') or die('Cannot create file:  ' . $file);
59 59
             fclose($handleFile);
60 60
         }
61 61
 
62
-        try{EnvEditor::addKey('ADMIN_EMAIL', $email);}catch(Exception $e){}
62
+        try {EnvEditor::addKey('ADMIN_EMAIL', $email); } catch (Exception $e) {}
63 63
 
64
-        if(DB::table('users')->count() == '0'){
64
+        if (DB::table('users')->count() == '0') {
65 65
         Schema::disableForeignKeyConstraints();
66 66
         DB::table('users')->delete();
67 67
         DB::table('users')->truncate();
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
         $DB_USERNAME = $request->username;
93 93
         $DB_PASSWORD = $request->password;
94 94
 
95
-        if(EnvEditor::keyExists('DB_CONNECTION')){EnvEditor::editKey('DB_CONNECTION', $DB_CONNECTION);}else{EnvEditor::addKey('DB_CONNECTION', $DB_CONNECTION);}
96
-        if(EnvEditor::keyExists('DB_HOST')){EnvEditor::editKey('DB_HOST', $DB_HOST);}else{EnvEditor::addKey('DB_HOST', $DB_HOST);}
97
-        if(EnvEditor::keyExists('DB_PORT')){EnvEditor::editKey('DB_PORT', $DB_PORT);}else{EnvEditor::addKey('DB_PORT', $DB_PORT);}
98
-        if(EnvEditor::keyExists('DB_DATABASE')){EnvEditor::editKey('DB_DATABASE', $DB_DATABASE);}else{EnvEditor::addKey('DB_DATABASE', $DB_DATABASE);}
99
-        if(EnvEditor::keyExists('DB_USERNAME')){EnvEditor::editKey('DB_USERNAME', $DB_USERNAME);}else{EnvEditor::addKey('DB_USERNAME', $DB_USERNAME);}
100
-        if(EnvEditor::keyExists('DB_PASSWORD')){EnvEditor::editKey('DB_PASSWORD', $DB_PASSWORD);}else{EnvEditor::addKey('DB_PASSWORD', $DB_PASSWORD);}
95
+        if (EnvEditor::keyExists('DB_CONNECTION')) {EnvEditor::editKey('DB_CONNECTION', $DB_CONNECTION); } else {EnvEditor::addKey('DB_CONNECTION', $DB_CONNECTION); }
96
+        if (EnvEditor::keyExists('DB_HOST')) {EnvEditor::editKey('DB_HOST', $DB_HOST); } else {EnvEditor::addKey('DB_HOST', $DB_HOST); }
97
+        if (EnvEditor::keyExists('DB_PORT')) {EnvEditor::editKey('DB_PORT', $DB_PORT); } else {EnvEditor::addKey('DB_PORT', $DB_PORT); }
98
+        if (EnvEditor::keyExists('DB_DATABASE')) {EnvEditor::editKey('DB_DATABASE', $DB_DATABASE); } else {EnvEditor::addKey('DB_DATABASE', $DB_DATABASE); }
99
+        if (EnvEditor::keyExists('DB_USERNAME')) {EnvEditor::editKey('DB_USERNAME', $DB_USERNAME); } else {EnvEditor::addKey('DB_USERNAME', $DB_USERNAME); }
100
+        if (EnvEditor::keyExists('DB_PASSWORD')) {EnvEditor::editKey('DB_PASSWORD', $DB_PASSWORD); } else {EnvEditor::addKey('DB_PASSWORD', $DB_PASSWORD); }
101 101
 
102 102
         return redirect(url('mysql-test'));
103 103
 
@@ -105,22 +105,22 @@  discard block
 block discarded – undo
105 105
 
106 106
     public function mysqlTest(request $request)
107 107
     {
108
-        try {Artisan::call('migrate');} catch (exception $e) {$failed = "true";}
109
-        try {Artisan::call('db:seed --force');} catch (exception $e) {$failed = "true";}
110
-        try {Artisan::call('db:seed --class="PageSeeder" --force');} catch (exception $e) {$failed = "true";}
111
-        try {Artisan::call('db:seed --class="ButtonSeeder" --force');} catch (exception $e) {$failed = "true";}
112
-
113
-        try {$users = DB::table('buttons')->count(); $failed = false;} catch (exception $e) {$failed = true;}
114
-
115
-        if($failed == true){
116
-            if(EnvEditor::keyExists('DB_CONNECTION')){EnvEditor::editKey('DB_CONNECTION', 'sqlite');}else{EnvEditor::addKey('DB_CONNECTION', 'sqlite');}
117
-            if(EnvEditor::keyExists('DB_HOST')){EnvEditor::deleteKey('DB_HOST');}
118
-            if(EnvEditor::keyExists('DB_PORT')){EnvEditor::deleteKey('DB_PORT');}
119
-            if(EnvEditor::keyExists('DB_DATABASE')){EnvEditor::deleteKey('DB_DATABASE');}
120
-            if(EnvEditor::keyExists('DB_USERNAME')){EnvEditor::deleteKey('DB_USERNAME');}
121
-            if(EnvEditor::keyExists('DB_PASSWORD')){EnvEditor::deleteKey('DB_PASSWORD');}
108
+        try {Artisan::call('migrate'); } catch (exception $e) {$failed = "true"; }
109
+        try {Artisan::call('db:seed --force'); } catch (exception $e) {$failed = "true"; }
110
+        try {Artisan::call('db:seed --class="PageSeeder" --force'); } catch (exception $e) {$failed = "true"; }
111
+        try {Artisan::call('db:seed --class="ButtonSeeder" --force'); } catch (exception $e) {$failed = "true"; }
112
+
113
+        try {$users = DB::table('buttons')->count(); $failed = false; } catch (exception $e) {$failed = true; }
114
+
115
+        if ($failed == true) {
116
+            if (EnvEditor::keyExists('DB_CONNECTION')) {EnvEditor::editKey('DB_CONNECTION', 'sqlite'); } else {EnvEditor::addKey('DB_CONNECTION', 'sqlite'); }
117
+            if (EnvEditor::keyExists('DB_HOST')) {EnvEditor::deleteKey('DB_HOST'); }
118
+            if (EnvEditor::keyExists('DB_PORT')) {EnvEditor::deleteKey('DB_PORT'); }
119
+            if (EnvEditor::keyExists('DB_DATABASE')) {EnvEditor::deleteKey('DB_DATABASE'); }
120
+            if (EnvEditor::keyExists('DB_USERNAME')) {EnvEditor::deleteKey('DB_USERNAME'); }
121
+            if (EnvEditor::keyExists('DB_PASSWORD')) {EnvEditor::deleteKey('DB_PASSWORD'); }
122 122
             return redirect(url('?error'));
123
-        }else{
123
+        } else {
124 124
             return redirect(url('?4'));
125 125
         }
126 126
     }
@@ -131,25 +131,25 @@  discard block
 block discarded – undo
131 131
         $user = User::find(1);
132 132
         $llName = $user->littlelink_name;
133 133
 
134
-        if($request->register == 'Yes'){ 
135
-            if(EnvEditor::keyExists('ALLOW_REGISTRATION')){EnvEditor::editKey('ALLOW_REGISTRATION', 'true');}else{EnvEditor::addKey('ALLOW_REGISTRATION', 'true');}
134
+        if ($request->register == 'Yes') { 
135
+            if (EnvEditor::keyExists('ALLOW_REGISTRATION')) {EnvEditor::editKey('ALLOW_REGISTRATION', 'true'); } else {EnvEditor::addKey('ALLOW_REGISTRATION', 'true'); }
136 136
         } else {
137
-            if(EnvEditor::keyExists('ALLOW_REGISTRATION')){EnvEditor::editKey('ALLOW_REGISTRATION', 'false');}else{EnvEditor::addKey('ALLOW_REGISTRATION', 'false');}
137
+            if (EnvEditor::keyExists('ALLOW_REGISTRATION')) {EnvEditor::editKey('ALLOW_REGISTRATION', 'false'); } else {EnvEditor::addKey('ALLOW_REGISTRATION', 'false'); }
138 138
         }
139 139
 
140
-        if($request->verify == 'Yes'){$value = "verified";}else{$value = "auth";}
141
-        if(EnvEditor::keyExists('REGISTER_AUTH')){EnvEditor::editKey('REGISTER_AUTH', $value);}
140
+        if ($request->verify == 'Yes') {$value = "verified"; } else {$value = "auth"; }
141
+        if (EnvEditor::keyExists('REGISTER_AUTH')) {EnvEditor::editKey('REGISTER_AUTH', $value); }
142 142
 
143
-        if($request->page == 'No'){$value = "";}else{$value = '"' . $llName . '"';}
144
-        if(EnvEditor::keyExists('HOME_URL')){EnvEditor::editKey('HOME_URL', $value);}
143
+        if ($request->page == 'No') {$value = ""; } else {$value = '"' . $llName . '"'; }
144
+        if (EnvEditor::keyExists('HOME_URL')) {EnvEditor::editKey('HOME_URL', $value); }
145 145
 
146
-        if(EnvEditor::keyExists('APP_NAME')){EnvEditor::editKey('APP_NAME', '"' . $request->app . '"');}
146
+        if (EnvEditor::keyExists('APP_NAME')) {EnvEditor::editKey('APP_NAME', '"' . $request->app . '"'); }
147 147
 
148
-        if(file_exists(base_path("INSTALLING"))){unlink(base_path("INSTALLING"));}
148
+        if (file_exists(base_path("INSTALLING"))) {unlink(base_path("INSTALLING")); }
149 149
 
150 150
         $file = base_path('INSTALLERLOCK');
151 151
         if (file_exists($file)) {
152
-            unlink($file) or die('Cannot delete file: '.$file);
152
+            unlink($file) or die('Cannot delete file: ' . $file);
153 153
             sleep(1);
154 154
         }
155 155
 
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $value = $request->value;
165 165
         $value = '"' . $request->value . '"';
166 166
         
167
-        if(EnvEditor::keyExists($entry)){EnvEditor::editKey($entry, $value);}
167
+        if (EnvEditor::keyExists($entry)) {EnvEditor::editKey($entry, $value); }
168 168
 
169 169
         return Redirect(url(''));
170 170
     }
Please login to merge, or discard this patch.
Braces   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         if($request->database == 'MySQL'){
42 42
             return redirect(url('?mysql'));
43
-        }else{
43
+        } else{
44 44
             return redirect(url('?4'));
45 45
         }
46 46
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
             fclose($handleFile);
60 60
         }
61 61
 
62
-        try{EnvEditor::addKey('ADMIN_EMAIL', $email);}catch(Exception $e){}
62
+        try{EnvEditor::addKey('ADMIN_EMAIL', $email);} catch(Exception $e){}
63 63
 
64 64
         if(DB::table('users')->count() == '0'){
65 65
         Schema::disableForeignKeyConstraints();
@@ -92,12 +92,12 @@  discard block
 block discarded – undo
92 92
         $DB_USERNAME = $request->username;
93 93
         $DB_PASSWORD = $request->password;
94 94
 
95
-        if(EnvEditor::keyExists('DB_CONNECTION')){EnvEditor::editKey('DB_CONNECTION', $DB_CONNECTION);}else{EnvEditor::addKey('DB_CONNECTION', $DB_CONNECTION);}
96
-        if(EnvEditor::keyExists('DB_HOST')){EnvEditor::editKey('DB_HOST', $DB_HOST);}else{EnvEditor::addKey('DB_HOST', $DB_HOST);}
97
-        if(EnvEditor::keyExists('DB_PORT')){EnvEditor::editKey('DB_PORT', $DB_PORT);}else{EnvEditor::addKey('DB_PORT', $DB_PORT);}
98
-        if(EnvEditor::keyExists('DB_DATABASE')){EnvEditor::editKey('DB_DATABASE', $DB_DATABASE);}else{EnvEditor::addKey('DB_DATABASE', $DB_DATABASE);}
99
-        if(EnvEditor::keyExists('DB_USERNAME')){EnvEditor::editKey('DB_USERNAME', $DB_USERNAME);}else{EnvEditor::addKey('DB_USERNAME', $DB_USERNAME);}
100
-        if(EnvEditor::keyExists('DB_PASSWORD')){EnvEditor::editKey('DB_PASSWORD', $DB_PASSWORD);}else{EnvEditor::addKey('DB_PASSWORD', $DB_PASSWORD);}
95
+        if(EnvEditor::keyExists('DB_CONNECTION')){EnvEditor::editKey('DB_CONNECTION', $DB_CONNECTION);} else{EnvEditor::addKey('DB_CONNECTION', $DB_CONNECTION);}
96
+        if(EnvEditor::keyExists('DB_HOST')){EnvEditor::editKey('DB_HOST', $DB_HOST);} else{EnvEditor::addKey('DB_HOST', $DB_HOST);}
97
+        if(EnvEditor::keyExists('DB_PORT')){EnvEditor::editKey('DB_PORT', $DB_PORT);} else{EnvEditor::addKey('DB_PORT', $DB_PORT);}
98
+        if(EnvEditor::keyExists('DB_DATABASE')){EnvEditor::editKey('DB_DATABASE', $DB_DATABASE);} else{EnvEditor::addKey('DB_DATABASE', $DB_DATABASE);}
99
+        if(EnvEditor::keyExists('DB_USERNAME')){EnvEditor::editKey('DB_USERNAME', $DB_USERNAME);} else{EnvEditor::addKey('DB_USERNAME', $DB_USERNAME);}
100
+        if(EnvEditor::keyExists('DB_PASSWORD')){EnvEditor::editKey('DB_PASSWORD', $DB_PASSWORD);} else{EnvEditor::addKey('DB_PASSWORD', $DB_PASSWORD);}
101 101
 
102 102
         return redirect(url('mysql-test'));
103 103
 
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
         try {$users = DB::table('buttons')->count(); $failed = false;} catch (exception $e) {$failed = true;}
114 114
 
115 115
         if($failed == true){
116
-            if(EnvEditor::keyExists('DB_CONNECTION')){EnvEditor::editKey('DB_CONNECTION', 'sqlite');}else{EnvEditor::addKey('DB_CONNECTION', 'sqlite');}
116
+            if(EnvEditor::keyExists('DB_CONNECTION')){EnvEditor::editKey('DB_CONNECTION', 'sqlite');} else{EnvEditor::addKey('DB_CONNECTION', 'sqlite');}
117 117
             if(EnvEditor::keyExists('DB_HOST')){EnvEditor::deleteKey('DB_HOST');}
118 118
             if(EnvEditor::keyExists('DB_PORT')){EnvEditor::deleteKey('DB_PORT');}
119 119
             if(EnvEditor::keyExists('DB_DATABASE')){EnvEditor::deleteKey('DB_DATABASE');}
120 120
             if(EnvEditor::keyExists('DB_USERNAME')){EnvEditor::deleteKey('DB_USERNAME');}
121 121
             if(EnvEditor::keyExists('DB_PASSWORD')){EnvEditor::deleteKey('DB_PASSWORD');}
122 122
             return redirect(url('?error'));
123
-        }else{
123
+        } else{
124 124
             return redirect(url('?4'));
125 125
         }
126 126
     }
@@ -132,15 +132,15 @@  discard block
 block discarded – undo
132 132
         $llName = $user->littlelink_name;
133 133
 
134 134
         if($request->register == 'Yes'){ 
135
-            if(EnvEditor::keyExists('ALLOW_REGISTRATION')){EnvEditor::editKey('ALLOW_REGISTRATION', 'true');}else{EnvEditor::addKey('ALLOW_REGISTRATION', 'true');}
135
+            if(EnvEditor::keyExists('ALLOW_REGISTRATION')){EnvEditor::editKey('ALLOW_REGISTRATION', 'true');} else{EnvEditor::addKey('ALLOW_REGISTRATION', 'true');}
136 136
         } else {
137
-            if(EnvEditor::keyExists('ALLOW_REGISTRATION')){EnvEditor::editKey('ALLOW_REGISTRATION', 'false');}else{EnvEditor::addKey('ALLOW_REGISTRATION', 'false');}
137
+            if(EnvEditor::keyExists('ALLOW_REGISTRATION')){EnvEditor::editKey('ALLOW_REGISTRATION', 'false');} else{EnvEditor::addKey('ALLOW_REGISTRATION', 'false');}
138 138
         }
139 139
 
140
-        if($request->verify == 'Yes'){$value = "verified";}else{$value = "auth";}
140
+        if($request->verify == 'Yes'){$value = "verified";} else{$value = "auth";}
141 141
         if(EnvEditor::keyExists('REGISTER_AUTH')){EnvEditor::editKey('REGISTER_AUTH', $value);}
142 142
 
143
-        if($request->page == 'No'){$value = "";}else{$value = '"' . $llName . '"';}
143
+        if($request->page == 'No'){$value = "";} else{$value = '"' . $llName . '"';}
144 144
         if(EnvEditor::keyExists('HOME_URL')){EnvEditor::editKey('HOME_URL', $value);}
145 145
 
146 146
         if(EnvEditor::keyExists('APP_NAME')){EnvEditor::editKey('APP_NAME', '"' . $request->app . '"');}
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/LinkTypeController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
 
50 50
         // store
51 51
         $LinkType = new LinkType;
52
-        $LinkType->typename       = $request->typename;
53
-        $LinkType->title      = $request->title;
52
+        $LinkType->typename = $request->typename;
53
+        $LinkType->title = $request->title;
54 54
         $LinkType->description = $request->description;
55
-        $LinkType->icon            = $request->icon;
55
+        $LinkType->icon = $request->icon;
56 56
         $LinkType->params = $request->params;
57 57
         $LinkType->save();
58 58
 
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
 
101 101
 
102 102
         // store
103
-        $linktype->title      = $request->title;
103
+        $linktype->title = $request->title;
104 104
         $linktype->description = $request->description;
105
-        $linktype->icon            = $request->icon;
105
+        $linktype->icon = $request->icon;
106 106
         $linktype->params = $request->params;
107 107
         $linktype->save();
108 108
 
Please login to merge, or discard this patch.
app/Http/Controllers/LinkTypeViewController.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         // dynamiclly create params for predefined website to fill a select list with available buttons
64 64
         if (!empty($linkType) && $linkType->typename === 'predefined') {
65 65
             $buttons = Button::select('name')->orderBy('name', 'asc')->get();
66
-           $pdParams[] = ['tag' => 'select', 'name' => 'button', 'id'=> 'button'];
66
+            $pdParams[] = ['tag' => 'select', 'name' => 'button', 'id'=> 'button'];
67 67
             foreach ($buttons as $btn) {
68 68
                 $pdParams[0]['value'][] = [
69 69
                     'tag'=>'option',
@@ -133,10 +133,10 @@  discard block
 block discarded – undo
133 133
                 $typeParams = json_decode($link['type_params']);
134 134
 
135 135
 
136
- //echo "<pre>";
136
+    //echo "<pre>";
137 137
 //  print_r($typeParams);
138
-                  //print_r($params[$idx]);
139
-                 //echo "</pre>";
138
+                    //print_r($params[$idx]);
139
+                    //echo "</pre>";
140 140
 
141 141
                 if ($typeParams && property_exists($typeParams, $params[$idx]['name'])) {
142 142
                     if (key_exists('value', $params[$idx]) && is_array($params[$idx]['value'])) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             $data['params'] = json_decode($link['type_params']);
34 34
             $data['link_title'] = $link->title;
35 35
             $data['link_url'] = $link->link;
36
-            if (Route::currentRouteName() != 'showButtons') {$data['button_id'] = $link->button_id;}
36
+            if (Route::currentRouteName() != 'showButtons') {$data['button_id'] = $link->button_id; }
37 37
         }
38 38
 
39 39
         if (!empty($linkType) && $linkType->typename === 'predefined') {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 //echo "<pre>"; print_r($data['params']); exit;
51 51
 
52 52
         }
53
-        return view('components.pageitems.'. $linkType->typename.'-form', $data);
53
+        return view('components.pageitems.' . $linkType->typename . '-form', $data);
54 54
 
55 55
         $jsonForm = FormFactory::jsonForm();
56 56
         try {
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -118,11 +118,13 @@
 block discarded – undo
118 118
         $params = json_decode($json, true);
119 119
         $idx = 0;
120 120
         foreach ($params as $p) {
121
-            if (!array_key_exists('for', $p))
122
-                $params[$idx]['for'] = $p['name'];
121
+            if (!array_key_exists('for', $p)) {
122
+                            $params[$idx]['for'] = $p['name'];
123
+            }
123 124
 
124
-            if (!array_key_exists('label', $p))
125
-                $params[$idx]['label'] = ucwords(preg_replace('/[^a-zA-Z0-9-]/', ' ', $p['name']));
125
+            if (!array_key_exists('label', $p)) {
126
+                            $params[$idx]['label'] = ucwords(preg_replace('/[^a-zA-Z0-9-]/', ' ', $p['name']));
127
+            }
126 128
 
127 129
             if (!array_key_exists('label', $p) || !str_contains($p['class'], 'form-control')) {
128 130
                 $params[$idx]['class'] = " form-control";
Please login to merge, or discard this patch.
app/Http/Kernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
66 66
         'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
67 67
         'link-id' => \App\Http\Middleware\LinkId::class,
68
-	    'admin' => \App\Http\Middleware\admin::class,
68
+        'admin' => \App\Http\Middleware\admin::class,
69 69
         'blocked' => \App\Http\Middleware\CheckBlockedUser::class,
70 70
         'max.users' => \App\Http\Middleware\MaxUsers::class,
71 71
         'impersonate' => \App\Http\Middleware\Impersonate::class,
Please login to merge, or discard this patch.