Completed
Pull Request — master (#183)
by Asmir
24s
created
src/HTML5/Parser/DOMTreeBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
         $this->quirks = $quirks;
247 247
 
248 248
         if ($this->insertMode > static::IM_INITIAL) {
249
-            $this->parseError('Illegal placement of DOCTYPE tag. Ignoring: ' . $name);
249
+            $this->parseError('Illegal placement of DOCTYPE tag. Ignoring: '.$name);
250 250
 
251 251
             return;
252 252
         }
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
             $prefix = ($pos = strpos($lname, ':')) ? substr($lname, 0, $pos) : '';
370 370
 
371 371
             if (false !== $needsWorkaround) {
372
-                $xml = "<$lname xmlns=\"$needsWorkaround\" " . (strlen($prefix) && isset($this->nsStack[0][$prefix]) ? ("xmlns:$prefix=\"" . $this->nsStack[0][$prefix] . '"') : '') . '/>';
372
+                $xml = "<$lname xmlns=\"$needsWorkaround\" ".(strlen($prefix) && isset($this->nsStack[0][$prefix]) ? ("xmlns:$prefix=\"".$this->nsStack[0][$prefix].'"') : '').'/>';
373 373
 
374 374
                 $frag = new \DOMDocument('1.0', 'UTF-8');
375 375
                 $frag->loadXML($xml);
@@ -528,7 +528,7 @@  discard block
 block discarded – undo
528 528
         }
529 529
 
530 530
         if (!$this->autoclose($lname)) {
531
-            $this->parseError('Could not find closing tag for ' . $lname);
531
+            $this->parseError('Could not find closing tag for '.$lname);
532 532
         }
533 533
 
534 534
         switch ($lname) {
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
             // Per '8.2.5.4.3 The "before head" insertion mode' the characters
560 560
             // " \t\n\r\f" should be ignored .
561 561
             $dataTmp = trim($data, " \t\n\r\f");
562
-            if (! empty($dataTmp)) {
562
+            if (!empty($dataTmp)) {
563 563
                 $this->startTag('head');
564 564
                 $this->endTag('head');
565 565
                 $this->startTag('body');
Please login to merge, or discard this patch.