Code Duplication    Length = 4-7 lines in 2 locations

src/Commands/ResourcesCommand.php 2 locations

@@ 83-89 (lines=7) @@
80
        	$this->checkPivotRelations($this->morphTables, 'morph');
81
        }
82
83
        if ($this->checkedErrors > 0) {
84
        	$this->line('');
85
        	if ($this->option('check-only')) {
86
        		$this->info('Checking only, we have found ' . $this->checkedErrors . ' errors.');
87
        	}
88
        	$this->printErrors();
89
        }
90
91
        $proceed = (! $this->option('check-only') && $this->checkedErrors == 0) || $this->option('skip-check');
92
        if (! $this->option('check-only') && $this->checkedErrors > 0) {
@@ 92-95 (lines=4) @@
89
        }
90
91
        $proceed = (! $this->option('check-only') && $this->checkedErrors == 0) || $this->option('skip-check');
92
        if (! $this->option('check-only') && $this->checkedErrors > 0) {
93
        	$this->line('');
94
        	$proceed = $this->confirm("We have found " . $this->checkedErrors . " errors. Are you sure you want to continue?");
95
        }
96
        if ($proceed) {
97
        	$modelIndex = 0;
98
            $migrationIdLength = strlen((string)count($this->nodes));