Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joetannenbaum authored and github-actions[bot] committed Sep 23, 2023
1 parent c82a4af commit d3aa7e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Spinner.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function spin(Closure $callback): mixed

$this->sockets = SpinnerSockets::create();

if (!function_exists('pcntl_fork')) {
if (! function_exists('pcntl_fork')) {
return $this->renderStatically($callback);
}

Expand Down Expand Up @@ -116,7 +116,7 @@ protected function renderStreamedOutput(): void
$this->eraseDown();

collect(explode(PHP_EOL, rtrim($output)))
->each(fn ($line) => static::writeDirectlyWithFormatting(' ' . $line . PHP_EOL));
->each(fn ($line) => static::writeDirectlyWithFormatting(' '.$line.PHP_EOL));

static::writeDirectlyWithFormatting($this->dim(str_repeat('', 60)));
$this->writeDirectly($this->prevFrame);
Expand Down Expand Up @@ -205,7 +205,7 @@ protected function eraseRenderedLines(): void
*/
public function __destruct()
{
if (!empty($this->pid)) {
if (! empty($this->pid)) {
posix_kill($this->pid, SIGHUP);
}

Expand Down

0 comments on commit d3aa7e9

Please sign in to comment.