@@ -52,7 +52,7 @@ |
||
| 52 | 52 | * Magic method to first get the real rootFolder and then |
| 53 | 53 | * call $method with $args on it |
| 54 | 54 | * |
| 55 | - * @param $method |
|
| 55 | + * @param string $method |
|
| 56 | 56 | * @param $args |
| 57 | 57 | * @return mixed |
| 58 | 58 | */ |
@@ -20,9 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | namespace OC\Files\Node; |
| 22 | 22 | |
| 23 | -use OC\Files\Mount\MountPoint; |
|
| 24 | 23 | use OCP\Files\IRootFolder; |
| 25 | -use OCP\Files\NotPermittedException; |
|
| 26 | 24 | |
| 27 | 25 | /** |
| 28 | 26 | * Class LazyRoot |
@@ -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 | } |
@@ -982,7 +982,7 @@ |
||
| 982 | 982 | /** |
| 983 | 983 | * check if path points to a files version |
| 984 | 984 | * |
| 985 | - * @param $path |
|
| 985 | + * @param string $path |
|
| 986 | 986 | * @return bool |
| 987 | 987 | */ |
| 988 | 988 | 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]); |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | |
| 24 | 24 | use OCP\Files\IMimeTypeLoader; |
| 25 | 25 | use OCP\IDBConnection; |
| 26 | - |
|
| 27 | 26 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
| 28 | 27 | |
| 29 | 28 | /** |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | |
| 155 | 155 | /** |
| 156 | 156 | * @param string $gid |
| 157 | - * @return \OCP\IGroup |
|
| 157 | + * @return null|Group |
|
| 158 | 158 | */ |
| 159 | 159 | protected function getGroupObject($gid) { |
| 160 | 160 | $backends = array(); |
@@ -482,7 +482,7 @@ |
||
| 482 | 482 | |
| 483 | 483 | /** |
| 484 | 484 | * Removes an app |
| 485 | - * @param string $name name of the application to remove |
|
| 485 | + * @param string $appId |
|
| 486 | 486 | * @return boolean |
| 487 | 487 | * |
| 488 | 488 | * |
@@ -278,6 +278,11 @@ |
||
| 278 | 278 | */ |
| 279 | 279 | // FIXME This method is only public, until OC_L10N does not need it anymore, |
| 280 | 280 | // FIXME This is also the reason, why it is not in the public interface |
| 281 | + |
|
| 282 | + /** |
|
| 283 | + * @param string|boolean $app |
|
| 284 | + * @param string|null $lang |
|
| 285 | + */ |
|
| 281 | 286 | public function getL10nFilesForApp($app, $lang) { |
| 282 | 287 | $languageFiles = []; |
| 283 | 288 | |