Completed
Pull Request — master (#470)
by Claus
01:35
created
src/Core/ViewHelper/AbstractViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
     protected function buildRenderChildrenClosure()
154 154
     {
155 155
         $self = clone $this;
156
-        $renderChildrenClosure = function () use ($self) {
156
+        $renderChildrenClosure = function() use ($self) {
157 157
             return $self->renderChildren();
158 158
         };
159 159
         return $renderChildrenClosure;
Please login to merge, or discard this patch.
src/ViewHelpers/AtomViewHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  * See LICENSE.txt that was shipped with this package.
8 8
  */
9 9
 
10
-use TYPO3Fluid\Fluid\Component\ComponentInterface;
11 10
 use TYPO3Fluid\Fluid\Component\Error\ChildNotFoundException;
12 11
 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
13 12
 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
Please login to merge, or discard this patch.
src/ViewHelpers/LayoutViewHelper.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
  */
9 9
 
10 10
 use TYPO3Fluid\Fluid\Component\ComponentInterface;
11
-use TYPO3Fluid\Fluid\Component\EmbeddedComponentInterface;
12 11
 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
13 12
 use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
14 13
 
Please login to merge, or discard this patch.
src/Core/Parser/Sequencer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                     $this->escapingEnabled = $this->configuration->isFeatureEnabled(Configuration::FEATURE_ESCAPING);
299 299
                     if (!$this->configuration->isFeatureEnabled(Configuration::FEATURE_PARSING)) {
300 300
                         throw (new PassthroughSourceException('Source must be represented as raw string', 1563379852))
301
-                            ->setSource((string)$this->sequenceRemainderAsText());
301
+                            ->setSource((string) $this->sequenceRemainderAsText());
302 302
                     }
303 303
                     return;
304 304
             }
@@ -490,7 +490,7 @@  discard block
 block discarded – undo
490 490
                             // hand equivalent of having written `attr="{attr}"` in the Fluid template.
491 491
                             $key = $captured;
492 492
                         }
493
-                    } elseif ($namespace !== null || (!isset($namespace, $method) && $this->resolver->isAliasRegistered((string)$captured))) {
493
+                    } elseif ($namespace !== null || (!isset($namespace, $method) && $this->resolver->isAliasRegistered((string) $captured))) {
494 494
                         $method = $captured;
495 495
 
496 496
                         try {
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
                         ++$ignoredEndingBraces;
593 593
                         $countedEscapes = 0;
594 594
                         if ($captured !== null) {
595
-                            $node->addChild(new TextNode((string)$captured));
595
+                            $node->addChild(new TextNode((string) $captured));
596 596
                         }
597 597
                     } elseif ($this->splitter->context->context === Context::CONTEXT_PROTECTED) {
598 598
                         // Ignore one ending additional curly brace. Subtracted in the BYTE_INLINE_END case below.
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
                     $isArray = $allowArray;
736 736
                     $callDetected = false;
737 737
 
738
-                    $text .=  $this->source->source[$this->splitter->index - 1];
738
+                    $text .= $this->source->source[$this->splitter->index - 1];
739 739
                     $node = $node ?? new ObjectAccessorNode();
740 740
                     if ($potentialAccessor ?? $captured) {
741 741
                         $node->addChild(new TextNode($potentialAccessor . $captured));
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
                         throw $this->createErrorAtPosition('Unexpected colon or equals sign, no preceding key', 1559250839);
964 964
                     }
965 965
                     if ($definitions !== null && !$numeric && !isset($definitions[$key])) {
966
-                        throw $this->createUnsupportedArgumentError((string)$key, $definitions);
966
+                        throw $this->createUnsupportedArgumentError((string) $key, $definitions);
967 967
                     }
968 968
                     break;
969 969
 
@@ -1027,7 +1027,7 @@  discard block
 block discarded – undo
1027 1027
                     } elseif ($captured !== null) {
1028 1028
                         $key = $key ?? ($numeric ? ++$itemCount : $captured);
1029 1029
                         if (!$numeric && $definitions !== null && !isset($definitions[$key])) {
1030
-                            throw $this->createUnsupportedArgumentError((string)$key, $definitions);
1030
+                            throw $this->createUnsupportedArgumentError((string) $key, $definitions);
1031 1031
                         }
1032 1032
                         $value = is_numeric($captured) ? $captured + 0 : new ObjectAccessorNode($captured);
1033 1033
                     }
@@ -1071,7 +1071,7 @@  discard block
 block discarded – undo
1071 1071
                         }
1072 1072
                     }
1073 1073
                     if (!$numeric && isset($key, $definitions) && !isset($definitions[$key])) {
1074
-                        throw $this->createUnsupportedArgumentError((string)$key, $definitions);
1074
+                        throw $this->createUnsupportedArgumentError((string) $key, $definitions);
1075 1075
                     }
1076 1076
                     $this->escapingEnabled = $escapingEnabledBackup;
1077 1077
                     $this->splitter->switch($restore);
Please login to merge, or discard this patch.
src/Core/ViewHelper/Traits/CompileWithContentArgumentAndRenderStatic.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $argumentName = $this->resolveContentArgumentName();
80 80
         $arguments = $this->arguments ?? [];
81 81
         $self = $this;
82
-        $renderChildrenClosure = function () use ($arguments, $argumentName, $self) {
82
+        $renderChildrenClosure = function() use ($arguments, $argumentName, $self) {
83 83
             return !empty($argumentName) ? ($arguments[$argumentName] ?? $self->renderChildren()) : $self->renderChildren();
84 84
         };
85 85
         return $renderChildrenClosure;
Please login to merge, or discard this patch.