Code Duplication    Length = 1-1 lines in 6 locations

lib/PhpParser/Parser/Php5.php 3 locations

@@ 2641-2641 (lines=1) @@
2638
    }
2639
2640
    protected function reduceRule414() {
2641
         foreach ($this->semStack[$this->stackPos-(1-1)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '`', false); } }; $this->semValue = $this->semStack[$this->stackPos-(1-1)];
2642
    }
2643
2644
    protected function reduceRule415() {
@@ 2877-2877 (lines=1) @@
2874
    }
2875
2876
    protected function reduceRule473() {
2877
         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '"', false); } }; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2878
    }
2879
2880
    protected function reduceRule474() {
@@ 2881-2881 (lines=1) @@
2878
    }
2879
2880
    protected function reduceRule474() {
2881
         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);
2882
    }
2883
2884
    protected function reduceRule475() {

lib/PhpParser/Parser/Php7.php 3 locations

@@ 2369-2369 (lines=1) @@
2366
    }
2367
2368
    protected function reduceRule386() {
2369
         foreach ($this->semStack[$this->stackPos-(1-1)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '`', true); } }; $this->semValue = $this->semStack[$this->stackPos-(1-1)];
2370
    }
2371
2372
    protected function reduceRule387() {
@@ 2457-2457 (lines=1) @@
2454
    }
2455
2456
    protected function reduceRule408() {
2457
         foreach ($this->semStack[$this->stackPos-(3-2)] as $s) { if ($s instanceof Node\Scalar\EncapsedStringPart) { $s->value = Node\Scalar\String_::parseEscapeSequences($s->value, '"', true); } }; $this->semValue = new Scalar\Encapsed($this->semStack[$this->stackPos-(3-2)], $this->startAttributeStack[$this->stackPos-(3-1)] + $this->endAttributes);
2458
    }
2459
2460
    protected function reduceRule409() {
@@ 2461-2461 (lines=1) @@
2458
    }
2459
2460
    protected function reduceRule409() {
2461
         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);
2462
    }
2463
2464
    protected function reduceRule410() {