@@ -98,7 +98,7 @@ |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * @param string|int $category |
|
| 101 | + * @param string $category |
|
| 102 | 102 | * @return int |
| 103 | 103 | */ |
| 104 | 104 | protected function getCategory($category) { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @NoAdminRequired |
| 73 | 73 | * @NoSubadminRequired |
| 74 | - * @return array |
|
| 74 | + * @return DataResponse |
|
| 75 | 75 | */ |
| 76 | 76 | public function addPersonalRootCertificate() { |
| 77 | 77 | return $this->addCertificate($this->userCertificateManager); |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | * Add a new root certificate to a trust store |
| 82 | 82 | * |
| 83 | 83 | * @param ICertificateManager $certificateManager |
| 84 | - * @return array |
|
| 84 | + * @return DataResponse |
|
| 85 | 85 | */ |
| 86 | 86 | private function addCertificate(ICertificateManager $certificateManager) { |
| 87 | 87 | $headers = []; |
@@ -159,7 +159,7 @@ discard block |
||
| 159 | 159 | /** |
| 160 | 160 | * Add a new personal root certificate to the system's trust store |
| 161 | 161 | * |
| 162 | - * @return array |
|
| 162 | + * @return DataResponse |
|
| 163 | 163 | */ |
| 164 | 164 | public function addSystemRootCertificate() { |
| 165 | 165 | return $this->addCertificate($this->systemCertificateManager); |
@@ -268,7 +268,7 @@ |
||
| 268 | 268 | |
| 269 | 269 | /** |
| 270 | 270 | * @NoCSRFRequired |
| 271 | - * @return DataResponse |
|
| 271 | + * @return DataDisplayResponse |
|
| 272 | 272 | */ |
| 273 | 273 | public function getFailedIntegrityCheckFiles() { |
| 274 | 274 | if(!$this->checker->isCodeCheckEnforced()) { |
@@ -30,8 +30,6 @@ |
||
| 30 | 30 | use OCA\Files_external\Service\GlobalStoragesService; |
| 31 | 31 | use OCP\Files\StorageNotAvailableException; |
| 32 | 32 | use Symfony\Component\Console\Command\Command; |
| 33 | -use Symfony\Component\Console\Helper\Table; |
|
| 34 | -use Symfony\Component\Console\Helper\TableHelper; |
|
| 35 | 33 | use Symfony\Component\Console\Input\InputArgument; |
| 36 | 34 | use Symfony\Component\Console\Input\InputInterface; |
| 37 | 35 | use Symfony\Component\Console\Input\InputOption; |
@@ -27,7 +27,6 @@ |
||
| 27 | 27 | use OCA\Files_External\Lib\Auth\AuthMechanism; |
| 28 | 28 | use \OCP\IConfig; |
| 29 | 29 | use OCP\ILogger; |
| 30 | -use OCP\IUser; |
|
| 31 | 30 | use \OCP\IUserSession; |
| 32 | 31 | use \OCP\IRequest; |
| 33 | 32 | use \OCP\IL10N; |
@@ -303,6 +303,7 @@ |
||
| 303 | 303 | * get default share folder |
| 304 | 304 | * |
| 305 | 305 | * @param \OC\Files\View |
| 306 | + * @param View $view |
|
| 306 | 307 | * @return string |
| 307 | 308 | */ |
| 308 | 309 | public static function getShareFolder($view = null) { |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | * @param string $path |
| 100 | 100 | * @param View $view |
| 101 | 101 | * @param SharedMount[] $mountpoints |
| 102 | - * @return mixed |
|
| 102 | + * @return string |
|
| 103 | 103 | */ |
| 104 | 104 | private function generateUniqueTarget($path, $view, array $mountpoints) { |
| 105 | 105 | $pathinfo = pathinfo($path); |