| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 9 | protected function getExtractCommand ($password, AbstractAdapter $source, AbstractAdapter $destination) |
|
| 23 | { |
||
| 24 | /* |
||
| 25 | * The 7z command: |
||
| 26 | * x: extract command with folder structure |
||
| 27 | * -p: The password |
||
| 28 | */ |
||
| 29 | 9 | return '7z x -y -p' . escapeshellarg($password) . ' ' . escapeshellarg($source->applyPathPrefix('*.zip')) . ' -o' . |
|
| 30 | 9 | $destination->getPathPrefix() . ' 2>&1'; |
|
| 31 | } |
||
| 32 | |||
| 48 |