Code Duplication    Length = 7-7 lines in 2 locations

src/Commands/ControllerMakeCommand.php 1 location

@@ 88-94 (lines=7) @@
85
    /**
86
     * @return array
87
     */
88
    protected function getOptions()
89
    {
90
        return [
91
            ['plain', 'p', InputOption::VALUE_NONE, 'Generate a plain controller', null],
92
            ['api', null, InputOption::VALUE_NONE, 'Exclude the create and edit methods from the controller.'],
93
        ];
94
    }
95
96
    /**
97
     * @return array|string

src/Commands/MigrationMakeCommand.php 1 location

@@ 50-56 (lines=7) @@
47
     *
48
     * @return array
49
     */
50
    protected function getOptions()
51
    {
52
        return [
53
            ['fields', null, InputOption::VALUE_OPTIONAL, 'The specified fields table.', null],
54
            ['plain', null, InputOption::VALUE_NONE, 'Create plain migration.'],
55
        ];
56
    }
57
58
    /**
59
     * Get schema parser.