@@ -176,7 +176,9 @@ |
||
176 | 176 | { |
177 | 177 | /** @var \DOMElement $item */ |
178 | 178 | foreach ($element->childNodes as $key => $item) { |
179 | - if ($item instanceof \DOMText) continue; |
|
179 | + if ($item instanceof \DOMText) { |
|
180 | + continue; |
|
181 | + } |
|
180 | 182 | $parent = $this->toObject($item, $obj); |
181 | 183 | if ($item->hasChildNodes() && $parent !== null) { |
182 | 184 | $this->buildObjectTree($item, $parent); |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * @param \DOMElement $element |
150 | 150 | * |
151 | - * @param array $attrs |
|
151 | + * @param string $attrs |
|
152 | 152 | * |
153 | 153 | * @return array |
154 | 154 | */ |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * To avoid duplication. |
53 | 53 | * |
54 | - * @param $length |
|
54 | + * @param integer $length |
|
55 | 55 | * |
56 | 56 | * @return int |
57 | 57 | */ |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | interface XMLDocumentInterface |
6 | 6 | { |
7 | 7 | /** |
8 | - * @return XMLDocumentInterface|\DOMElement|\DOMDocument |
|
8 | + * @return \DOMNode |
|
9 | 9 | */ |
10 | 10 | public function getElement(); |
11 | 11 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | public function getNodeValue(); |
21 | 21 | |
22 | 22 | /** |
23 | - * @param array $except Returned array will not contain attributes specified in this array. |
|
23 | + * @param string[] $except Returned array will not contain attributes specified in this array. |
|
24 | 24 | * |
25 | 25 | * @return array Associative array where the keys are the name of the attribute node. |
26 | 26 | */ |