Skip to content

Commit 0218d9b

Browse files
committed
cs
1 parent 037849a commit 0218d9b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Listener/Mvc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ public function exceptionError(MvcEvent $e) : void
6565
return;
6666
}
6767

68-
if (isset($this->errorHeroModuleConfig['display-settings']['exclude-exceptions']) && isExcludedException($this->errorHeroModuleConfig['display-settings']['exclude-exceptions'], $exception)) {
68+
if (isset($this->errorHeroModuleConfig['display-settings']['exclude-exceptions'])
69+
&& isExcludedException($this->errorHeroModuleConfig['display-settings']['exclude-exceptions'], $exception)
70+
) {
6971
// rely on original mvc process
7072
return;
7173
}

src/Middleware/Expressive.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface
7070
*/
7171
public function exceptionError(Throwable $t) : ResponseInterface
7272
{
73-
if (isset($this->errorHeroModuleConfig['display-settings']['exclude-exceptions']) && isExcludedException($this->errorHeroModuleConfig['display-settings']['exclude-exceptions'], $t)) {
73+
if (isset($this->errorHeroModuleConfig['display-settings']['exclude-exceptions'])
74+
&& isExcludedException($this->errorHeroModuleConfig['display-settings']['exclude-exceptions'], $t)
75+
) {
7476
throw $t;
7577
}
7678

0 commit comments

Comments
 (0)