From ca90c614d80af8abb597277d07d69cca8e2677f4 Mon Sep 17 00:00:00 2001 From: Christian Kuhn Date: Mon, 30 Oct 2023 11:40:37 +0100 Subject: [PATCH] [TASK] Bump friendsofphp/php-cs-fixer:^3.37.1 (#825) > composer req --dev friendsofphp/php-cs-fixer:^3.37.1 > vendor/bin/php-cs-fixer fix -v --- composer.json | 2 +- examples/src/CustomVariableProvider.php | 2 +- src/Core/Cache/StandardCacheWarmer.php | 6 +++--- src/Core/Parser/TemplateParser.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index a55dc45ec..0dfd3ed16 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ }, "require-dev": { "ext-json": "*", - "friendsofphp/php-cs-fixer": "^3.16.0", + "friendsofphp/php-cs-fixer": "^3.37.1", "phpstan/phpstan": "^1.10.14", "phpstan/phpstan-phpunit": "^1.3.11", "phpunit/phpunit": "^10.2.6" diff --git a/examples/src/CustomVariableProvider.php b/examples/src/CustomVariableProvider.php index fde4c7f1f..2bf6c9a1f 100644 --- a/examples/src/CustomVariableProvider.php +++ b/examples/src/CustomVariableProvider.php @@ -40,7 +40,7 @@ public function getByPath($path) return 'random' . sha1(rand(0, 999999999)); } if ($path === 'incrementer') { - return ++ $this->incrementer; + return ++$this->incrementer; } return parent::getByPath($path); } diff --git a/src/Core/Cache/StandardCacheWarmer.php b/src/Core/Cache/StandardCacheWarmer.php index 666a5af43..ef5d3183d 100644 --- a/src/Core/Cache/StandardCacheWarmer.php +++ b/src/Core/Cache/StandardCacheWarmer.php @@ -112,7 +112,7 @@ protected function warmupTemplateRootPaths(RenderingContextInterface $renderingC $paths = $renderingContext->getTemplatePaths(); foreach ($this->formats as $format) { $paths->setFormat($format); - $formatCutoffPoint = - (strlen($format) + 1); + $formatCutoffPoint = -(strlen($format) + 1); foreach ($paths->getTemplateRootPaths() as $templateRootPath) { $pathCutoffPoint = strlen($templateRootPath); foreach ($this->detectControllerNamesInTemplateRootPaths([$templateRootPath]) as $controllerName) { @@ -164,7 +164,7 @@ protected function warmupPartialRootPaths(RenderingContextInterface $renderingCo $result = new FluidCacheWarmupResult(); $paths = $renderingContext->getTemplatePaths(); foreach ($this->formats as $format) { - $formatCutoffPoint = - (strlen($format) + 1); + $formatCutoffPoint = -(strlen($format) + 1); foreach ($paths->getPartialRootPaths() as $partialRootPath) { $limitedPaths = clone $paths; $limitedPaths->setPartialRootPaths([$partialRootPath]); @@ -201,7 +201,7 @@ protected function warmupLayoutRootPaths(RenderingContextInterface $renderingCon $result = new FluidCacheWarmupResult(); $paths = $renderingContext->getTemplatePaths(); foreach ($this->formats as $format) { - $formatCutoffPoint = - (strlen($format) + 1); + $formatCutoffPoint = -(strlen($format) + 1); foreach ($paths->getLayoutRootPaths() as $layoutRootPath) { $limitedPaths = clone $paths; $limitedPaths->setLayoutRootPaths([$layoutRootPath]); diff --git a/src/Core/Parser/TemplateParser.php b/src/Core/Parser/TemplateParser.php index 18c30fa6e..68b904cfe 100644 --- a/src/Core/Parser/TemplateParser.php +++ b/src/Core/Parser/TemplateParser.php @@ -524,7 +524,7 @@ protected function objectAccessorHandler(ParsingState $state, $objectAccessorStr * @param int $interceptionPoint the interception point. One of the \TYPO3Fluid\Fluid\Core\Parser\InterceptorInterface::INTERCEPT_* constants. * @param ParsingState $state the parsing state */ - protected function callInterceptor(NodeInterface & $node, $interceptionPoint, ParsingState $state) + protected function callInterceptor(NodeInterface &$node, $interceptionPoint, ParsingState $state) { if ($this->configuration === null) { return;