@@ -30,11 +30,9 @@ |
||
30 | 30 | use OCP\IConfig; |
31 | 31 | use Symfony\Component\Console\Command\Command; |
32 | 32 | use Symfony\Component\Console\Helper\ProgressBar; |
33 | -use Symfony\Component\Console\Helper\QuestionHelper; |
|
34 | 33 | use Symfony\Component\Console\Input\InputArgument; |
35 | 34 | use Symfony\Component\Console\Input\InputInterface; |
36 | 35 | use Symfony\Component\Console\Output\OutputInterface; |
37 | -use Symfony\Component\Console\Question\ConfirmationQuestion; |
|
38 | 36 | |
39 | 37 | class ParallelDecryptAll extends Command { |
40 | 38 |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | * |
76 | 76 | * @param InputInterface $input |
77 | 77 | * @param OutputInterface $output |
78 | - * @param $user |
|
78 | + * @param string $user |
|
79 | 79 | * @return bool |
80 | 80 | */ |
81 | 81 | public function prepare(InputInterface $input, OutputInterface $output, $user) { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * |
136 | 136 | * @param string $user |
137 | 137 | * @param string $password |
138 | - * @return bool|string |
|
138 | + * @return false|string |
|
139 | 139 | * @throws \OCA\Encryption\Exceptions\PrivateKeyMissingException |
140 | 140 | */ |
141 | 141 | protected function getPrivateKey($user, $password) { |
@@ -155,6 +155,9 @@ discard block |
||
155 | 155 | return $privateKey; |
156 | 156 | } |
157 | 157 | |
158 | + /** |
|
159 | + * @param string $privateKey |
|
160 | + */ |
|
158 | 161 | protected function updateSession($user, $privateKey) { |
159 | 162 | $this->session->prepareDecryptAll($user, $privateKey); |
160 | 163 | } |