@@ -290,22 +290,22 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | { |