@@ -4,7 +4,6 @@ |
||
4 | 4 | use TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler; |
5 | 5 | use TYPO3Fluid\Fluid\Core\Compiler\ViewHelperCompiler; |
6 | 6 | use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode; |
7 | -use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; |
|
8 | 7 | |
9 | 8 | /** |
10 | 9 | * Class CompilableWithRenderStatic |
@@ -91,12 +91,12 @@ |
||
91 | 91 | $argumentName = $this->resolveContentArgumentName(); |
92 | 92 | $arguments = $this->arguments; |
93 | 93 | if (!empty($argumentName) && isset($arguments[$argumentName])) { |
94 | - $renderChildrenClosure = function () use ($arguments, $argumentName) { |
|
94 | + $renderChildrenClosure = function() use ($arguments, $argumentName) { |
|
95 | 95 | return $arguments[$argumentName]; |
96 | 96 | }; |
97 | 97 | } else { |
98 | 98 | $self = clone $this; |
99 | - $renderChildrenClosure = function () use ($self) { |
|
99 | + $renderChildrenClosure = function() use ($self) { |
|
100 | 100 | return $self->renderChildren(); |
101 | 101 | }; |
102 | 102 | } |
@@ -39,7 +39,7 @@ |
||
39 | 39 | if ($path === 'random') { |
40 | 40 | return 'random' . sha1(rand(0, 999999999)); |
41 | 41 | } elseif ($path === 'incrementer') { |
42 | - return ++ $this->incrementer; |
|
42 | + return ++$this->incrementer; |
|
43 | 43 | } else { |
44 | 44 | return parent::getByPath($path); |
45 | 45 | } |
@@ -275,7 +275,7 @@ |
||
275 | 275 | { |
276 | 276 | $parsedPartial = $this->baseRenderingContext->getTemplateParser()->getOrParseAndStoreTemplate( |
277 | 277 | $this->baseRenderingContext->getTemplatePaths()->getPartialIdentifier($partialName), |
278 | - function ($parent, TemplatePaths $paths) use ($partialName) { |
|
278 | + function($parent, TemplatePaths $paths) use ($partialName) { |
|
279 | 279 | return $paths->getPartialSource($partialName); |
280 | 280 | } |
281 | 281 | ); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * @param TagBuilder $tag |
71 | 71 | * @param array $arguments |
72 | - * @param array $attributes |
|
72 | + * @param string[] $attributes |
|
73 | 73 | * @param RenderingContextInterface $renderingContext |
74 | 74 | */ |
75 | 75 | public static function renderTag( |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | protected abstract function buildRenderChildrenClosure(); |
173 | 173 | |
174 | 174 | /** |
175 | - * @return mixed |
|
175 | + * @return string |
|
176 | 176 | */ |
177 | 177 | protected abstract function renderChildren(); |
178 | 178 |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace TYPO3Fluid\Fluid\Core\ViewHelper\Traits; |
3 | 3 | |
4 | 4 | use TYPO3Fluid\Fluid\Core\Compiler\TemplateCompiler; |
5 | -use TYPO3Fluid\Fluid\Core\Compiler\ViewHelperCompiler; |
|
6 | 5 | use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\ViewHelperNode; |
7 | 6 | use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; |
8 | 7 | use TYPO3Fluid\Fluid\Core\ViewHelper\Exception; |