| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | function __construct(string $path) |
||
| 32 | { |
||
| 33 | $this->password = config('backup-shield.password'); |
||
| 34 | |||
| 35 | // If no password is set, just return the backup-path |
||
| 36 | if (!$this->password) { |
||
| 37 | return $this->path = $path; |
||
| 38 | } |
||
| 39 | |||
| 40 | consoleOutput()->info('Applying password and encryption to zip using ZipArchive...'); |
||
| 41 | |||
| 42 | $this->makeZip($path); |
||
| 43 | |||
| 44 | consoleOutput()->info('Successfully applied password and encryption to zip.'); |
||
| 45 | } |
||
| 69 |