Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
matthi4s authored and github-actions[bot] committed Aug 17, 2023
1 parent 1a4bb21 commit d10fccc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Pool.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ protected function registerListener()
*/
if (phpversion() === '8.1.22' || phpversion() === '8.2.9') {
$this->handleFinishedProcess($status['pid'], $status['status']);

return;
}

Expand All @@ -331,15 +332,17 @@ protected function registerListener()
});
}

protected function handleFinishedProcess(int $pid, int $status) {
protected function handleFinishedProcess(int $pid, int $status)
{
$process = $this->inProgress[$pid] ?? null;

if (!$process) {
if (! $process) {
return;
}

if ($status === 0) {
$this->markAsFinished($process);

return;
}

Expand Down

0 comments on commit d10fccc

Please sign in to comment.