@@ -48,6 +48,9 @@ discard block |
||
| 48 | 48 | $this->stack = $stack; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param double $time |
|
| 53 | + */ |
|
| 51 | 54 | public function end($time) { |
| 52 | 55 | $this->end = $time; |
| 53 | 56 | } |
@@ -67,7 +70,7 @@ discard block |
||
| 67 | 70 | } |
| 68 | 71 | |
| 69 | 72 | /** |
| 70 | - * @return float |
|
| 73 | + * @return integer |
|
| 71 | 74 | */ |
| 72 | 75 | public function getStart() { |
| 73 | 76 | return $this->start; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * get color for on-page elements: |
| 73 | 73 | * theme color by default, grey if theme color is to bright |
| 74 | - * @param $color |
|
| 74 | + * @param string $color |
|
| 75 | 75 | * @return string |
| 76 | 76 | */ |
| 77 | 77 | public function elementColor($color) { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | 116 | * @param $app string app name |
| 117 | - * @return string|ISimpleFile path to app icon / file of logo |
|
| 117 | + * @return string path to app icon / file of logo |
|
| 118 | 118 | */ |
| 119 | 119 | public function getAppIcon($app) { |
| 120 | 120 | $app = str_replace(array('\0', '/', '\\', '..'), '', $app); |
@@ -190,8 +190,8 @@ discard block |
||
| 190 | 190 | /** |
| 191 | 191 | * replace default color with a custom one |
| 192 | 192 | * |
| 193 | - * @param $svg string content of a svg file |
|
| 194 | - * @param $color string color to match |
|
| 193 | + * @param string $svg string content of a svg file |
|
| 194 | + * @param string $color string color to match |
|
| 195 | 195 | * @return string |
| 196 | 196 | */ |
| 197 | 197 | public function colorizeSvg($svg, $color) { |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * @brief states whether the filesystem was loaded |
| 35 | - * @return bool |
|
| 35 | + * @return boolean|null |
|
| 36 | 36 | */ |
| 37 | 37 | public function log($msg, $level) { |
| 38 | 38 | \OCP\Util::writeLog($this->app, $msg, $level); |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | * |
| 52 | 52 | * @param IUser $user |
| 53 | 53 | * @param IStorageFactory $loader |
| 54 | - * @return \OCP\Files\Mount\IMountPoint |
|
| 54 | + * @return null|MountPoint |
|
| 55 | 55 | */ |
| 56 | 56 | public function getHomeMountForUser(IUser $user, IStorageFactory $loader) { |
| 57 | 57 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * @param IUser $user |
| 72 | - * @return array|null |
|
| 72 | + * @return IStorageFactory|null |
|
| 73 | 73 | */ |
| 74 | 74 | private function getSingleBucketObjectStoreConfig(IUser $user) { |
| 75 | 75 | $config = $this->config->getSystemValue('objectstore'); |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | /** |
| 95 | 95 | * @param IUser $user |
| 96 | - * @return array|null |
|
| 96 | + * @return IStorageFactory|null |
|
| 97 | 97 | */ |
| 98 | 98 | private function getMultiBucketObjectStoreConfig(IUser $user) { |
| 99 | 99 | $config = $this->config->getSystemValue('objectstore_multibucket'); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | /** |
| 70 | 70 | * Generate a keypair |
| 71 | 71 | * |
| 72 | - * @param int $keyLenth |
|
| 72 | + * @param integer $keyLength |
|
| 73 | 73 | * @return array ['privatekey' => $privateKey, 'publickey' => $publicKey] |
| 74 | 74 | */ |
| 75 | 75 | public function createKey($keyLength) { |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @param string $data |
| 129 | - * @return int |
|
| 129 | + * @return boolean |
|
| 130 | 130 | */ |
| 131 | 131 | public function stream_write($data) { |
| 132 | 132 | return false; |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | /** |
| 177 | 177 | * Create the circle share provider |
| 178 | 178 | * |
| 179 | - * @return FederatedShareProvider |
|
| 179 | + * @return null|\OCA\Circles\ShareByCircleProvider |
|
| 180 | 180 | * |
| 181 | 181 | * @suppress PhanUndeclaredClassMethod |
| 182 | 182 | */ |
@@ -271,7 +271,7 @@ |
||
| 271 | 271 | * Return the explicit version for the aliases; current, next, prev, latest |
| 272 | 272 | * |
| 273 | 273 | * @param string $alias |
| 274 | - * @return mixed|null|string |
|
| 274 | + * @return string |
|
| 275 | 275 | */ |
| 276 | 276 | public function getMigration($alias) { |
| 277 | 277 | switch($alias) { |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | } while (count($rows) > 0); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $path |
|
| 88 | + */ |
|
| 86 | 89 | private function getId($storage, $path) { |
| 87 | 90 | if (!$this->getIdQuery) { |
| 88 | 91 | $builder = $this->connection->getQueryBuilder(); |