| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 2 | public function handle(): void |
|
| 29 | { |
||
| 30 | 2 | if (setting('use_mysql') != 'on') { |
|
| 31 | 1 | $this->error('Not using docker mysql'); |
|
| 32 | |||
| 33 | 1 | return; |
|
| 34 | } |
||
| 35 | |||
| 36 | 1 | $this->dockerCompose |
|
| 37 | 1 | ->runContainer('mysql') |
|
| 38 | 1 | ->append('mysql -h mysql -uroot -psecret') |
|
| 39 | 1 | ->interactive() |
|
| 40 | 1 | ->perform(); |
|
| 41 | 1 | } |
|
| 43 |