Skip to content

Commit 2905b8d

Browse files
authored
fix typo (#20)
1 parent 4f6f8ef commit 2905b8d

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/ErrorHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ protected function setFilename(string $filename): void
5353
$this->_filename = $filename;
5454
}
5555

56-
private function sucessfull(string $filenameSource, ?string $filenameRotated): void
56+
private function successful(string $filenameSource, ?string $filenameRotated): void
5757
{
58-
$this->finished('sucessfull', $filenameSource);
58+
$this->finished('successful', $filenameSource);
5959

6060
if (is_null($this->thenCallback) || is_null($filenameRotated)) {
6161
return;

src/Exceptions/RotationFailed.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ class RotationFailed extends Exception
99
{
1010
private string $filename;
1111

12-
public function __construct(string $message = '', int $code = 0, ?Throwable $previus = null, ?string $filename = null)
12+
public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null, ?string $filename = null)
1313
{
14-
parent::__construct($message, $code, $previus);
14+
parent::__construct($message, $code, $previous);
1515

1616
$this->filename = $filename ?? '';
1717
}

src/Processors/AbstractProcessor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function addExtension(string $extension): void
2020
$this->extension = '.'.$extension;
2121
}
2222

23-
public function removeExtention(string $extension): void
23+
public function removeExtension(string $extension): void
2424
{
2525
$this->extension = str_replace('.'.$extension, '', $this->extension);
2626
}

src/Rotation.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function compress(bool|int $level = true): self
6565
if ($this->_compress) {
6666
$this->processor->addExtension('gz');
6767
} else {
68-
$this->processor->removeExtention('gz');
68+
$this->processor->removeExtension('gz');
6969
}
7070

7171
return $this;
@@ -127,7 +127,7 @@ public function rotate(string $filename): bool
127127

128128
$fileTarget = $this->runCompress($fileTarget);
129129

130-
$this->sucessfull($filename, $fileTarget);
130+
$this->successful($filename, $fileTarget);
131131

132132
return true;
133133
}

0 commit comments

Comments
 (0)