Completed
Push — master ( e43f08...3ed3bd )
by Asmir
02:32 queued 11s
created
src/HTML5/Parser/CharacterReference.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/HTML5/Parser/DOMTreeBuilder.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/HTML5/Parser/Tokenizer.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             return $this->text($tok);
238 238
         }
239 239
 
240
-        $sequence = '</' . $this->untilTag . '>';
240
+        $sequence = '</'.$this->untilTag.'>';
241 241
         $txt = $this->readUntilSequence($sequence);
242 242
         $this->events->text($txt);
243 243
         $this->setTextMode(0);
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
             return $this->text($tok);
259 259
         }
260 260
 
261
-        $sequence = '</' . $this->untilTag;
261
+        $sequence = '</'.$this->untilTag;
262 262
         $txt = '';
263 263
 
264 264
         $caseSensitive = !Elements::isHtml5Element($this->untilTag);
@@ -567,11 +567,11 @@  discard block
 block discarded – undo
567 567
      */
568 568
     protected function quotedAttributeValue($quote)
569 569
     {
570
-        $stoplist = "\f" . $quote;
570
+        $stoplist = "\f".$quote;
571 571
         $val = '';
572 572
 
573 573
         while (true) {
574
-            $tokens = $this->scanner->charsUntil($stoplist . '&');
574
+            $tokens = $this->scanner->charsUntil($stoplist.'&');
575 575
             if (false !== $tokens) {
576 576
                 $val .= $tokens;
577 577
             } else {
@@ -733,7 +733,7 @@  discard block
 block discarded – undo
733 733
         if (strcasecmp($chars, 'DOCTYPE')) {
734 734
             $this->parseError('Expected DOCTYPE, got %s', $chars);
735 735
 
736
-            return $this->bogusComment('<!' . $chars);
736
+            return $this->bogusComment('<!'.$chars);
737 737
         }
738 738
 
739 739
         $this->scanner->whitespace();
@@ -848,7 +848,7 @@  discard block
 block discarded – undo
848 848
         $tok = $this->scanner->current();
849 849
         if ('"' == $tok || "'" == $tok) {
850 850
             $this->scanner->consume();
851
-            $ret = $this->scanner->charsUntil($tok . $stopchars);
851
+            $ret = $this->scanner->charsUntil($tok.$stopchars);
852 852
             if ($this->scanner->current() == $tok) {
853 853
                 $this->scanner->consume();
854 854
             } else {
@@ -879,14 +879,14 @@  discard block
 block discarded – undo
879 879
         if ('CDATA' != $chars || '[' != $this->scanner->current()) {
880 880
             $this->parseError('Expected [CDATA[, got %s', $chars);
881 881
 
882
-            return $this->bogusComment('<![' . $chars);
882
+            return $this->bogusComment('<!['.$chars);
883 883
         }
884 884
 
885 885
         $tok = $this->scanner->next();
886 886
         do {
887 887
             if (false === $tok) {
888 888
                 $this->parseError('Unexpected EOF inside CDATA.');
889
-                $this->bogusComment('<![CDATA[' . $cdata);
889
+                $this->bogusComment('<![CDATA['.$cdata);
890 890
 
891 891
                 return true;
892 892
             }
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
         // If not a PI, send to bogusComment.
930 930
         if (0 == strlen($procName) || 0 == $white || false == $this->scanner->current()) {
931 931
             $this->parseError("Expected processing instruction name, got $tok");
932
-            $this->bogusComment('<?' . $tok . $procName);
932
+            $this->bogusComment('<?'.$tok.$procName);
933 933
 
934 934
             return true;
935 935
         }
@@ -1009,7 +1009,7 @@  discard block
 block discarded – undo
1009 1009
      */
1010 1010
     protected function sequenceMatches($sequence, $caseSensitive = true)
1011 1011
     {
1012
-        @trigger_error(__METHOD__ . ' method is deprecated since version 2.4 and will be removed in 3.0. Use Scanner::sequenceMatches() instead.', E_USER_DEPRECATED);
1012
+        @trigger_error(__METHOD__.' method is deprecated since version 2.4 and will be removed in 3.0. Use Scanner::sequenceMatches() instead.', E_USER_DEPRECATED);
1013 1013
 
1014 1014
         return $this->scanner->sequenceMatches($sequence, $caseSensitive);
1015 1015
     }
@@ -1172,6 +1172,6 @@  discard block
 block discarded – undo
1172 1172
 
1173 1173
         $this->parseError('Expected &ENTITY;, got &ENTITY%s (no trailing ;) ', $tok);
1174 1174
 
1175
-        return '&' . $entity;
1175
+        return '&'.$entity;
1176 1176
     }
1177 1177
 }
Please login to merge, or discard this patch.