Skip to content

Commit

Permalink
QA: codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Oct 8, 2019
1 parent 3936b06 commit 791113f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
14 changes: 11 additions & 3 deletions src/BlueScreen/ContainerBuilderDefinitionsBlueScreen.php
Expand Up @@ -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 = [];

Expand Down
14 changes: 11 additions & 3 deletions src/BlueScreen/ContainerBuilderParametersBlueScreen.php
Expand Up @@ -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',
Expand Down

0 comments on commit 791113f

Please sign in to comment.