@@ -23,7 +23,6 @@ |
||
23 | 23 | namespace OCA\DAV; |
24 | 24 | |
25 | 25 | use OCA\DAV\CalDAV\Schedule\IMipPlugin; |
26 | -use OCA\DAV\Connector\FedAuth; |
|
27 | 26 | use OCA\DAV\Connector\Sabre\Auth; |
28 | 27 | use OCA\DAV\Connector\Sabre\BlockLegacyClientPlugin; |
29 | 28 | use OCA\DAV\Files\CustomPropertiesBackend; |
@@ -31,13 +31,10 @@ |
||
31 | 31 | use OCP\IUserManager; |
32 | 32 | use OCP\IUserSession; |
33 | 33 | use Symfony\Component\Console\Command\Command; |
34 | -use Symfony\Component\Console\Helper\Table; |
|
35 | -use Symfony\Component\Console\Helper\TableHelper; |
|
36 | 34 | use Symfony\Component\Console\Input\ArrayInput; |
37 | 35 | use Symfony\Component\Console\Input\InputArgument; |
38 | 36 | use Symfony\Component\Console\Input\InputInterface; |
39 | 37 | use Symfony\Component\Console\Input\InputOption; |
40 | -use Symfony\Component\Console\Input\Input; |
|
41 | 38 | use Symfony\Component\Console\Output\OutputInterface; |
42 | 39 | |
43 | 40 | class Import extends Base { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * Wrapper around file_get_contents($filename, $data) |
33 | 33 | * |
34 | 34 | * @param string $filename |
35 | - * @return string|false |
|
35 | + * @return string |
|
36 | 36 | */ |
37 | 37 | public function file_get_contents($filename) { |
38 | 38 | return file_get_contents($filename); |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | * Wrapper around file_put_contents($filename, $data) |
53 | 53 | * |
54 | 54 | * @param string $filename |
55 | - * @param $data |
|
56 | - * @return int|false |
|
55 | + * @param string $data |
|
56 | + * @return integer |
|
57 | 57 | */ |
58 | 58 | public function file_put_contents($filename, $data) { |
59 | 59 | return file_put_contents($filename, $data); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @NoAdminRequired |
72 | 72 | * @NoSubadminRequired |
73 | - * @return array |
|
73 | + * @return DataResponse |
|
74 | 74 | */ |
75 | 75 | public function addPersonalRootCertificate() { |
76 | 76 | return $this->addCertificate($this->userCertificateManager); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * Add a new root certificate to a trust store |
81 | 81 | * |
82 | 82 | * @param ICertificateManager $certificateManager |
83 | - * @return array |
|
83 | + * @return DataResponse |
|
84 | 84 | */ |
85 | 85 | private function addCertificate(ICertificateManager $certificateManager) { |
86 | 86 | $headers = []; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * Add a new personal root certificate to the system's trust store |
160 | 160 | * |
161 | - * @return array |
|
161 | + * @return DataResponse |
|
162 | 162 | */ |
163 | 163 | public function addSystemRootCertificate() { |
164 | 164 | return $this->addCertificate($this->systemCertificateManager); |
@@ -28,7 +28,6 @@ |
||
28 | 28 | use Symfony\Component\Console\Command\Command; |
29 | 29 | use Symfony\Component\Console\Helper\Table; |
30 | 30 | use Symfony\Component\Console\Input\InputInterface; |
31 | -use Symfony\Component\Console\Input\InputOption; |
|
32 | 31 | use Symfony\Component\Console\Output\OutputInterface; |
33 | 32 | |
34 | 33 | class ListCertificates extends Base { |
@@ -99,6 +99,7 @@ discard block |
||
99 | 99 | * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE |
100 | 100 | * @param \OCP\Lock\ILockingProvider $provider |
101 | 101 | * @throws \OCP\Lock\LockedException |
102 | + * @return void |
|
102 | 103 | */ |
103 | 104 | public function acquireLock($path, $type, ILockingProvider $provider); |
104 | 105 | |
@@ -106,6 +107,7 @@ discard block |
||
106 | 107 | * @param string $path The path of the file to release the lock for |
107 | 108 | * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE |
108 | 109 | * @param \OCP\Lock\ILockingProvider $provider |
110 | + * @return void |
|
109 | 111 | */ |
110 | 112 | public function releaseLock($path, $type, ILockingProvider $provider); |
111 | 113 | |
@@ -114,6 +116,7 @@ discard block |
||
114 | 116 | * @param int $type \OCP\Lock\ILockingProvider::LOCK_SHARED or \OCP\Lock\ILockingProvider::LOCK_EXCLUSIVE |
115 | 117 | * @param \OCP\Lock\ILockingProvider $provider |
116 | 118 | * @throws \OCP\Lock\LockedException |
119 | + * @return void |
|
117 | 120 | */ |
118 | 121 | public function changeLock($path, $type, ILockingProvider $provider); |
119 | 122 | } |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * and does not take the chroot into account ) |
196 | 196 | * |
197 | 197 | * @param string $path |
198 | - * @return \OCP\Files\Mount\IMountPoint |
|
198 | + * @return Mount\MountPoint|null |
|
199 | 199 | */ |
200 | 200 | public function getMount($path) { |
201 | 201 | return Filesystem::getMountManager()->find($this->getAbsolutePath($path)); |
@@ -906,7 +906,7 @@ discard block |
||
906 | 906 | |
907 | 907 | /** |
908 | 908 | * @param string $path |
909 | - * @return bool|string |
|
909 | + * @return string|false |
|
910 | 910 | * @throws \OCP\Files\InvalidPathException |
911 | 911 | */ |
912 | 912 | public function toTmpFile($path) { |
@@ -2029,7 +2029,7 @@ discard block |
||
2029 | 2029 | |
2030 | 2030 | /** |
2031 | 2031 | * @param string $filename |
2032 | - * @return array |
|
2032 | + * @return string[] |
|
2033 | 2033 | * @throws \OC\User\NoUserException |
2034 | 2034 | * @throws NotFoundException |
2035 | 2035 | */ |
@@ -227,7 +227,7 @@ |
||
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
230 | - * @return array|null |
|
230 | + * @return string |
|
231 | 231 | */ |
232 | 232 | public function getLocalSystemAddressBook() { |
233 | 233 | if (is_null($this->localSystemAddressBook)) { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Adds an expression to composite expression. |
54 | 54 | * |
55 | - * @param mixed $part |
|
55 | + * @param string $part |
|
56 | 56 | * |
57 | 57 | * @return \OCP\DB\QueryBuilder\ICompositeExpression |
58 | 58 | */ |