Completed
Push — master ( f48dd5...fe4f91 )
by Lars
02:05
created
src/voku/helper/HtmlDomParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.