| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1.0008 |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | 1 | public function export(StorageEntity $storage) |
|
| 63 | { |
||
| 64 | 1 | $output = sprintf($this->output, $storage->getId()); |
|
| 65 | 1 | $progress = sprintf($this->progress, $storage->getId()); |
|
| 66 | |||
| 67 | 1 | $this->fs->mkdir([dirname($output), dirname($progress)], 0755); |
|
| 68 | |||
| 69 | 1 | $this->command->send(sprintf( |
|
| 70 | 1 | 'php app/console animedb:scan-storage --no-ansi --force --export=%s %s >%s 2>&1', |
|
| 71 | $progress, |
||
| 72 | 1 | $storage->getId(), |
|
| 73 | 1 | $output |
|
| 74 | )); |
||
| 75 | 1 | } |
|
| 76 | } |
||
| 77 |