Skip to content

Commit

Permalink
Fix the PHP formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
macbre committed Dec 13, 2024
1 parent 8ecc79b commit a852e9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/NanoScript.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ final public function runAndCatch(): mixed
{
try {
return $this->run();
} catch(Throwable $e) {
} catch (Throwable $e) {
$message = get_class($this) . '::run() failed';
$this->logger->error($message, ['exception' => $e]);

Expand Down
2 changes: 1 addition & 1 deletion tests/NanoScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function testWorkingTestScriptRunAndCatchException()

try {
Nano::script(__DIR__ . '/..', WorkingTestScript::class)->runAndCatch();
} catch(Throwable $e) {
} catch (Throwable $e) {
$this->assertEquals($ex->getMessage(), $e->getMessage());
}

Expand Down

0 comments on commit a852e9f

Please sign in to comment.