Code Duplication    Length = 9-12 lines in 3 locations

src/Phinx/Migration/AbstractMigration.php 1 location

@@ 82-93 (lines=12) @@
79
     * @param \Symfony\Component\Console\Input\InputInterface|null $input
80
     * @param \Symfony\Component\Console\Output\OutputInterface|null $output
81
     */
82
    final public function __construct($version, InputInterface $input = null, OutputInterface $output = null)
83
    {
84
        $this->version = $version;
85
        if (!is_null($input)) {
86
            $this->setInput($input);
87
        }
88
        if (!is_null($output)) {
89
            $this->setOutput($output);
90
        }
91
92
        $this->init();
93
    }
94
95
    /**
96
     * Initialize method.

src/Phinx/Migration/AbstractTemplateCreation.php 1 location

@@ 52-60 (lines=9) @@
49
     * @param \Symfony\Component\Console\Input\InputInterface|null  $input
50
     * @param \Symfony\Component\Console\Output\OutputInterface|null $output
51
     */
52
    public function __construct(InputInterface $input = null, OutputInterface $output = null)
53
    {
54
        if (!is_null($input)) {
55
            $this->setInput($input);
56
        }
57
        if (!is_null($output)) {
58
            $this->setOutput($output);
59
        }
60
    }
61
62
    /**
63
     * {@inheritdoc}

src/Phinx/Seed/AbstractSeed.php 1 location

@@ 69-79 (lines=11) @@
66
     * @param \Symfony\Component\Console\Input\InputInterface $input
67
     * @param \Symfony\Component\Console\Output\OutputInterface $output
68
     */
69
    final public function __construct(InputInterface $input = null, OutputInterface $output = null)
70
    {
71
        if (!is_null($input)) {
72
            $this->setInput($input);
73
        }
74
        if (!is_null($output)) {
75
            $this->setOutput($output);
76
        }
77
78
        $this->init();
79
    }
80
81
    /**
82
     * Initialize method.