From 791113ffb6c75e7603e7edc121c193e57282f447 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Felix=20=C5=A0ulc?= Date: Tue, 8 Oct 2019 16:13:20 +0200 Subject: [PATCH] QA: codestyle --- .../ContainerBuilderDefinitionsBlueScreen.php | 14 +++++++++++--- .../ContainerBuilderParametersBlueScreen.php | 14 +++++++++++--- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/src/BlueScreen/ContainerBuilderDefinitionsBlueScreen.php b/src/BlueScreen/ContainerBuilderDefinitionsBlueScreen.php index f30e88a..76e504a 100644 --- a/src/BlueScreen/ContainerBuilderDefinitionsBlueScreen.php +++ b/src/BlueScreen/ContainerBuilderDefinitionsBlueScreen.php @@ -24,9 +24,17 @@ public function __construct(ContainerBuilder $builder) */ public function __invoke(?Throwable $e): ?array { - if ($e === null) return null; - if (!($e instanceof ServiceCreationException)) return null; - if (Helpers::findTrace($e->getTrace(), 'Nette\DI\Compiler::compile') === null) return null; + if ($e === null) { + return null; + } + + if (!($e instanceof ServiceCreationException)) { + return null; + } + + if (Helpers::findTrace($e->getTrace(), 'Nette\DI\Compiler::compile') === null) { + return null; + } $parts = []; diff --git a/src/BlueScreen/ContainerBuilderParametersBlueScreen.php b/src/BlueScreen/ContainerBuilderParametersBlueScreen.php index 81f9a76..dff7c2c 100644 --- a/src/BlueScreen/ContainerBuilderParametersBlueScreen.php +++ b/src/BlueScreen/ContainerBuilderParametersBlueScreen.php @@ -24,9 +24,17 @@ public function __construct(ContainerBuilder $builder) */ public function __invoke(?Throwable $e): ?array { - if ($e === null) return null; - if (!($e instanceof InvalidArgumentException)) return null; - if (Helpers::findTrace($e->getTrace(), 'Nette\DI\Compiler::compile') === null) return null; + if ($e === null) { + return null; + } + + if (!($e instanceof InvalidArgumentException)) { + return null; + } + + if (Helpers::findTrace($e->getTrace(), 'Nette\DI\Compiler::compile') === null) { + return null; + } return [ 'tab' => 'ContainerBuilder - parameters',