@@ -33,7 +33,7 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -32,10 +32,10 @@ |
||
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; |