Code Duplication    Length = 9-10 lines in 3 locations

src/Phinx/Db/Adapter/AbstractAdapter.php 1 location

@@ 54-63 (lines=10) @@
51
     * @param \Symfony\Component\Console\Input\InputInterface|null $input Input Interface
52
     * @param \Symfony\Component\Console\Output\OutputInterface|null $output Output Interface
53
     */
54
    public function __construct(array $options, InputInterface $input = null, OutputInterface $output = null)
55
    {
56
        $this->setOptions($options);
57
        if ($input !== null) {
58
            $this->setInput($input);
59
        }
60
        if ($output !== null) {
61
            $this->setOutput($output);
62
        }
63
    }
64
65
    /**
66
     * @inheritDoc

src/Phinx/Migration/AbstractTemplateCreation.php 1 location

@@ 29-37 (lines=9) @@
26
     * @param \Symfony\Component\Console\Input\InputInterface|null $input
27
     * @param \Symfony\Component\Console\Output\OutputInterface|null $output
28
     */
29
    public function __construct(InputInterface $input = null, OutputInterface $output = null)
30
    {
31
        if ($input !== null) {
32
            $this->setInput($input);
33
        }
34
        if ($output !== null) {
35
            $this->setOutput($output);
36
        }
37
    }
38
39
    /**
40
     * @inheritDoc

src/Phinx/Seed/AbstractSeed.php 1 location

@@ 46-54 (lines=9) @@
43
     * @param \Symfony\Component\Console\Input\InputInterface|null $input
44
     * @param \Symfony\Component\Console\Output\OutputInterface|null $output
45
     */
46
    final public function __construct(InputInterface $input = null, OutputInterface $output = null)
47
    {
48
        if ($input !== null) {
49
            $this->setInput($input);
50
        }
51
        if ($output !== null) {
52
            $this->setOutput($output);
53
        }
54
    }
55
56
    /**
57
     * @inheritDoc