Code Duplication    Length = 8-8 lines in 2 locations

src/Phinx/Console/Command/SeedCreate.php 1 location

@@ 144-151 (lines=8) @@
141
        // get the seed path from the config
142
        $path = $this->getSeedPath($input, $output);
143
144
        if (!file_exists($path)) {
145
            $helper = $this->getHelper('question');
146
            $question = $this->getCreateSeedDirectoryQuestion();
147
148
            if ($helper->ask($input, $output, $question)) {
149
                mkdir($path, 0755, true);
150
            }
151
        }
152
153
        $this->verifySeedDirectory($path);
154

src/Phinx/Console/Command/Create.php 1 location

@@ 158-165 (lines=8) @@
155
        // get the migration path from the config
156
        $path = $this->getMigrationPath($input, $output);
157
158
        if (!file_exists($path)) {
159
            $helper = $this->getHelper('question');
160
            $question = $this->getCreateMigrationDirectoryQuestion();
161
162
            if ($helper->ask($input, $output, $question)) {
163
                mkdir($path, 0755, true);
164
            }
165
        }
166
167
        $this->verifyMigrationDirectory($path);
168