Code Duplication    Length = 7-7 lines in 2 locations

src/Handler/Verbose.php 2 locations

@@ 43-49 (lines=7) @@
40
    public function __construct($outputStream = null, $errorStream = null)
41
    {
42
        $errorStreamException = null;
43
        if (!is_resource($errorStream) && $errorStream !== null) {
44
            $fp = @fopen($errorStream, 'ab+');
45
            if (!$fp) {
46
                $errorStreamException = new IOException('Unable to use error stream: ' . (string) $errorStream);
47
            }
48
            $errorStream = $fp;
49
        }
50
51
        if (!is_resource($outputStream) && $outputStream !== null) {
52
            $fp = @fopen($outputStream, 'ab+');
@@ 51-57 (lines=7) @@
48
            $errorStream = $fp;
49
        }
50
51
        if (!is_resource($outputStream) && $outputStream !== null) {
52
            $fp = @fopen($outputStream, 'ab+');
53
            if (!$fp) {
54
                throw new IOException('Unable to use output stream: ' . (string) $outputStream);
55
            }
56
            $outputStream = $fp;
57
        }
58
59
        if ($errorStreamException instanceof \Exception) {
60
            throw $errorStreamException;