Completed
Pull Request — master (#470)
by Claus
01:35
created
src/Core/Parser/Context.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     public const CONTEXT_ROOT = 0;
9 9
     public const CONTEXT_INLINE = 1;
10 10
     public const CONTEXT_TAG = 2;
11
-    public const CONTEXT_ARRAY= 3;
11
+    public const CONTEXT_ARRAY = 3;
12 12
     public const CONTEXT_QUOTED = 4;
13 13
     public const CONTEXT_ATTRIBUTES = 5;
14 14
     public const CONTEXT_DEAD = 6;
Please login to merge, or discard this patch.
src/Core/Parser/Splitter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         }
124 124
     }
125 125
 
126
-    public function switch(Context $context): Context
126
+    public function switch (Context $context): Context
127 127
     {
128 128
         $previous = $this->context;
129 129
         $this->context = $context;
Please login to merge, or discard this patch.
src/Component/AbstractComponent.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@
 block discarded – undo
216 216
     }
217 217
 
218 218
     /**
219
-     * @param iterable|ComponentInterface[] $children
219
+     * @param ComponentInterface[] $children
220 220
      * @return ComponentInterface
221 221
      */
222 222
     public function setChildren(iterable $children): ComponentInterface
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\RootNode;
15 15
 use TYPO3Fluid\Fluid\Core\Parser\SyntaxTree\TextNode;
16 16
 use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
17
-use TYPO3Fluid\Fluid\ViewHelpers\ArgumentViewHelper;
18 17
 use TYPO3Fluid\Fluid\ViewHelpers\ParameterViewHelper;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
src/Core/Parser/SyntaxTree/BooleanNode.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -135,6 +135,10 @@
 block discarded – undo
135 135
         return $this->convertToBoolean($value);
136 136
     }
137 137
 
138
+    /**
139
+     * @param boolean|null $x
140
+     * @param boolean $y
141
+     */
138 142
     protected function evaluateAndOr($x, $y, string $combiner): bool
139 143
     {
140 144
         switch ($combiner) {
Please login to merge, or discard this patch.
src/Core/Parser/TemplateParser.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -51,6 +51,7 @@
 block discarded – undo
51 51
      *
52 52
      * @param string $templateString The template to parse as a string
53 53
      * @param Configuration|null Template parsing configuration to use
54
+     * @param Configuration $configuration
54 55
      * @return ComponentInterface Parsed template
55 56
      * @throws Exception
56 57
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         return $this->getOrParseAndStoreTemplate(
37 37
             $this->createIdentifierForFile($templatePathAndFilename, ''),
38
-            function () use ($templatePathAndFilename): string {
38
+            function() use ($templatePathAndFilename) : string {
39 39
                 return file_get_contents($templatePathAndFilename);
40 40
             }
41 41
         );
Please login to merge, or discard this patch.
src/View/AbstractView.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * Renders the view
27 27
      *
28
-     * @return mixed The rendered view
28
+     * @return string The rendered view
29 29
      */
30 30
     public function render()
31 31
     {
Please login to merge, or discard this patch.
src/View/TemplatePaths.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
      * Sanitize a path, ensuring it is absolute and
424 424
      * if a directory, suffixed by a trailing slash.
425 425
      *
426
-     * @param string|array $path
426
+     * @param string $path
427 427
      * @return string|string[]
428 428
      */
429 429
     protected function sanitizePath($path)
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
     }
588 588
 
589 589
     /**
590
-     * @param mixed $source
590
+     * @param string $source
591 591
      */
592 592
     public function setTemplateSource($source)
593 593
     {
Please login to merge, or discard this patch.
src/Core/Parser/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     {
36 36
         $previous = $this->features[$feature];
37 37
         if (is_bool($state) || is_numeric($state) || is_null($state)) {
38
-            $this->features[$feature] = (bool)$state;
38
+            $this->features[$feature] = (bool) $state;
39 39
         } elseif (is_string($state)) {
40 40
             $this->features[$feature] = in_array(strtolower($state), ['on', 'true', 'enabled'], true);
41 41
         }
Please login to merge, or discard this patch.
src/Core/Rendering/FluidRenderer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
         try {
224 224
             $parsedPartial = $renderingContext->getTemplateParser()->getOrParseAndStoreTemplate(
225 225
                 $templatePaths->getPartialIdentifier($partialName),
226
-                function (RenderingContextInterface $renderingContext) use ($partialName): string {
226
+                function(RenderingContextInterface $renderingContext) use ($partialName): string {
227 227
                     return $renderingContext->getTemplatePaths()->getPartialSource($partialName);
228 228
                 }
229 229
             );
Please login to merge, or discard this patch.