Code Duplication    Length = 25-26 lines in 2 locations

src/Commands/CreateControllerCommand.php 1 location

@@ 40-65 (lines=26) @@
37
     *
38
     * @return void
39
     */
40
    protected function configure()
41
    {
42
        $this
43
            ->setName('create:controller')
44
            ->setDescription('Creates a new controller')
45
            ->addArgument(
46
                'name',
47
                InputArgument::REQUIRED,
48
                'Name of the table'
49
            )->addOption(
50
                'camel',
51
                NULL,
52
                InputOption::VALUE_NONE,
53
                'Uses the camel case naming convention'
54
            )->addOption(
55
                'keep',
56
                NULL,
57
                InputOption::VALUE_NONE,
58
                'Keeps the name to be used'
59
            )->addOption(
60
                'lowercase',
61
                NULL,
62
                InputOption::VALUE_NONE,
63
                'Keeps the first character of the name to lowercase'
64
            );
65
    }
66
67
    /**
68
     * Executes the command.

src/Commands/CreateViewCommand.php 1 location

@@ 40-64 (lines=25) @@
37
     *
38
     * @return void
39
     */
40
    protected function configure()
41
    {
42
        $this->setName('create:view')
43
            ->setDescription('Create a new view')
44
            ->addArgument(
45
                'name',
46
                InputArgument::REQUIRED,
47
                'Name of the table'
48
            )->addOption(
49
                'bootstrap',
50
                NULL,
51
                InputOption::VALUE_NONE,
52
                'Includes the Bootstrap CSS/JS Framework tags'
53
            )->addOption(
54
                'camel',
55
                NULL,
56
                InputOption::VALUE_NONE,
57
                'Uses the camel case naming convention'
58
            )->addOption(
59
                'keep',
60
                NULL,
61
                InputOption::VALUE_NONE,
62
                'Keeps the name to be used'
63
            );
64
    }
65
66
    /**
67
     * Executes the command.