Conditions | 2 |
Paths | 4 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2.3149 |
Changes | 0 |
1 | <?php |
||
28 | 8 | public function check(array $config): bool |
|
29 | { |
||
30 | try { |
||
31 | 8 | Artisan::call('migrate', ['--pretend' => 'true', '--force' => 'true']); |
|
32 | 8 | $output = Artisan::output(); |
|
33 | 8 | return strstr($output, 'Nothing to migrate.'); |
|
34 | } catch (\PDOException $e) { |
||
35 | $this->databaseError = $e->getMessage(); |
||
36 | } |
||
37 | return false; |
||
38 | } |
||
39 | |||
56 |