Code Duplication    Length = 9-10 lines in 2 locations

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

@@ 61-70 (lines=10) @@
58
     * @param \Symfony\Component\Console\Input\InputInterface|null $input Input Interface
59
     * @param \Symfony\Component\Console\Output\OutputInterface|null $output Output Interface
60
     */
61
    public function __construct(array $options, InputInterface $input = null, OutputInterface $output = null)
62
    {
63
        $this->setOptions($options);
64
        if ($input !== null) {
65
            $this->setInput($input);
66
        }
67
        if ($output !== null) {
68
            $this->setOutput($output);
69
        }
70
    }
71
72
    /**
73
     * @inheritDoc

src/Phinx/Migration/AbstractTemplateCreation.php 1 location

@@ 29-37 (lines=9) @@
26
     * @param \Symfony\Component\Console\Input\InputInterface|null $input Input
27
     * @param \Symfony\Component\Console\Output\OutputInterface|null $output 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