Code Duplication    Length = 22-22 lines in 2 locations

src/Command/Db/CreateCommand.php 1 location

@@ 17-38 (lines=22) @@
14
 * @package  Bluzman\Command\Db
15
 * @author   Anton Shevchuk
16
 */
17
class CreateCommand extends AbstractDbCommand
18
{
19
    /**
20
     * Command configuration
21
     */
22
    protected function configure()
23
    {
24
        $this
25
            // the name of the command (the part after "bin/bluzman")
26
            ->setName('db:create')
27
            // the short description shown while running "php bin/bluzman list"
28
            ->setDescription('Create DB migrations')
29
            // the full command description shown when running the command with
30
            // the "--help" option
31
            ->setHelp('This command is shorthand to phinx tool')
32
        ;
33
34
        $name = new InputArgument('name', InputArgument::REQUIRED, 'Migration name is required');
35
36
        $this->getDefinition()->addArgument($name);
37
    }
38
}
39

src/Command/Db/SeedCreateCommand.php 1 location

@@ 17-38 (lines=22) @@
14
 * @package  Bluzman\Command\Db
15
 * @author   Anton Shevchuk
16
 */
17
class SeedCreateCommand extends AbstractDbCommand
18
{
19
    /**
20
     * Command configuration
21
     */
22
    protected function configure()
23
    {
24
        $this
25
            // the name of the command (the part after "bin/bluzman")
26
            ->setName('db:seed:create')
27
            // the short description shown while running "php bin/bluzman list"
28
            ->setDescription('Create seed file')
29
            // the full command description shown when running the command with
30
            // the "--help" option
31
            ->setHelp('This command is shorthand to phinx tool')
32
        ;
33
34
        $name = new InputArgument('name', InputArgument::REQUIRED, 'Seed name is required');
35
36
        $this->getDefinition()->addArgument($name);
37
    }
38
}
39