@@ -473,7 +473,7 @@ discard block |
||
473 | 473 | * @param ParsingState $state the parsing state |
474 | 474 | * @return void |
475 | 475 | */ |
476 | - protected function callInterceptor(NodeInterface &$node, $interceptionPoint, ParsingState $state) |
|
476 | + protected function callInterceptor(NodeInterface & $node, $interceptionPoint, ParsingState $state) |
|
477 | 477 | { |
478 | 478 | if ($this->configuration === null) { |
479 | 479 | return; |
@@ -662,7 +662,7 @@ discard block |
||
662 | 662 | $arrayKey = $this->unquoteString($singleMatch['Key']); |
663 | 663 | if (!empty($singleMatch['VariableIdentifier'])) { |
664 | 664 | $arrayToBuild[$arrayKey] = new ObjectAccessorNode($singleMatch['VariableIdentifier']); |
665 | - } elseif (array_key_exists('Number', $singleMatch) && (!empty($singleMatch['Number']) || $singleMatch['Number'] === '0' )) { |
|
665 | + } elseif (array_key_exists('Number', $singleMatch) && (!empty($singleMatch['Number']) || $singleMatch['Number'] === '0')) { |
|
666 | 666 | $arrayToBuild[$arrayKey] = floatval($singleMatch['Number']); |
667 | 667 | } elseif ((array_key_exists('QuotedString', $singleMatch) && !empty($singleMatch['QuotedString']))) { |
668 | 668 | $argumentString = $this->unquoteString($singleMatch['QuotedString']); |
@@ -247,7 +247,7 @@ |
||
247 | 247 | try { |
248 | 248 | $parsedTemplate = $renderingContext->getTemplateParser()->getOrParseAndStoreTemplate( |
249 | 249 | $identifier, |
250 | - function (TemplateParser $parser, TemplatePaths $templatePaths) use ($templatePathAndFilename) { |
|
250 | + function(TemplateParser $parser, TemplatePaths $templatePaths) use ($templatePathAndFilename) { |
|
251 | 251 | return file_get_contents($templatePathAndFilename, FILE_TEXT); |
252 | 252 | } |
253 | 253 | ); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $argumentName = $this->resolveContentArgumentName(); |
50 | 50 | $arguments = $this->arguments; |
51 | 51 | if (!empty($argumentName) && isset($arguments[$argumentName])) { |
52 | - $renderChildrenClosure = function () use ($arguments, $argumentName) { |
|
52 | + $renderChildrenClosure = function() use ($arguments, $argumentName) { |
|
53 | 53 | return $arguments[$argumentName]; |
54 | 54 | }; |
55 | 55 | } else { |
@@ -295,7 +295,7 @@ |
||
295 | 295 | protected function buildRenderChildrenClosure() |
296 | 296 | { |
297 | 297 | $self = clone $this; |
298 | - return function () use ($self) { |
|
298 | + return function() use ($self) { |
|
299 | 299 | return $self->renderChildren(); |
300 | 300 | }; |
301 | 301 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | $method = self::RENDER_STATIC, |
84 | 84 | $onClass = null |
85 | 85 | ) { |
86 | - $onClass = $onClass ? : get_class($viewHelper); |
|
86 | + $onClass = $onClass ?: get_class($viewHelper); |
|
87 | 87 | return [ |
88 | 88 | self::DEFAULT_INIT, |
89 | 89 | sprintf( |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | $method = self::RENDER_STATIC, |
127 | 127 | $onClass = null |
128 | 128 | ) { |
129 | - $onClass = $onClass ? : get_class($viewHelper); |
|
129 | + $onClass = $onClass ?: get_class($viewHelper); |
|
130 | 130 | return [ |
131 | 131 | self::DEFAULT_INIT, |
132 | 132 | sprintf( |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | $actionName = ucfirst($actionName); |
185 | 185 | $parsedTemplate = $templateParser->getOrParseAndStoreTemplate( |
186 | 186 | $templatePaths->getTemplateIdentifier($controllerName, $actionName), |
187 | - function ($parent, TemplatePaths $paths) use ($controllerName, $actionName) { |
|
187 | + function($parent, TemplatePaths $paths) use ($controllerName, $actionName) { |
|
188 | 188 | return $paths->getTemplateSource($controllerName, $actionName); |
189 | 189 | } |
190 | 190 | ); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $layoutName = $parsedTemplate->getLayoutName($this->baseRenderingContext); |
199 | 199 | $parsedLayout = $templateParser->getOrParseAndStoreTemplate( |
200 | 200 | $templatePaths->getLayoutIdentifier($layoutName), |
201 | - function ($parent, TemplatePaths $paths) use ($layoutName) { |
|
201 | + function($parent, TemplatePaths $paths) use ($layoutName) { |
|
202 | 202 | return $paths->getLayoutSource($layoutName); |
203 | 203 | } |
204 | 204 | ); |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | $partialIdentifier = $this->partialIdentifierCache[$partialName]; |
289 | 289 | $parsedPartial = $this->baseRenderingContext->getTemplateParser()->getOrParseAndStoreTemplate( |
290 | 290 | $partialIdentifier, |
291 | - function ($parent, TemplatePaths $paths) use ($partialName) { |
|
291 | + function($parent, TemplatePaths $paths) use ($partialName) { |
|
292 | 292 | return $paths->getPartialSource($partialName); |
293 | 293 | } |
294 | 294 | ); |
@@ -37,7 +37,7 @@ |
||
37 | 37 | if ($path === 'random') { |
38 | 38 | return 'random' . sha1(rand(0, 999999999)); |
39 | 39 | } elseif ($path === 'incrementer') { |
40 | - return ++ $this->incrementer; |
|
40 | + return ++$this->incrementer; |
|
41 | 41 | } else { |
42 | 42 | return parent::getByPath($path); |
43 | 43 | } |