Skip to content

Commit

Permalink
[TASK] Bump friendsofphp/php-cs-fixer:^3.37.1 (#825)
Browse files Browse the repository at this point in the history
> composer req --dev friendsofphp/php-cs-fixer:^3.37.1
> vendor/bin/php-cs-fixer fix -v
  • Loading branch information
lolli42 committed Oct 30, 2023
1 parent 34249ba commit ca90c61
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/src/CustomVariableProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Core/Cache/StandardCacheWarmer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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]);
Expand Down Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Parser/TemplateParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ca90c61

Please sign in to comment.