Code Duplication    Length = 4-4 lines in 2 locations

src/ScriptRuntime/ScriptParser.php 2 locations

@@ 54-57 (lines=4) @@
51
52
            $this->commandBuilder->finishLast();
53
54
            if ($this->startsWith(self::MODIFIER_IGNORE_ERROR_PREFIX, $currentLine)) {
55
                $currentLine = $this->removeFromStart(self::MODIFIER_IGNORE_ERROR_PREFIX, $currentLine);
56
                $this->commandBuilder->setIgnoreError();
57
            }
58
59
            if ($this->startsWith(self::MODIFIER_IS_TTY, $currentLine)) {
60
                $currentLine = $this->removeFromStart(self::MODIFIER_IS_TTY, $currentLine);
@@ 59-62 (lines=4) @@
56
                $this->commandBuilder->setIgnoreError();
57
            }
58
59
            if ($this->startsWith(self::MODIFIER_IS_TTY, $currentLine)) {
60
                $currentLine = $this->removeFromStart(self::MODIFIER_IS_TTY, $currentLine);
61
                $this->commandBuilder->setTty();
62
            }
63
64
            $this->commandBuilder
65
                ->setExecutable($currentLine, $lineNumber);