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