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()
52
52
53
53
$ this ->app ['config ' ]->set ('rotate.log_compress_files ' , true );
54
54
55
- for ($ n = 0 ; $ n < 10 ; ++ $ n ) {
55
+ for ($ n = 0 ; $ n < 10 ; $ n ++ ) {
56
56
$ this ->writeLog ();
57
57
58
58
Artisan::call ('rotate:logs ' );
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function setUp(): void
26
26
27
27
$ this ->cleanLogs ();
28
28
29
- if (!file_exists ($ this ->tmpDir )) {
29
+ if (! file_exists ($ this ->tmpDir )) {
30
30
mkdir ($ this ->tmpDir );
31
31
}
32
32
}
@@ -49,7 +49,7 @@ protected function cleanLogs()
49
49
$ filesToRemove = glob (dirname ($ fileLog ).'/* ' );
50
50
51
51
foreach ($ filesToRemove as $ f ) {
52
- if (is_file ($ f ) && !is_dir ($ f )) {
52
+ if (is_file ($ f ) && ! is_dir ($ f )) {
53
53
unlink ($ f );
54
54
}
55
55
}
@@ -58,15 +58,15 @@ protected function cleanLogs()
58
58
$ filesToRemove = glob ($ this ->tmpDir .'/* ' );
59
59
60
60
foreach ($ filesToRemove as $ f ) {
61
- if (is_file ($ f ) && !is_dir ($ f )) {
61
+ if (is_file ($ f ) && ! is_dir ($ f )) {
62
62
unlink ($ f );
63
63
}
64
64
}
65
65
66
66
$ filesToRemove = glob ($ this ->tmpDir .'/archive/* ' );
67
67
68
68
foreach ($ filesToRemove as $ f ) {
69
- if (is_file ($ f ) && !is_dir ($ f )) {
69
+ if (is_file ($ f ) && ! is_dir ($ f )) {
70
70
unlink ($ f );
71
71
}
72
72
}
You can’t perform that action at this time.
0 commit comments