@@ -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 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | foreach ($node as $key => $child) { |
104 | 104 | $list[] = self::strHandler($child)->raw; |
105 | 105 | } |
106 | - return new NodeScalar(implode('',$list), 0); |
|
106 | + return new NodeScalar(implode('', $list), 0); |
|
107 | 107 | } |
108 | 108 | } |
109 | 109 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | public static function transform(string $identifier, $value) |
171 | 171 | { |
172 | 172 | if (self::isKnown($identifier)) { |
173 | - if (!($value instanceof Node) && !($value instanceof NodeList) ) { |
|
173 | + if (!($value instanceof Node) && !($value instanceof NodeList)) { |
|
174 | 174 | throw new \Exception(sprintf(self::WRONG_VALUE, $identifier, gettype($value))); |
175 | 175 | } |
176 | 176 | return self::$registeredHandlers[$identifier]($value); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function getParent(int $indent = null):Node |
67 | 67 | { |
68 | - if (!is_int($indent)){ |
|
68 | + if (!is_int($indent)) { |
|
69 | 69 | if ($this->_parent instanceof Node) { |
70 | 70 | return $this->_parent; |
71 | 71 | } else { |
@@ -213,9 +213,9 @@ discard block |
||
213 | 213 | if ($this->identifier) $props['identifier'] = "($this->identifier)"; |
214 | 214 | if ($this->_anchor) $props['_anchor'] = "($this->_anchor)"; |
215 | 215 | if ($this->_tag) $props['_tag'] = "($this->_tag)"; |
216 | - if ($this->value) $props['value'] = $this->value; |
|
216 | + if ($this->value) $props['value'] = $this->value; |
|
217 | 217 | // $props['value'] = $this->value; |
218 | - $props['raw'] = $this->raw; |
|
218 | + $props['raw'] = $this->raw; |
|
219 | 219 | if (!$this->_parent) $props['parent'] = 'NO PARENT!!!'; |
220 | 220 | return $props; |
221 | 221 | } |