Code Duplication    Length = 6-6 lines in 3 locations

src/Shared/Testing/TestResultPrinter.php 3 locations

@@ 147-152 (lines=6) @@
144
145
        $lines = explode("\n", (string) $exception);
146
147
        foreach ($lines as $line) {
148
            $this->write(self::INDENT);
149
            $this->writeWithColor('fg-red, bg-red', ' ', false);
150
            $this->write('  ');
151
            $this->writeWithColor('fg-white', $line);
152
        }
153
154
        while ($previous = $exception->getPrevious()) {
155
            $this->write("\nCaused by\n" . $previous);
@@ 185-190 (lines=6) @@
182
        $this->writeWithColor('fg-cyan, bold', self::INDENT . "Expected:");
183
184
        $lines = explode("\n", $expected);
185
        foreach ($lines as $line) {
186
            $this->write(self::INDENT);
187
            $this->writeWithColor('fg-red, bg-red', ' ', false);
188
            $this->write('  ');
189
            $this->writeWithColor('fg-white, bold', $line);
190
        }
191
192
        $this->write("\n");
193
@@ 197-202 (lines=6) @@
194
        $this->writeWithColor('fg-cyan, bold', self::INDENT . "Actual");
195
196
        $lines = explode("\n", $actual);
197
        foreach ($lines as $line) {
198
            $this->write(self::INDENT);
199
            $this->writeWithColor('fg-green, bg-green', ' ', false);
200
            $this->write('  ');
201
            $this->writeWithColor('fg-white, bold', $line);
202
        }
203
    }
204
}
205