Completed
Pull Request — master (#204)
by Claus
04:26
created
src/Core/Parser/TemplateParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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']);
Please login to merge, or discard this patch.
src/Core/Cache/StandardCacheWarmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
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
             );
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
@@ -49,7 +49,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
src/Core/ViewHelper/AbstractViewHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -295,7 +295,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Core/Compiler/ViewHelperCompiler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/View/AbstractTemplateView.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         );
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
@@ -37,7 +37,7 @@
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.