@@ -64,9 +64,9 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | if($this->isValue()) { |
| 66 | 66 | if($elementCollection->isEmpty()) { |
| 67 | - if (!is_null($foundInEl)) { |
|
| 68 | - return $elementCollection->put($elementName, trim($this->reader->value)); |
|
| 69 | - } |
|
| 67 | + if (!is_null($foundInEl)) { |
|
| 68 | + return $elementCollection->put($elementName, trim($this->reader->value)); |
|
| 69 | + } |
|
| 70 | 70 | |
| 71 | 71 | return trim($this->reader->value); |
| 72 | 72 | } else { |
@@ -141,11 +141,11 @@ discard block |
||
| 141 | 141 | return $this->reader->nodeType == XMLReader::TEXT || $this->reader->nodeType === XMLReader::CDATA; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | - private function isEmptyElement(String $elementName = null){ |
|
| 145 | - if($elementName) { |
|
| 146 | - return $this->reader->isEmptyElement && $this->reader->name === $elementName; |
|
| 147 | - } else { |
|
| 148 | - return false; |
|
| 149 | - } |
|
| 150 | - } |
|
| 144 | + private function isEmptyElement(String $elementName = null){ |
|
| 145 | + if($elementName) { |
|
| 146 | + return $this->reader->isEmptyElement && $this->reader->name === $elementName; |
|
| 147 | + } else { |
|
| 148 | + return false; |
|
| 149 | + } |
|
| 150 | + } |
|
| 151 | 151 | } |