Code Duplication    Length = 8-8 lines in 2 locations

src/Commands/ResourceCommand.php 2 locations

@@ 107-114 (lines=8) @@
104
    {
105
        $directory = 'resources/views/' . $this->variables['%VIEW_DIRECTORY%'];
106
107
        foreach (['index', 'show', 'edit', 'create'] as $view) {
108
            $this->createFromStub(
109
                __DIR__ . '/../../stubs/resource/' . $view . '.stub',
110
                $directory,
111
                $view . '.blade.php',
112
                array_merge($this->variables, ['%COLUMNS%' => $this->buildShowViewColumns()])
113
            );
114
        }
115
116
        $this->createFromStub(
117
            __DIR__ . '/../../stubs/resource/form.stub',
@@ 192-199 (lines=8) @@
189
    {
190
        $directory = 'app/Http/Requests/' . $this->variables['%RESOURCE_MODEL_BASE%'] . '/';
191
192
        foreach (['store', 'update'] as $method) {
193
            $this->createFromStub(
194
                __DIR__ . '/../../stubs/' . $method . '-resource-form-request.stub',
195
                $directory,
196
                Str::studly($method . 'FormRequest') . '.php',
197
                array_merge($this->variables, ['%COLUMNS%' => $this->buildFormRequestColumns()])
198
            );
199
        }
200
201
        $this->info(sprintf(
202
            'Form requests created successfully, [%s]',