Completed
Push — master ( 88b7c6...182f34 )
by Asmir
11s
created
src/HTML5/Parser/Tokenizer.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
             return $this->text($tok);
244 244
         }
245 245
 
246
-        $sequence = '</' . $this->untilTag . '>';
246
+        $sequence = '</'.$this->untilTag.'>';
247 247
         $txt = $this->readUntilSequence($sequence);
248 248
         $this->events->text($txt);
249 249
         $this->setTextMode(0);
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
             return $this->text($tok);
265 265
         }
266 266
 
267
-        $sequence = '</' . $this->untilTag;
267
+        $sequence = '</'.$this->untilTag;
268 268
         $txt = '';
269 269
 
270 270
         $caseSensitive = !Elements::isHtml5Element($this->untilTag);
@@ -563,11 +563,11 @@  discard block
 block discarded – undo
563 563
      */
564 564
     protected function quotedAttributeValue($quote)
565 565
     {
566
-        $stoplist = "\f" . $quote;
566
+        $stoplist = "\f".$quote;
567 567
         $val = '';
568 568
 
569 569
         while (true) {
570
-            $tokens = $this->scanner->charsUntil($stoplist . '&');
570
+            $tokens = $this->scanner->charsUntil($stoplist.'&');
571 571
             if (false !== $tokens) {
572 572
                 $val .= $tokens;
573 573
             } else {
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
             $chars = $this->scanner->charsWhile('DOCTYPEdoctype');
747 747
             $this->parseError('Expected DOCTYPE, got %s', $chars);
748 748
 
749
-            return $this->bogusComment('<!' . $chars);
749
+            return $this->bogusComment('<!'.$chars);
750 750
         }
751 751
 
752 752
         $this->scanner->whitespace();
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
         $tok = $this->scanner->current();
863 863
         if ('"' == $tok || "'" == $tok) {
864 864
             $this->scanner->consume();
865
-            $ret = $this->scanner->charsUntil($tok . $stopchars);
865
+            $ret = $this->scanner->charsUntil($tok.$stopchars);
866 866
             if ($this->scanner->current() == $tok) {
867 867
                 $this->scanner->consume();
868 868
             } else {
@@ -890,14 +890,14 @@  discard block
 block discarded – undo
890 890
         if ('CDATA' != $chars || '[' != $this->scanner->current()) {
891 891
             $this->parseError('Expected [CDATA[, got %s', $chars);
892 892
 
893
-            return $this->bogusComment('<![' . $chars);
893
+            return $this->bogusComment('<!['.$chars);
894 894
         }
895 895
 
896 896
         $tok = $this->scanner->next();
897 897
         do {
898 898
             if (false === $tok) {
899 899
                 $this->parseError('Unexpected EOF inside CDATA.');
900
-                $this->bogusComment('<![CDATA[' . $cdata);
900
+                $this->bogusComment('<![CDATA['.$cdata);
901 901
 
902 902
                 return true;
903 903
             }
@@ -940,7 +940,7 @@  discard block
 block discarded – undo
940 940
         // If not a PI, send to bogusComment.
941 941
         if (0 == strlen($procName) || 0 == $white || false == $this->scanner->current()) {
942 942
             $this->parseError("Expected processing instruction name, got $tok");
943
-            $this->bogusComment('<?' . $tok . $procName);
943
+            $this->bogusComment('<?'.$tok.$procName);
944 944
 
945 945
             return true;
946 946
         }
@@ -1020,7 +1020,7 @@  discard block
 block discarded – undo
1020 1020
      */
1021 1021
     protected function sequenceMatches($sequence, $caseSensitive = true)
1022 1022
     {
1023
-        @trigger_error(__METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0. Use Scanner::sequenceMatches() instead.', E_USER_DEPRECATED);
1023
+        @trigger_error(__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. Use Scanner::sequenceMatches() instead.', E_USER_DEPRECATED);
1024 1024
 
1025 1025
         return $this->scanner->sequenceMatches($sequence, $caseSensitive);
1026 1026
     }
@@ -1183,6 +1183,6 @@  discard block
 block discarded – undo
1183 1183
 
1184 1184
         $this->parseError('Expected &ENTITY;, got &ENTITY%s (no trailing ;) ', $tok);
1185 1185
 
1186
-        return '&' . $entity;
1186
+        return '&'.$entity;
1187 1187
     }
1188 1188
 }
Please login to merge, or discard this patch.