Code Duplication    Length = 6-6 lines in 2 locations

src/Cli/IO/InteractiveProcessRunner.php 1 location

@@ 71-76 (lines=6) @@
68
                ($highlightErrors ? '<error>ERR</error>' : 'ERR')
69
                : '<question>OUT</question>';
70
71
            foreach ($lines as $line) {
72
                $line = trim($line);
73
                if (!empty($line)) {
74
                    $this->userInteraction->write($prefix.' '.$line);
75
                }
76
            }
77
        };
78
    }
79
}

src/IO/Process/Pipe/UserInteractionPipe.php 1 location

@@ 58-63 (lines=6) @@
55
     */
56
    private function pipeLinesWithPrefix($prefix, array $lines)
57
    {
58
        foreach ($lines as $line) {
59
            $line = trim($line);
60
            if (!empty($line)) {
61
                $this->userInteraction->write($prefix.' '.$line);
62
            }
63
        }
64
    }
65
}
66