@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | } |
148 | 148 | |
149 | 149 | /** @noinspection ExceptionsAnnotatingAndHandlingInspection */ |
150 | - throw new BadMethodCallException('Method does not exist: ' . $name); |
|
150 | + throw new BadMethodCallException('Method does not exist: '.$name); |
|
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | |
265 | 265 | if (!empty($linksOld[1])) { |
266 | 266 | $linksOld = $linksOld[1]; |
267 | - foreach ((array)$linksOld as $linkKey => $linkOld) { |
|
267 | + foreach ((array) $linksOld as $linkKey => $linkOld) { |
|
268 | 268 | $linksNew[$linkKey] = str_replace( |
269 | 269 | self::$domLinkReplaceHelper['orig'], |
270 | 270 | self::$domLinkReplaceHelper['tmp'], |
@@ -367,7 +367,7 @@ discard block |
||
367 | 367 | $xmlHackUsed = false; |
368 | 368 | if (stripos('<?xml', $html) !== 0) { |
369 | 369 | $xmlHackUsed = true; |
370 | - $html = '<?xml encoding="' . $this->getEncoding() . '" ?>' . $html; |
|
370 | + $html = '<?xml encoding="'.$this->getEncoding().'" ?>'.$html; |
|
371 | 371 | } |
372 | 372 | |
373 | 373 | $html = self::replaceToPreserveHtmlEntities($html); |
@@ -680,7 +680,7 @@ discard block |
||
680 | 680 | public function loadHtml($html, $libXMLExtraOptions = null) |
681 | 681 | { |
682 | 682 | if (!is_string($html)) { |
683 | - throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be string.'); |
|
683 | + throw new InvalidArgumentException(__METHOD__.' expects parameter 1 to be string.'); |
|
684 | 684 | } |
685 | 685 | |
686 | 686 | $this->document = $this->createDOMDocument($html, $libXMLExtraOptions); |
@@ -702,7 +702,7 @@ discard block |
||
702 | 702 | public function loadHtmlFile($filePath, $libXMLExtraOptions = null) |
703 | 703 | { |
704 | 704 | if (!is_string($filePath)) { |
705 | - throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be string.'); |
|
705 | + throw new InvalidArgumentException(__METHOD__.' expects parameter 1 to be string.'); |
|
706 | 706 | } |
707 | 707 | |
708 | 708 | if (!preg_match("/^https?:\/\//i", $filePath) && !file_exists($filePath)) { |