Passed
Push — master ( 3b6a73...d590ba )
by stéphane
02:55
created
sources/TagFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $reflectAPI = new \ReflectionClass(self::class);
35 35
         $methodsList = [];
36
-        $list = $reflectAPI->getMethods(RM::IS_FINAL | RM::IS_STATIC & RM::IS_PRIVATE);
36
+        $list = $reflectAPI->getMethods(RM::IS_FINAL|RM::IS_STATIC & RM::IS_PRIVATE);
37 37
         foreach ($list as $method) {
38 38
             $methodsList[$method->name] = $method->getClosure();
39 39
         }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
                 // $list[] = self::strHandler($child)->raw;
105 105
                 $list[] = self::strHandler($child);
106 106
             }
107
-            return new NodeScalar(implode('',$list), 0);
107
+            return new NodeScalar(implode('', $list), 0);
108 108
         }
109 109
     }
110 110
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     public static function transform(string $identifier, $value)
172 172
     {
173 173
         if (self::isKnown($identifier)) {
174
-            if (!($value instanceof Node) && !($value instanceof NodeList) ) {
174
+            if (!($value instanceof Node) && !($value instanceof NodeList)) {
175 175
                 throw new \Exception(sprintf(self::WRONG_VALUE, $identifier, gettype($value)));
176 176
             }
177 177
             return self::$registeredHandlers[$identifier]($value);
Please login to merge, or discard this patch.
sources/nodes/NodeLitFolded.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@
 block discarded – undo
32 32
             $result = $this->getChildValue($first, $indent);
33 33
             foreach ($list as $child) {
34 34
                 $separator = ($result && $result[-1] === "\n") ? '' : $refSeparator;
35
-                if($child->indent > $indent || $child instanceof NodeBlank) {
35
+                if ($child->indent > $indent || $child instanceof NodeBlank) {
36 36
                     $separator = "\n";
37 37
                 }
38
-                $result .= $separator .$this->getChildValue($child, $indent);
38
+                $result .= $separator.$this->getChildValue($child, $indent);
39 39
             }
40 40
         }
41 41
         return $result;
Please login to merge, or discard this patch.