Completed
Push — master ( c542e5...719ca7 )
by Nikita
05:48
created
lib/PhpParser/Parser/Php5.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2820,7 +2820,10 @@
 block discarded – undo
2820 2820
     }
2821 2821
 
2822 2822
     protected function reduceRule463() {
2823
-         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, false); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2823
+         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, false); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) {
2824
+             array_pop($this->semStack[$this->stackPos-(3-2)]);
2825
+         }
2826
+         ; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2824 2827
     }
2825 2828
 
2826 2829
     protected function reduceRule464() {
Please login to merge, or discard this patch.
lib/PhpParser/Parser/Php7.php 1 patch
Braces   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2408,7 +2408,10 @@
 block discarded – undo
2408 2408
     }
2409 2409
 
2410 2410
     protected function reduceRule398() {
2411
-         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, true); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) array_pop($this->semStack[$this->stackPos-(3-2)]);; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2411
+         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, null, true); } } $s->value = preg_replace('~(\r\n|\n|\r)\z~', '', $s->value); if ('' === $s->value) {
2412
+             array_pop($this->semStack[$this->stackPos-(3-2)]);
2413
+         }
2414
+         ; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2412 2415
     }
2413 2416
 
2414 2417
     protected function reduceRule399() {
Please login to merge, or discard this patch.