Completed
Pull Request — master (#155)
by Christophe
01:42
created
src/HTML5/Parser/Tokenizer.php 1 patch
Braces   +2 added lines, -6 removed lines patch added patch discarded remove patch
@@ -298,13 +298,9 @@
 block discarded – undo
298 298
             $this->scanner->next(); // Consume the other '-'
299 299
             $this->scanner->next(); // Next char.
300 300
             return $this->comment();
301
-        }
302
-
303
-        elseif ($tok == 'D' || $tok == 'd') { // Doctype
301
+        } elseif ($tok == 'D' || $tok == 'd') { // Doctype
304 302
             return $this->doctype();
305
-        }
306
-
307
-        elseif ($tok == '[') { // CDATA section
303
+        } elseif ($tok == '[') { // CDATA section
308 304
             return $this->cdataSection();
309 305
         }
310 306
 
Please login to merge, or discard this patch.
src/HTML5/Parser/DOMTreeBuilder.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -344,8 +344,8 @@  discard block
 block discarded – undo
344 344
         }
345 345
 
346 346
         if ($this->onlyInline && Elements::isA($lname, Elements::BLOCK_TAG)) {
347
-        	$this->autoclose($this->onlyInline);
348
-        	$this->onlyInline = null;
347
+            $this->autoclose($this->onlyInline);
348
+            $this->onlyInline = null;
349 349
         }
350 350
 
351 351
         try {
@@ -375,7 +375,7 @@  discard block
 block discarded – undo
375 375
         }
376 376
 
377 377
         if (Elements::isA($lname, Elements::BLOCK_ONLY_INLINE)) {
378
-        	$this->onlyInline = $lname;
378
+            $this->onlyInline = $lname;
379 379
         }
380 380
 
381 381
         // When we add some namespacess, we have to track them. Later, when "endElement" is invoked, we have to remove them.
Please login to merge, or discard this patch.