@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | /** |
| 98 | 98 | * Returns the first child of node. |
| 99 | 99 | * |
| 100 | - * @return SimpleHtmlDomInterface|null |
|
| 100 | + * @return null|SimpleHtmlDom |
|
| 101 | 101 | */ |
| 102 | 102 | public function firstChild() |
| 103 | 103 | { |
@@ -331,7 +331,7 @@ discard block |
||
| 331 | 331 | /** |
| 332 | 332 | * Returns the last child of node. |
| 333 | 333 | * |
| 334 | - * @return SimpleHtmlDomInterface|null |
|
| 334 | + * @return null|SimpleHtmlDom |
|
| 335 | 335 | */ |
| 336 | 336 | public function lastChild() |
| 337 | 337 | { |
@@ -348,7 +348,7 @@ discard block |
||
| 348 | 348 | /** |
| 349 | 349 | * Returns the next sibling of node. |
| 350 | 350 | * |
| 351 | - * @return SimpleHtmlDomInterface|null |
|
| 351 | + * @return null|SimpleHtmlDom |
|
| 352 | 352 | */ |
| 353 | 353 | public function nextSibling() |
| 354 | 354 | { |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | /** |
| 388 | 388 | * Returns the previous sibling of node. |
| 389 | 389 | * |
| 390 | - * @return SimpleHtmlDomInterface|null |
|
| 390 | + * @return null|SimpleHtmlDom |
|
| 391 | 391 | */ |
| 392 | 392 | public function previousSibling() |
| 393 | 393 | { |
@@ -417,8 +417,8 @@ discard block |
||
| 417 | 417 | $tmpStr = $this->normalizeStringForComparision($string); |
| 418 | 418 | if ($tmpDomString !== $tmpStr) { |
| 419 | 419 | throw new \RuntimeException( |
| 420 | - 'Not valid HTML fragment!' . "\n" . |
|
| 421 | - $tmpDomString . "\n" . |
|
| 420 | + 'Not valid HTML fragment!'."\n". |
|
| 421 | + $tmpDomString."\n". |
|
| 422 | 422 | $tmpStr |
| 423 | 423 | ); |
| 424 | 424 | } |
@@ -490,8 +490,8 @@ discard block |
||
| 490 | 490 | $tmpStr = $this->normalizeStringForComparision($string); |
| 491 | 491 | if ($tmpDomOuterTextString !== $tmpStr) { |
| 492 | 492 | throw new \RuntimeException( |
| 493 | - 'Not valid HTML fragment!' . "\n" |
|
| 494 | - . $tmpDomOuterTextString . "\n" . |
|
| 493 | + 'Not valid HTML fragment!'."\n" |
|
| 494 | + . $tmpDomOuterTextString."\n". |
|
| 495 | 495 | $tmpStr |
| 496 | 496 | ); |
| 497 | 497 | } |