Passed
Pull Request — master (#65)
by Ron
12:10
created
app/Mail/NewLinkFile.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,4 +36,4 @@
 block discarded – undo
36 36
         return $this->subject('New File Uploaded')->markdown('email.newLinkFile');
37 37
     }
38 38
 }
39
- 
40 39
\ No newline at end of file
40
+    
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Http/Controllers/CustomerController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
                 ->with('CustomerSystems.SystemTypes')
53 53
                 ->whereHas('CustomerSystems', function($q) use($request)
54 54
                 {
55
-                   $q->where('sys_id', $request->system);
55
+                    $q->where('sys_id', $request->system);
56 56
                 })
57 57
                 ->get();
58 58
         }
Please login to merge, or discard this patch.
app/Http/Controllers/TechTipsController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
             $tipData = TechTips::where('subject', 'like', '%'.$request->tipSearch.'%')
58 58
                 ->whereHas('TechTipSystems', function($q) use($request)
59 59
                 {
60
-                   $q->where('sys_id', $request->system);
60
+                    $q->where('sys_id', $request->system);
61 61
                 })
62 62
                 ->get();
63 63
         }
Please login to merge, or discard this patch.
app/Http/Controllers/UserLinksController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,4 +100,4 @@
 block discarded – undo
100 100
         return $request->all();
101 101
     }
102 102
 }
103
- 
104 103
\ No newline at end of file
104
+    
105 105
\ No newline at end of file
Please login to merge, or discard this patch.
app/Http/Controllers/UserController.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         
148 148
         $nextChange = config('users.passExpires') != null ? Carbon::now()->addDays(config('users.passExpires')) : null;
149 149
         
150
-         //  Update the password
150
+            //  Update the password
151 151
         User::find($userData->user_id)->update(
152 152
         [
153 153
             'password'         => bcrypt($request->newPass),
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
         
189 189
         $nextChange = isset($request->force_change) && $request->force_change == 'on' ? Carbon::now()->subDay() : null;
190 190
         
191
-         //  Update the user data
191
+            //  Update the user data
192 192
         User::find($id)->update(
193 193
         [
194 194
             'password'         => bcrypt($request->password),
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
             $linkController->destroy($link->link_id);
274 274
         }
275 275
         
276
-         //  Update the user data
276
+            //  Update the user data
277 277
         User::find($id)->update(
278 278
         [
279 279
             'active'   => 0
Please login to merge, or discard this patch.
app/Notifications/NewFileUploaded.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
         return (new MailMessage)
32 32
                     ->line('A new file has been uploaded to the file link - '.$this->details->link_name)
33 33
                     ->action('Click to View Link', 
34
-                             url(route('links.info', [
35
-                                 'id' => $this->details->link_id, 
36
-                                 'name' => urlencode($this->details->link_name)
34
+                                url(route('links.info', [
35
+                                    'id' => $this->details->link_id, 
36
+                                    'name' => urlencode($this->details->link_name)
37 37
                             ])));
38 38
     }
39 39
 
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
             'type'    => 'warning',
45 45
             'message' => 'New File Uploaded to link - '.$this->details->link_name,
46 46
             'link'    => url(route('links.info', [
47
-                                 'id' => $this->details->link_id, 
48
-                                 'name' => urlencode($this->details->link_name)
47
+                                    'id' => $this->details->link_id, 
48
+                                    'name' => urlencode($this->details->link_name)
49 49
                             ]))
50 50
         ];
51 51
     }
Please login to merge, or discard this patch.
app/Console/Commands/DatabaseCheck.php 1 patch
Indentation   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -290,22 +290,22 @@  discard block
 block discarded – undo
290 290
             
291 291
             if(!empty($over))
292 292
             {
293
-               foreach($over as $ov)
294
-               {
295
-                   $res[] = [
296
-                       'type'  => 'error',
297
-                       'value' => '     Link for '.$ov['username'].' is '.$ov['age'].' days old'
298
-                   ];
293
+                foreach($over as $ov)
294
+                {
295
+                    $res[] = [
296
+                        'type'  => 'error',
297
+                        'value' => '     Link for '.$ov['username'].' is '.$ov['age'].' days old'
298
+                    ];
299 299
                    
300
-                   if($this->fix)
301
-                   {
302
-                       UserInitialize::where('username', $ov['username'])->delete();
303
-                       $res[] = [
304
-                           'type'  => 'info',
305
-                           'value' => '          Corrected'
306
-                       ];
307
-                   }
308
-               }
300
+                    if($this->fix)
301
+                    {
302
+                        UserInitialize::where('username', $ov['username'])->delete();
303
+                        $res[] = [
304
+                            'type'  => 'info',
305
+                            'value' => '          Corrected'
306
+                        ];
307
+                    }
308
+                }
309 309
             }
310 310
         }
311 311
         
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
             }
426 426
         }
427 427
 		
428
-		$res = array_merge($res, $res2);
428
+        $res = array_merge($res, $res2);
429 429
         
430 430
         return $res;
431 431
     }
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
     private function customerFiles()
435 435
     {
436 436
         $res = [];
437
-		$res2 = [];
437
+        $res2 = [];
438 438
         
439 439
         $badPointer  = 0;
440 440
         $missingFile = 0;
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
             }
529 529
         }
530 530
 		
531
-		$res = array_merge($res, $res2);
531
+        $res = array_merge($res, $res2);
532 532
         
533 533
         return $res;
534 534
     }
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
     private function linkFiles()
538 538
     {
539 539
         $res = [];
540
-		$res2 = [];
540
+        $res2 = [];
541 541
         
542 542
         $badPointer  = 0;
543 543
         $missingFile = 0;
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
             }
632 632
         }
633 633
 		
634
-		$res = array_merge($res, $res2);
634
+        $res = array_merge($res, $res2);
635 635
         
636 636
         return $res;
637 637
     }
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
     private function tipFiles()
641 641
     {
642 642
         $res = [];
643
-		$res2 = [];
643
+        $res2 = [];
644 644
         
645 645
         $badPointer  = 0;
646 646
         $missingFile = 0;
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
             }
735 735
         }
736 736
 		
737
-		$res = array_merge($res, $res2);
737
+        $res = array_merge($res, $res2);
738 738
         
739 739
         return $res;
740 740
     }
@@ -749,36 +749,36 @@  discard block
 block discarded – undo
749 749
             'value' => 'Unknown Files.....................'.count($this->fileArr)
750 750
         ];
751 751
 		
752
-		if(count($this->fileArr) > 0)
753
-		{
754
-			foreach($this->fileArr as $file)
755
-			{
756
-				$fileData = Files::find($file);
752
+        if(count($this->fileArr) > 0)
753
+        {
754
+            foreach($this->fileArr as $file)
755
+            {
756
+                $fileData = Files::find($file);
757 757
 				
758
-				$res[] = [
759
-					'type' => 'line',
760
-					'value' => '     Unknown File ID - '.$fileData->file_id.' - '.$fileData->file_link.$fileData->file_name,
761
-					'repOnly' => true
762
-				];
758
+                $res[] = [
759
+                    'type' => 'line',
760
+                    'value' => '     Unknown File ID - '.$fileData->file_id.' - '.$fileData->file_link.$fileData->file_name,
761
+                    'repOnly' => true
762
+                ];
763 763
 				
764
-				if($this->fix)
765
-				{
766
-					$res[] = [
767
-						'type' => 'info',
768
-						'value' => '          Corrected',
764
+                if($this->fix)
765
+                {
766
+                    $res[] = [
767
+                        'type' => 'info',
768
+                        'value' => '          Corrected',
769 769
                         'repOnly' => true
770
-					];
770
+                    ];
771 771
 
772
-					if(!Storage::exists($fileData->file_link.$fileData->file_name))
773
-					{
774
-						Storage::delete($fileData->file_link.$fileData->file_name);
775
-					}
772
+                    if(!Storage::exists($fileData->file_link.$fileData->file_name))
773
+                    {
774
+                        Storage::delete($fileData->file_link.$fileData->file_name);
775
+                    }
776 776
 					
777
-					$fileData->delete();
777
+                    $fileData->delete();
778 778
 					
779
-				}
780
-			}
781
-		}
779
+                }
780
+            }
781
+        }
782 782
 		
783 783
 		
784 784
 /*		
@@ -817,7 +817,7 @@  discard block
 block discarded – undo
817 817
     {
818 818
         $res = [];
819 819
         
820
-		$allFiles = File::allFiles(config('filesystems.disks.local.root'));
820
+        $allFiles = File::allFiles(config('filesystems.disks.local.root'));
821 821
         
822 822
         foreach($allFiles as $pos => $file)
823 823
         {
Please login to merge, or discard this patch.