Skip to content

Commit

Permalink
Improve method name
Browse files Browse the repository at this point in the history
  • Loading branch information
jessarcher committed Sep 23, 2023
1 parent 21c10bf commit 9ac9f91
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function display(): static|array
$this->state = 'error';
$this->render();
$this->restoreCursor();
$this->resetTerminal();
$this->resetSignals();

throw $e;
}
Expand Down Expand Up @@ -138,7 +138,7 @@ public function finish(): void
$this->state = 'submit';
$this->render();
$this->restoreCursor();
$this->resetTerminal();
$this->resetSignals();
}

/**
Expand Down Expand Up @@ -196,9 +196,9 @@ public function value(): bool
}

/**
* Reset the terminal.
* Reset the signal handling.
*/
protected function resetTerminal(): void
protected function resetSignals(): void
{
if (isset($this->originalAsync)) {
pcntl_async_signals($this->originalAsync);
Expand Down

0 comments on commit 9ac9f91

Please sign in to comment.