@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * @var string[][] |
| 52 | 52 | */ |
| 53 | 53 | protected static $domLinkReplaceHelper = [ |
| 54 | - 'orig' => ['[', ']', '{', '}',], |
|
| 54 | + 'orig' => ['[', ']', '{', '}', ], |
|
| 55 | 55 | 'tmp' => [ |
| 56 | 56 | '____SIMPLE_HTML_DOM__VOKU__SQUARE_BRACKET_LEFT____', |
| 57 | 57 | '____SIMPLE_HTML_DOM__VOKU__SQUARE_BRACKET_RIGHT____', |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** @noinspection ExceptionsAnnotatingAndHandlingInspection */ |
| 161 | - throw new BadMethodCallException('Method does not exist: ' . $name); |
|
| 161 | + throw new BadMethodCallException('Method does not exist: '.$name); |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | |
| 276 | 276 | if (!empty($linksOld[1])) { |
| 277 | 277 | $linksOld = $linksOld[1]; |
| 278 | - foreach ((array)$linksOld as $linkKey => $linkOld) { |
|
| 278 | + foreach ((array) $linksOld as $linkKey => $linkOld) { |
|
| 279 | 279 | $linksNew[$linkKey] = \str_replace( |
| 280 | 280 | self::$domLinkReplaceHelper['orig'], |
| 281 | 281 | self::$domLinkReplaceHelper['tmp'], |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | $xmlHackUsed = false; |
| 378 | 378 | if (\stripos('<?xml', $html) !== 0) { |
| 379 | 379 | $xmlHackUsed = true; |
| 380 | - $html = '<?xml encoding="' . $this->getEncoding() . '" ?>' . $html; |
|
| 380 | + $html = '<?xml encoding="'.$this->getEncoding().'" ?>'.$html; |
|
| 381 | 381 | } |
| 382 | 382 | |
| 383 | 383 | $html = self::replaceToPreserveHtmlEntities($html); |
@@ -566,8 +566,8 @@ discard block |
||
| 566 | 566 | } |
| 567 | 567 | |
| 568 | 568 | if ($this->isDOMDocumentCreatedWithoutWrapper === true) { |
| 569 | - $content = (string)\preg_replace('/^<p>/', '', $content); |
|
| 570 | - $content = (string)\preg_replace('/<\/p>/', '', $content); |
|
| 569 | + $content = (string) \preg_replace('/^<p>/', '', $content); |
|
| 570 | + $content = (string) \preg_replace('/<\/p>/', '', $content); |
|
| 571 | 571 | } |
| 572 | 572 | |
| 573 | 573 | if ($this->isDOMDocumentCreatedWithoutHtml === true) { |
@@ -722,7 +722,7 @@ discard block |
||
| 722 | 722 | $xml = $this->document->saveXML(null, LIBXML_NOEMPTYTAG); |
| 723 | 723 | |
| 724 | 724 | // remove the XML-header |
| 725 | - $xml = \ltrim((string)\preg_replace('/<\?xml.*\?>/', '', $xml)); |
|
| 725 | + $xml = \ltrim((string) \preg_replace('/<\?xml.*\?>/', '', $xml)); |
|
| 726 | 726 | |
| 727 | 727 | return $this->fixHtmlOutput($xml, $multiDecodeNewHtmlEntity); |
| 728 | 728 | } |