Skip to content

Commit

Permalink
CS: apply minor indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keradus authored and nicolas-grekas committed Nov 25, 2024
1 parent b54c02c commit 9958f5a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions EventListener/TemplateAttributeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ public function onKernelView(ViewEvent $event): void
}

$event->setResponse($attribute->stream
? new StreamedResponse(
null !== $attribute->block
? fn () => $this->twig->load($attribute->template)->displayBlock($attribute->block, $parameters)
: fn () => $this->twig->display($attribute->template, $parameters),
$status)
: new Response(
null !== $attribute->block
? $this->twig->load($attribute->template)->renderBlock($attribute->block, $parameters)
: $this->twig->render($attribute->template, $parameters),
$status)
? new StreamedResponse(
null !== $attribute->block
? fn () => $this->twig->load($attribute->template)->displayBlock($attribute->block, $parameters)
: fn () => $this->twig->display($attribute->template, $parameters),
$status)
: new Response(
null !== $attribute->block
? $this->twig->load($attribute->template)->renderBlock($attribute->block, $parameters)
: $this->twig->render($attribute->template, $parameters),
$status)
);
}

Expand Down

0 comments on commit 9958f5a

Please sign in to comment.