Skip to content

Commit

Permalink
Fix CS/WS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 24, 2023
1 parent 55cc534 commit 12f9374
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Invoker.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function invoke(callable $callable, array $arguments, int $timeout): mixe
{
if (!$this->canInvokeWithTimeout()) {
throw new ProcessControlExtensionNotLoadedException(
'The pcntl (process control) extension for PHP is required'
'The pcntl (process control) extension for PHP is required',
);
}

Expand All @@ -41,11 +41,11 @@ function (): void
sprintf(
'Execution aborted after %d second%s',
$this->timeout,
$this->timeout === 1 ? '' : 's'
)
$this->timeout === 1 ? '' : 's',
),
);
},
true
true,
);

$this->timeout = $timeout;
Expand Down
4 changes: 2 additions & 2 deletions tests/InvokerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function setUp(): void
public function testExecutionOfCallableIsNotAbortedWhenTimeoutIsNotReached(): void
{
$this->assertTrue(
$this->invoker->invoke([$this->callable, 'test'], [0], 1)
$this->invoker->invoke([$this->callable, 'test'], [0], 1),
);
}

Expand All @@ -52,7 +52,7 @@ public function testRequirementsCanBeChecked(): void
public function testAlarmIsClearedWhenCallableTimeoutIsNotReached(): void
{
$this->assertTrue(
$this->invoker->invoke([$this->callable, 'test'], [0], 1)
$this->invoker->invoke([$this->callable, 'test'], [0], 1),
);

try {
Expand Down

0 comments on commit 12f9374

Please sign in to comment.