Code Duplication    Length = 20-21 lines in 2 locations

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

@@ 40-60 (lines=21) @@
37
    /**
38
     * {@inheritdoc}
39
     */
40
    protected function configure()
41
    {
42
        parent::configure();
43
44
        $this->addOption('--environment', '-e', InputOption::VALUE_REQUIRED, 'The target environment');
45
46
        $this->setName('seed:run')
47
            ->setDescription('Run database seeders')
48
            ->addOption('--seed', '-s', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'What is the name of the seeder?')
49
            ->setHelp(
50
                <<<EOT
51
The <info>seed:run</info> command runs all available or individual seeders
52
53
<info>phinx seed:run -e development</info>
54
<info>phinx seed:run -e development -s UserSeeder</info>
55
<info>phinx seed:run -e development -s UserSeeder -s PermissionSeeder -s LogSeeder</info>
56
<info>phinx seed:run -e development -v</info>
57
58
EOT
59
            );
60
    }
61
62
    /**
63
     * Run database seeders.

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

@@ 40-59 (lines=20) @@
37
    /**
38
     * {@inheritdoc}
39
     */
40
    protected function configure()
41
    {
42
        parent::configure();
43
44
        $this->addOption('--environment', '-e', InputOption::VALUE_REQUIRED, 'The target environment.');
45
46
        $this->setName('status')
47
            ->setDescription('Show migration status')
48
            ->addOption('--format', '-f', InputOption::VALUE_REQUIRED, 'The output format: text or json. Defaults to text.')
49
            ->setHelp(
50
                <<<EOT
51
The <info>status</info> command prints a list of all migrations, along with their current status
52
53
<info>phinx status -e development</info>
54
<info>phinx status -e development -f json</info>
55
56
The <info>version_order</info> configuration option is used to determine the order of the status migrations.
57
EOT
58
            );
59
    }
60
61
    /**
62
     * Show the migration status.