Completed
Push — master ( e483df...32d697 )
by Lars
14:35
created
src/voku/helper/HtmlDomParser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
       return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
166 166
     }
167 167
 
168
-    throw new BadMethodCallException('Method does not exist: ' . $name);
168
+    throw new BadMethodCallException('Method does not exist: '.$name);
169 169
   }
170 170
 
171 171
   /**
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 
272 272
       if (!empty($linksOld[1])) {
273 273
         $linksOld = $linksOld[1];
274
-        foreach ((array)$linksOld as $linkKey => $linkOld) {
274
+        foreach ((array) $linksOld as $linkKey => $linkOld) {
275 275
           $linksNew[$linkKey] = str_replace(
276 276
               self::$domLinkReplaceHelper['orig'],
277 277
               self::$domLinkReplaceHelper['tmp'],
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
       $xmlHackUsed = false;
367 367
       if (stripos('<?xml', $html) !== 0) {
368 368
         $xmlHackUsed = true;
369
-        $html = '<?xml encoding="' . $this->getEncoding() . '" ?>' . $html;
369
+        $html = '<?xml encoding="'.$this->getEncoding().'" ?>'.$html;
370 370
       }
371 371
 
372 372
       $html = self::replaceToPreserveHtmlEntities($html);
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
   public function loadHtml($html, $libXMLExtraOptions = null)
654 654
   {
655 655
     if (!is_string($html)) {
656
-      throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be string.');
656
+      throw new InvalidArgumentException(__METHOD__.' expects parameter 1 to be string.');
657 657
     }
658 658
 
659 659
     $this->document = $this->createDOMDocument($html, $libXMLExtraOptions);
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
   public function loadHtmlFile($filePath, $libXMLExtraOptions = null)
673 673
   {
674 674
     if (!is_string($filePath)) {
675
-      throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be string.');
675
+      throw new InvalidArgumentException(__METHOD__.' expects parameter 1 to be string.');
676 676
     }
677 677
 
678 678
     if (!preg_match("/^https?:\/\//i", $filePath) && !file_exists($filePath)) {
Please login to merge, or discard this patch.