Code Duplication    Length = 9-11 lines in 3 locations

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-56 (lines=11) @@
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
        $this->init();
56
    }
57
58
    /**
59
     * Initialize method.

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