@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | return $this->text($tok); |
240 | 240 | } |
241 | 241 | |
242 | - $sequence = '</' . $this->untilTag . '>'; |
|
242 | + $sequence = '</'.$this->untilTag.'>'; |
|
243 | 243 | $txt = $this->readUntilSequence($sequence); |
244 | 244 | $this->events->text($txt); |
245 | 245 | $this->setTextMode(0); |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | return $this->text($tok); |
261 | 261 | } |
262 | 262 | |
263 | - $sequence = '</' . $this->untilTag; |
|
263 | + $sequence = '</'.$this->untilTag; |
|
264 | 264 | $txt = ''; |
265 | 265 | |
266 | 266 | $caseSensitive = !Elements::isHtml5Element($this->untilTag); |
@@ -569,11 +569,11 @@ discard block |
||
569 | 569 | */ |
570 | 570 | protected function quotedAttributeValue($quote) |
571 | 571 | { |
572 | - $stoplist = "\f" . $quote; |
|
572 | + $stoplist = "\f".$quote; |
|
573 | 573 | $val = ''; |
574 | 574 | |
575 | 575 | while (true) { |
576 | - $tokens = $this->scanner->charsUntil($stoplist . '&'); |
|
576 | + $tokens = $this->scanner->charsUntil($stoplist.'&'); |
|
577 | 577 | if (false !== $tokens) { |
578 | 578 | $val .= $tokens; |
579 | 579 | } else { |
@@ -735,7 +735,7 @@ discard block |
||
735 | 735 | if (strcasecmp($chars, 'DOCTYPE')) { |
736 | 736 | $this->parseError('Expected DOCTYPE, got %s', $chars); |
737 | 737 | |
738 | - return $this->bogusComment('<!' . $chars); |
|
738 | + return $this->bogusComment('<!'.$chars); |
|
739 | 739 | } |
740 | 740 | |
741 | 741 | $this->scanner->whitespace(); |
@@ -850,7 +850,7 @@ discard block |
||
850 | 850 | $tok = $this->scanner->current(); |
851 | 851 | if ('"' == $tok || "'" == $tok) { |
852 | 852 | $this->scanner->consume(); |
853 | - $ret = $this->scanner->charsUntil($tok . $stopchars); |
|
853 | + $ret = $this->scanner->charsUntil($tok.$stopchars); |
|
854 | 854 | if ($this->scanner->current() == $tok) { |
855 | 855 | $this->scanner->consume(); |
856 | 856 | } else { |
@@ -881,14 +881,14 @@ discard block |
||
881 | 881 | if ('CDATA' != $chars || '[' != $this->scanner->current()) { |
882 | 882 | $this->parseError('Expected [CDATA[, got %s', $chars); |
883 | 883 | |
884 | - return $this->bogusComment('<![' . $chars); |
|
884 | + return $this->bogusComment('<!['.$chars); |
|
885 | 885 | } |
886 | 886 | |
887 | 887 | $tok = $this->scanner->next(); |
888 | 888 | do { |
889 | 889 | if (false === $tok) { |
890 | 890 | $this->parseError('Unexpected EOF inside CDATA.'); |
891 | - $this->bogusComment('<![CDATA[' . $cdata); |
|
891 | + $this->bogusComment('<![CDATA['.$cdata); |
|
892 | 892 | |
893 | 893 | return true; |
894 | 894 | } |
@@ -931,7 +931,7 @@ discard block |
||
931 | 931 | // If not a PI, send to bogusComment. |
932 | 932 | if (0 == strlen($procName) || 0 == $white || false == $this->scanner->current()) { |
933 | 933 | $this->parseError("Expected processing instruction name, got $tok"); |
934 | - $this->bogusComment('<?' . $tok . $procName); |
|
934 | + $this->bogusComment('<?'.$tok.$procName); |
|
935 | 935 | |
936 | 936 | return true; |
937 | 937 | } |
@@ -1011,7 +1011,7 @@ discard block |
||
1011 | 1011 | */ |
1012 | 1012 | protected function sequenceMatches($sequence, $caseSensitive = true) |
1013 | 1013 | { |
1014 | - @trigger_error(__METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0. Use Scanner::sequenceMatches() instead.', E_USER_DEPRECATED); |
|
1014 | + @trigger_error(__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. Use Scanner::sequenceMatches() instead.', E_USER_DEPRECATED); |
|
1015 | 1015 | |
1016 | 1016 | return $this->scanner->sequenceMatches($sequence, $caseSensitive); |
1017 | 1017 | } |
@@ -1092,7 +1092,7 @@ discard block |
||
1092 | 1092 | |
1093 | 1093 | // These indicate not an entity. We return just |
1094 | 1094 | // the &. |
1095 | - if (1 === strspn($tok, static::WHITE . '&<')) { |
|
1095 | + if (1 === strspn($tok, static::WHITE.'&<')) { |
|
1096 | 1096 | // $this->scanner->next(); |
1097 | 1097 | return '&'; |
1098 | 1098 | } |
@@ -1174,6 +1174,6 @@ discard block |
||
1174 | 1174 | |
1175 | 1175 | $this->parseError('Expected &ENTITY;, got &ENTITY%s (no trailing ;) ', $tok); |
1176 | 1176 | |
1177 | - return '&' . $entity; |
|
1177 | + return '&'.$entity; |
|
1178 | 1178 | } |
1179 | 1179 | } |