Completed
Push — master ( cb4c73...cb8736 )
by Lars
02:58
created
src/voku/helper/HtmlDomParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
       return call_user_func_array(array($this, self::$functionAliases[$name]), $arguments);
128 128
     }
129 129
 
130
-    throw new BadMethodCallException('Method does not exist: ' . $name);
130
+    throw new BadMethodCallException('Method does not exist: '.$name);
131 131
   }
132 132
 
133 133
   /**
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
       $xmlHackUsed = false;
292 292
       if (stripos('<?xml', $html) !== 0) {
293 293
         $xmlHackUsed = true;
294
-        $html = '<?xml encoding="' . $this->getEncoding() . '" ?>' . $html;
294
+        $html = '<?xml encoding="'.$this->getEncoding().'" ?>'.$html;
295 295
       }
296 296
 
297 297
       $html = $this->replaceToPreserveHtmlEntities($html);
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
   public function loadHtml($html)
555 555
   {
556 556
     if (!is_string($html)) {
557
-      throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be string.');
557
+      throw new InvalidArgumentException(__METHOD__.' expects parameter 1 to be string.');
558 558
     }
559 559
 
560 560
     $this->document = $this->createDOMDocument($html);
@@ -572,7 +572,7 @@  discard block
 block discarded – undo
572 572
   public function loadHtmlFile($filePath)
573 573
   {
574 574
     if (!is_string($filePath)) {
575
-      throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be string.');
575
+      throw new InvalidArgumentException(__METHOD__.' expects parameter 1 to be string.');
576 576
     }
577 577
 
578 578
     if (!preg_match("/^https?:\/\//i", $filePath) && !file_exists($filePath)) {
Please login to merge, or discard this patch.