@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | public static function lookupDecimal($int) |
42 | 42 | { |
43 | - $entity = '&#' . $int . ';'; |
|
43 | + $entity = '&#'.$int.';'; |
|
44 | 44 | |
45 | 45 | // UNTESTED: This may fail on some planes. Couldn't find full documentation |
46 | 46 | // on the value of the mask array. |
@@ -245,7 +245,7 @@ discard block |
||
245 | 245 | $this->quirks = $quirks; |
246 | 246 | |
247 | 247 | if ($this->insertMode > static::IM_INITIAL) { |
248 | - $this->parseError('Illegal placement of DOCTYPE tag. Ignoring: ' . $name); |
|
248 | + $this->parseError('Illegal placement of DOCTYPE tag. Ignoring: '.$name); |
|
249 | 249 | |
250 | 250 | return; |
251 | 251 | } |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | $prefix = ($pos = strpos($lname, ':')) ? substr($lname, 0, $pos) : ''; |
363 | 363 | |
364 | 364 | if (false !== $needsWorkaround) { |
365 | - $xml = "<$lname xmlns=\"$needsWorkaround\" " . (strlen($prefix) && isset($this->nsStack[0][$prefix]) ? ("xmlns:$prefix=\"" . $this->nsStack[0][$prefix] . '"') : '') . '/>'; |
|
365 | + $xml = "<$lname xmlns=\"$needsWorkaround\" ".(strlen($prefix) && isset($this->nsStack[0][$prefix]) ? ("xmlns:$prefix=\"".$this->nsStack[0][$prefix].'"') : '').'/>'; |
|
366 | 366 | |
367 | 367 | $frag = new \DOMDocument('1.0', 'UTF-8'); |
368 | 368 | $frag->loadXML($xml); |
@@ -531,7 +531,7 @@ discard block |
||
531 | 531 | } |
532 | 532 | |
533 | 533 | if (!$this->autoclose($lname)) { |
534 | - $this->parseError('Could not find closing tag for ' . $lname); |
|
534 | + $this->parseError('Could not find closing tag for '.$lname); |
|
535 | 535 | } |
536 | 536 | |
537 | 537 | switch ($lname) { |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | $dataTmp = trim($data, " \t\n\r\f"); |
567 | 567 | if (!empty($dataTmp)) { |
568 | 568 | // fprintf(STDOUT, "Unexpected insert mode: %d", $this->insertMode); |
569 | - $this->parseError('Unexpected text. Ignoring: ' . $dataTmp); |
|
569 | + $this->parseError('Unexpected text. Ignoring: '.$dataTmp); |
|
570 | 570 | } |
571 | 571 | |
572 | 572 | return; |
@@ -243,7 +243,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |