Code Duplication    Length = 14-14 lines in 3 locations

src/Command/Generate/ScaffoldCommand.php 3 locations

@@ 67-80 (lines=14) @@
64
     *
65
     * @return void
66
     */
67
    protected function runGenerateModel() : void
68
    {
69
        $command = $this->getApplication()->find('generate:model');
70
71
        $arguments = [
72
            'command' => 'generate:model',
73
            'model' => $this->getInput()->getArgument('model'),
74
            'table' => $this->getInput()->getArgument('table')
75
        ];
76
        $command->run(
77
            new ArrayInput($arguments),
78
            $this->getOutput()
79
        );
80
    }
81
82
    /**
83
     * Generate Module
@@ 106-119 (lines=14) @@
103
     *
104
     * @return void
105
     */
106
    protected function runGenerateCrud() : void
107
    {
108
        $command = $this->getApplication()->find('generate:crud');
109
110
        $arguments = [
111
            'command' => 'generate:crud',
112
            'model' => $this->getInput()->getArgument('model'),
113
            'module' => $this->getInput()->getArgument('module')
114
        ];
115
        $command->run(
116
            new ArrayInput($arguments),
117
            $this->getOutput()
118
        );
119
    }
120
121
    /**
122
     * Generate Grid
@@ 126-139 (lines=14) @@
123
     *
124
     * @return void
125
     */
126
    protected function runGenerateGrid() : void
127
    {
128
        $command = $this->getApplication()->find('generate:grid');
129
130
        $arguments = [
131
            'command' => 'generate:grid',
132
            'model' => $this->getInput()->getArgument('model'),
133
            'module' => $this->getInput()->getArgument('module')
134
        ];
135
        $command->run(
136
            new ArrayInput($arguments),
137
            $this->getOutput()
138
        );
139
    }
140
141
    /**
142
     * {@inheritdoc}