Conditions | 2 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 1 | protected function migrateFreshUsing() |
|
19 | { |
||
20 | 1 | $seeder = $this->seeder(); |
|
21 | |||
22 | 1 | $results = array_merge( |
|
23 | 1 | [ |
|
24 | 1 | '--drop-views' => $this->shouldDropViews(), |
|
25 | 1 | '--drop-types' => $this->shouldDropTypes(), |
|
26 | 1 | ], |
|
27 | 1 | $seeder ? ['--seeder' => $seeder] : ['--seed' => $this->shouldSeed()], |
|
28 | 1 | $this->setMigrationPaths(), |
|
29 | 1 | ); |
|
30 | |||
31 | 1 | return $results; |
|
32 | } |
||
54 |