| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 32 | public function build(): bool |
||
| 33 | { |
||
| 34 | $this->sourceHash->begin(); |
||
| 35 | $config = $this->prefix->config(); |
||
| 36 | if ($this->command->existsDatabase($config->database)) { |
||
| 37 | $this->sourceHash->commit(); |
||
| 38 | return TRUE; |
||
| 39 | } |
||
| 40 | $this->command->create($config); |
||
| 41 | $this->command->importFiles($this->sourceHash->getFiles(), $config); |
||
| 42 | $this->sourceHash->commit(); |
||
| 43 | return FALSE; |
||
| 44 | } |
||
| 47 |