Code Duplication    Length = 12-12 lines in 2 locations

src/Lines.php 1 location

@@ 36-47 (lines=12) @@
33
     * @param OutputInterface $output
34
     * @param Pool|null       $pool
35
     */
36
    public function __construct(OutputInterface $output, Pool $pool = null)
37
    {
38
        $this->output = $output;
39
        if (!$output instanceof DiffConsoleOutput) {
40
            $this->output = new DiffConsoleOutput($output);
41
            $this->output->setTrim(false);
42
        } else {
43
            $this->output = $output;
44
        }
45
        $this->terminal = $this->output->getTerminal();
46
        $this->processPool = $pool ?: new Pool();
47
    }
48
49
    /**
50
     * Show the running duration of each process

src/Table.php 1 location

@@ 50-61 (lines=12) @@
47
     * @param OutputInterface $output
48
     * @param Pool|null       $pool
49
     */
50
    public function __construct(OutputInterface $output, Pool $pool = null)
51
    {
52
        $this->processPool = $pool ?: new Pool();
53
        if (!$output instanceof DiffConsoleOutput) {
54
            $this->output = new DiffConsoleOutput($output);
55
            $this->output->setTrim(true);
56
        } else {
57
            $this->output = $output;
58
        }
59
        $this->terminal = $this->output->getTerminal();
60
        $this->exceptions = [];
61
    }
62
63
    /**
64
     * Parses the rows to determine the key lengths to make a pretty table