From 9634acde047b0ed00fb50b567bdb4cf123b30a29 Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Mon, 16 Jan 2017 17:58:21 +0100 Subject: [PATCH] all parameters in one line (#769) --- Listener/ExceptionListener.php | 9 +-------- Twig/Extension/PageExtension.php | 10 ++-------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/Listener/ExceptionListener.php b/Listener/ExceptionListener.php index 238d914ef..d206202ff 100644 --- a/Listener/ExceptionListener.php +++ b/Listener/ExceptionListener.php @@ -87,14 +87,7 @@ class ExceptionListener * @param array $httpErrorCodes An array of http error codes' routes * @param LoggerInterface|null $logger Logger instance */ - public function __construct(SiteSelectorInterface $siteSelector, - CmsManagerSelectorInterface $cmsManagerSelector, - $debug, - EngineInterface $templating, - PageServiceManagerInterface $pageServiceManager, - DecoratorStrategyInterface $decoratorStrategy, - array $httpErrorCodes, - LoggerInterface $logger = null) + public function __construct(SiteSelectorInterface $siteSelector, CmsManagerSelectorInterface $cmsManagerSelector, $debug, EngineInterface $templating, PageServiceManagerInterface $pageServiceManager, DecoratorStrategyInterface $decoratorStrategy, array $httpErrorCodes, LoggerInterface $logger = null) { $this->siteSelector = $siteSelector; $this->cmsManagerSelector = $cmsManagerSelector; diff --git a/Twig/Extension/PageExtension.php b/Twig/Extension/PageExtension.php index 33b476c17..0bdd2d51c 100644 --- a/Twig/Extension/PageExtension.php +++ b/Twig/Extension/PageExtension.php @@ -81,14 +81,8 @@ class PageExtension extends \Twig_Extension implements \Twig_Extension_InitRunti * @param HttpKernelExtension $httpKernelExtension * @param bool $hideDisabledBlocks */ - public function __construct( - CmsManagerSelectorInterface $cmsManagerSelector, - SiteSelectorInterface $siteSelector, - RouterInterface $router, - BlockHelper $blockHelper, - HttpKernelExtension $httpKernelExtension, - $hideDisabledBlocks = false - ) { + public function __construct(CmsManagerSelectorInterface $cmsManagerSelector, SiteSelectorInterface $siteSelector, RouterInterface $router, BlockHelper $blockHelper, HttpKernelExtension $httpKernelExtension, $hideDisabledBlocks = false) + { $this->cmsManagerSelector = $cmsManagerSelector; $this->siteSelector = $siteSelector; $this->router = $router;