| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function prepareDumpCommand(string $destinationPath): string |
||
| 26 | { |
||
| 27 | $dumpCommand = sprintf( |
||
| 28 | "%ssqlite3 %s .dump", |
||
| 29 | $this->dumpCommandPath, |
||
| 30 | $this->dbName |
||
| 31 | ); |
||
| 32 | |||
| 33 | if ($this->isCompress) { |
||
| 34 | |||
| 35 | return "{$dumpCommand} | {$this->compressBinaryPath}{$this->compressCommand} > {$destinationPath}{$this->compressExtension}"; |
||
| 36 | } |
||
| 37 | |||
| 38 | return "{$dumpCommand} > {$destinationPath}"; |
||
| 39 | } |
||
| 55 |