|
@@ 59-65 (lines=7) @@
|
| 56 |
|
$this->checkPivotRelations($nodes, $morphTables, 'morph'); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
if ($this->checkedErrors > 0) { |
| 60 |
|
$this->line(''); |
| 61 |
|
if ($this->option('check-only')) { |
| 62 |
|
$this->info('Checking only, we have found ' . $this->checkedErrors . ' errors.'); |
| 63 |
|
} |
| 64 |
|
$this->printErrors(); |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
$proceed = (! $this->option('check-only') && $this->checkedErrors == 0) || $this->option('skip-check'); |
| 68 |
|
if (! $this->option('check-only') && $this->checkedErrors > 0) { |
|
@@ 68-71 (lines=4) @@
|
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
$proceed = (! $this->option('check-only') && $this->checkedErrors == 0) || $this->option('skip-check'); |
| 68 |
|
if (! $this->option('check-only') && $this->checkedErrors > 0) { |
| 69 |
|
$this->line(''); |
| 70 |
|
$proceed = $this->confirm("We have found " . $this->checkedErrors . " errors. Are you sure you want to continue?"); |
| 71 |
|
} |
| 72 |
|
if ($proceed) { |
| 73 |
|
$this->buildResources($nodes); |
| 74 |
|
|