@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -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 | } |
@@ -777,7 +777,7 @@ |
||
777 | 777 | /** |
778 | 778 | * check if path points to a files version |
779 | 779 | * |
780 | - * @param $path |
|
780 | + * @param string $path |
|
781 | 781 | * @return bool |
782 | 782 | */ |
783 | 783 | protected function isVersion($path) { |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * Checks whether the given path is a part file |
160 | 160 | * |
161 | 161 | * @param string $path Path that may identify a .part file |
162 | - * @return string File path without .part extension |
|
162 | + * @return boolean File path without .part extension |
|
163 | 163 | * @note this is needed for reusing keys |
164 | 164 | */ |
165 | 165 | private function isPartFile($path) { |
@@ -144,6 +144,9 @@ |
||
144 | 144 | return true; |
145 | 145 | } |
146 | 146 | |
147 | + /** |
|
148 | + * @param string $path |
|
149 | + */ |
|
147 | 150 | public function url_stat($path) { |
148 | 151 | if (isset(self::$data[$path])) { |
149 | 152 | $size = strlen(self::$data[$path]); |
@@ -27,7 +27,6 @@ |
||
27 | 27 | use OCP\IUser; |
28 | 28 | use OCP\ILogger; |
29 | 29 | use OCP\Files\Folder; |
30 | - |
|
31 | 30 | use OC\Share20\Exception\ShareNotFound; |
32 | 31 | |
33 | 32 | /** |
@@ -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 | */ |
@@ -31,7 +31,6 @@ |
||
31 | 31 | use Symfony\Component\Console\Input\InputInterface; |
32 | 32 | use Symfony\Component\Console\Input\InputOption; |
33 | 33 | use Symfony\Component\Console\Output\OutputInterface; |
34 | -use Symfony\Component\EventDispatcher\EventDispatcher; |
|
35 | 34 | use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
36 | 35 | use Symfony\Component\EventDispatcher\GenericEvent; |
37 | 36 |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * get the current active user |
179 | 179 | * |
180 | - * @return IUser|null Current user, otherwise null |
|
180 | + * @return null|User Current user, otherwise null |
|
181 | 181 | */ |
182 | 182 | public function getUser() { |
183 | 183 | // FIXME: This is a quick'n dirty work-around for the incognito mode as |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | /** |
323 | 323 | * Tries to login the user with HTTP Basic Authentication |
324 | - * @return boolean if the login was successful |
|
324 | + * @return boolean|null if the login was successful |
|
325 | 325 | */ |
326 | 326 | public function tryBasicAuthLogin() { |
327 | 327 | if (!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['PHP_AUTH_PW'])) { |
@@ -343,6 +343,9 @@ discard block |
||
343 | 343 | return false; |
344 | 344 | } |
345 | 345 | |
346 | + /** |
|
347 | + * @param string $uid |
|
348 | + */ |
|
346 | 349 | private function loginWithToken($uid) { |
347 | 350 | //$this->manager->emit('\OC\User', 'preTokenLogin', array($uid)); |
348 | 351 | $user = $this->manager->get($uid); |
@@ -363,7 +366,7 @@ discard block |
||
363 | 366 | * @param IRequest $request |
364 | 367 | * @param string $uid user UID |
365 | 368 | * @param string $password |
366 | - * @return boolean |
|
369 | + * @return boolean|null |
|
367 | 370 | */ |
368 | 371 | public function createSessionToken(IRequest $request, $uid, $password) { |
369 | 372 | if (is_null($this->manager->get($uid))) { |