Skip to content

Commit 45cdf82

Browse files
authored
Merge pull request #9 from highstrike/patch-1
fixing some spelling errors
2 parents 5bd4bfb + 81f98a2 commit 45cdf82

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/Commands/Rotate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ public function handle()
2727
});
2828

2929
Event::listen(RotateIsNotNecessary::class, function ($event) {
30-
$this->line("\t".'<comment>Rotated is nos necessary</>: '.$event->message);
30+
$this->line("\t".'<comment>Rotation is not necessary</>: '.$event->message);
3131
});
3232

3333
Event::listen(RotateHasFailed::class, function ($event) {
34-
$this->line("\t".'<error>Rotated failed</>: '.$event->exception->getMessage());
34+
$this->line("\t".'<error>Rotation failed</>: '.$event->exception->getMessage());
3535
});
3636

3737
foreach (LogHelper::getLaravelLogFiles() as $file) {

src/Commands/RotateFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ public function handle()
3131
});
3232

3333
Event::listen(RotateIsNotNecessary::class, function ($event) {
34-
$this->line("\t".'<comment>Rotated is nos necessary</>: '.$event->message);
34+
$this->line("\t".'<comment>Rotation is not necessary</>: '.$event->message);
3535
});
3636

3737
Event::listen(RotateHasFailed::class, function ($event) {
38-
$this->line("\t".'<error>Rotated failed</>: '.$event->exception->getMessage());
38+
$this->line("\t".'<error>Rotation failed</>: '.$event->exception->getMessage());
3939
});
4040

4141
foreach ($files as $file) {

src/Handlers/AbstractHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ protected function validate()
3838
clearstatcache();
3939

4040
if (! is_file($this->file)) {
41-
event(new RotateIsNotNecessary($this->file, 'The file '.$this->file.' nos exists'));
41+
event(new RotateIsNotNecessary($this->file, 'File '.$this->file.' does not exists'));
4242

4343
return false;
4444
}
4545

4646
if (! is_writable($this->file)) {
47-
event(new RotateHasFailed($this->file, new Exception('File '.$this->file.' is not writable.')));
47+
event(new RotateHasFailed($this->file, new Exception('File '.$this->file.' is not writable')));
4848

4949
return false;
5050
}
@@ -57,7 +57,7 @@ protected function validate()
5757
return false;
5858
}
5959
} else {
60-
event(new RotateHasFailed($this->file, new Exception('Directory '.$this->dir_to_archive.' to archive exits and is not a directory')));
60+
event(new RotateHasFailed($this->file, new Exception('Directory '.$this->dir_to_archive.' to archive exists and is not a directory')));
6161

6262
return false;
6363
}
@@ -70,7 +70,7 @@ protected function validate()
7070
}
7171

7272
if (filesize($this->file) == 0) {
73-
event(new RotateIsNotNecessary($this->file, 'The file '.$this->file.' is empty'));
73+
event(new RotateIsNotNecessary($this->file, 'File '.$this->file.' is empty'));
7474

7575
return false;
7676
}

src/Handlers/RotativeHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function run()
3333

3434
return true;
3535
} else {
36-
event(new RotateHasFailed($this->file, new Exception('Fail to move file '.$this->file.' to '.$this->file_rotated)));
36+
event(new RotateHasFailed($this->file, new Exception('Failed to move file '.$this->file.' to '.$this->file_rotated)));
3737

3838
return false;
3939
}

0 commit comments

Comments
 (0)