Skip to content

Commit

Permalink
fix typo (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb authored Jan 6, 2023
1 parent 4f6f8ef commit 2905b8d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ protected function setFilename(string $filename): void
$this->_filename = $filename;
}

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

if (is_null($this->thenCallback) || is_null($filenameRotated)) {
return;
Expand Down
4 changes: 2 additions & 2 deletions src/Exceptions/RotationFailed.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ class RotationFailed extends Exception
{
private string $filename;

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

$this->filename = $filename ?? '';
}
Expand Down
2 changes: 1 addition & 1 deletion src/Processors/AbstractProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function addExtension(string $extension): void
$this->extension = '.'.$extension;
}

public function removeExtention(string $extension): void
public function removeExtension(string $extension): void
{
$this->extension = str_replace('.'.$extension, '', $this->extension);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Rotation.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function compress(bool|int $level = true): self
if ($this->_compress) {
$this->processor->addExtension('gz');
} else {
$this->processor->removeExtention('gz');
$this->processor->removeExtension('gz');
}

return $this;
Expand Down Expand Up @@ -127,7 +127,7 @@ public function rotate(string $filename): bool

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

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

return true;
}
Expand Down

0 comments on commit 2905b8d

Please sign in to comment.