Completed
Pull Request — master (#232)
by Sascha
02:36
created
src/Core/ViewHelper/Traits/CompileWithContentArgumentAndRenderStatic.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -91,12 +91,12 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
examples/include/class_customvariableprovider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/View/AbstractTemplateView.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
             $parsedTemplate = $templateParser->getOrParseAndStoreTemplate(
179 179
                 $templatePaths->getTemplateIdentifier($controllerName, $actionName),
180 180
                 function($parent, TemplatePaths $paths) use ($controllerName, $actionName) {
181
-                    return $paths->getTemplateSource($controllerName, $actionName);;
181
+                    return $paths->getTemplateSource($controllerName, $actionName); ;
182 182
                 }
183 183
             );
184 184
         } catch (PassthroughSourceException $error) {
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
         try {
288 288
             $parsedPartial = $this->baseRenderingContext->getTemplateParser()->getOrParseAndStoreTemplate(
289 289
                 $templatePaths->getPartialIdentifier($partialName),
290
-                function ($parent, TemplatePaths $paths) use ($partialName) {
290
+                function($parent, TemplatePaths $paths) use ($partialName) {
291 291
                     return $paths->getPartialSource($partialName);
292 292
                 }
293 293
             );
Please login to merge, or discard this patch.