Skip to content

Commit 5d14c55

Browse files
authored
Merge pull request #21 from cesargb/analysis-3wdYk4
Apply fixes from StyleCI
2 parents c1cb47a + 320ba91 commit 5d14c55

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/Handlers/RotativeHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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');

tests/TestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)