Code Duplication    Length = 14-14 lines in 2 locations

src/Commands/ResourcesCommand.php 2 locations

@@ 151-164 (lines=14) @@
148
        	);
149
150
        	$this->line('');
151
        	foreach ($this->pivotTables as $tables) {
152
        		$this->info('Building Pivot-Table ' . $tables[0] . ' - ' . $tables[1]);
153
        		$this->call('wn:pivot-table', [
154
        			'model1' => $tables[0],
155
        			'model2' => $tables[1],
156
        			'--force' => $this->option('force')
157
        		]);
158
159
        		// $this->call('wn:pivot-seeder', [
160
        		//     'model1' => $tables[0],
161
        		//     'model2' => $tables[1],
162
        		//     '--force' => $this->option('force')
163
        		// ]);
164
        	}
165
166
        	$this->morphTables = array_map(
167
        		'unserialize',
@@ 172-185 (lines=14) @@
169
        	);
170
171
        	$this->line('');
172
        	foreach ($this->morphTables as $tables) {
173
        		$this->info('Building Morph-Table ' . $tables[0] . ' - ' . $tables[1]);
174
        		$this->call('wn:morph-table', [
175
        			'model' => $tables[0],
176
        			'morphable' => $tables[1],
177
        			'--force' => $this->option('force')
178
        		]);
179
180
        		// $this->call('wn:pivot-seeder', [
181
        		//     'model1' => $tables[0],
182
        		//     'model2' => $tables[1],
183
        		//     '--force' => $this->option('force')
184
        		// ]);
185
        	}
186
187
        	if (!$this->option('no-migration')) {
188
        		$this->call('migrate');