@@ -126,20 +126,16 @@ |
||
126 | 126 | if ($where === 'beforebegin') |
127 | 127 | { |
128 | 128 | $this->parentNode->insertBefore($node, $this); |
129 | - } |
|
130 | - elseif ($where === 'beforeend') |
|
129 | + } elseif ($where === 'beforeend') |
|
131 | 130 | { |
132 | 131 | $this->appendChild($node); |
133 | - } |
|
134 | - elseif ($where === 'afterend') |
|
132 | + } elseif ($where === 'afterend') |
|
135 | 133 | { |
136 | 134 | $this->parentNode->insertBefore($node, $this->nextSibling); |
137 | - } |
|
138 | - elseif ($where === 'afterbegin') |
|
135 | + } elseif ($where === 'afterbegin') |
|
139 | 136 | { |
140 | 137 | $this->insertBefore($node, $this->firstChild); |
141 | - } |
|
142 | - else |
|
138 | + } else |
|
143 | 139 | { |
144 | 140 | throw new InvalidArgumentException; |
145 | 141 | } |