File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ public function testItCanRotateLogsWithMaxfiles()
5252
5353 $ this ->app ['config ' ]->set ('rotate.log_compress_files ' , true );
5454
55- for ($ n = 0 ; $ n < 10 ; ++ $ n ) {
55+ for ($ n = 0 ; $ n < 10 ; $ n ++ ) {
5656 $ this ->writeLog ();
5757
5858 Artisan::call ('rotate:logs ' );
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function setUp(): void
2626
2727 $ this ->cleanLogs ();
2828
29- if (!file_exists ($ this ->tmpDir )) {
29+ if (! file_exists ($ this ->tmpDir )) {
3030 mkdir ($ this ->tmpDir );
3131 }
3232 }
@@ -49,7 +49,7 @@ protected function cleanLogs()
4949 $ filesToRemove = glob (dirname ($ fileLog ).'/* ' );
5050
5151 foreach ($ filesToRemove as $ f ) {
52- if (is_file ($ f ) && !is_dir ($ f )) {
52+ if (is_file ($ f ) && ! is_dir ($ f )) {
5353 unlink ($ f );
5454 }
5555 }
@@ -58,15 +58,15 @@ protected function cleanLogs()
5858 $ filesToRemove = glob ($ this ->tmpDir .'/* ' );
5959
6060 foreach ($ filesToRemove as $ f ) {
61- if (is_file ($ f ) && !is_dir ($ f )) {
61+ if (is_file ($ f ) && ! is_dir ($ f )) {
6262 unlink ($ f );
6363 }
6464 }
6565
6666 $ filesToRemove = glob ($ this ->tmpDir .'/archive/* ' );
6767
6868 foreach ($ filesToRemove as $ f ) {
69- if (is_file ($ f ) && !is_dir ($ f )) {
69+ if (is_file ($ f ) && ! is_dir ($ f )) {
7070 unlink ($ f );
7171 }
7272 }
You can’t perform that action at this time.
0 commit comments