@@ -515,7 +515,7 @@ discard block |
||
| 515 | 515 | /** |
| 516 | 516 | * @param \OCP\Files\File|\OCP\Files\Folder $node |
| 517 | 517 | * @param boolean $includeTags include tags in response |
| 518 | - * @param int|null $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
| 518 | + * @param integer $stateFilter state filter or empty for all, defaults to 0 (accepted) |
|
| 519 | 519 | * @return Result |
| 520 | 520 | */ |
| 521 | 521 | private function getSharedWithMe($node = null, $includeTags, $stateFilter = 0) { |
@@ -968,7 +968,7 @@ discard block |
||
| 968 | 968 | } |
| 969 | 969 | |
| 970 | 970 | /** |
| 971 | - * @param $id |
|
| 971 | + * @param integer $id |
|
| 972 | 972 | * @param $state |
| 973 | 973 | * @return Result |
| 974 | 974 | */ |
@@ -1154,6 +1154,7 @@ discard block |
||
| 1154 | 1154 | * not support this we need to check all backends. |
| 1155 | 1155 | * |
| 1156 | 1156 | * @param string $id |
| 1157 | + * @param string $recipient |
|
| 1157 | 1158 | * @return IShare |
| 1158 | 1159 | * @throws ShareNotFound |
| 1159 | 1160 | */ |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * inform users if a file was shared with them |
| 131 | 131 | * |
| 132 | - * @param Node shared node |
|
| 132 | + * @param Node Node node |
|
| 133 | 133 | * @param string $shareType share type |
| 134 | 134 | * @param IUser[] $recipientList list of recipients |
| 135 | 135 | * |
@@ -238,10 +238,10 @@ discard block |
||
| 238 | 238 | * inform recipient about public link share |
| 239 | 239 | * |
| 240 | 240 | * @param string $recipient recipient email address |
| 241 | - * @param string $filename the shared file |
|
| 242 | - * @param string $link the public link |
|
| 243 | 241 | * @param array $options allows ['to], ['cc'] and ['bcc'] recipients |
| 244 | - * @param int $expiration expiration date (timestamp) |
|
| 242 | + * @param string $subject |
|
| 243 | + * @param boolean|string $htmlBody |
|
| 244 | + * @param boolean|string $textBody |
|
| 245 | 245 | * @return string[] $result of failed recipients |
| 246 | 246 | */ |
| 247 | 247 | public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = []) { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | * @param string $wrongPath wrong path of the entry to fix |
| 109 | 109 | * @param int $correctStorageNumericId numeric idea of the correct storage |
| 110 | 110 | * @param string $correctPath value to which to set the path of the entry |
| 111 | - * @return bool true for success |
|
| 111 | + * @return boolean|null true for success |
|
| 112 | 112 | */ |
| 113 | 113 | private function fixEntryPath(IOutput $out, $fileId, $wrongPath, $correctStorageNumericId, $correctPath) { |
| 114 | 114 | // delete target if exists |
@@ -138,6 +138,9 @@ discard block |
||
| 138 | 138 | $out->advance(1, $text); |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | + /** |
|
| 142 | + * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb |
|
| 143 | + */ |
|
| 141 | 144 | private function addQueryConditionsParentIdWrongPath($qb) { |
| 142 | 145 | // thanks, VicDeo! |
| 143 | 146 | if ($this->connection->getDatabasePlatform() instanceof MySqlPlatform) { |
@@ -177,6 +180,9 @@ discard block |
||
| 177 | 180 | } |
| 178 | 181 | } |
| 179 | 182 | |
| 183 | + /** |
|
| 184 | + * @param \OCP\DB\QueryBuilder\IQueryBuilder $qb |
|
| 185 | + */ |
|
| 180 | 186 | private function addQueryConditionsNonExistingParentIdEntry($qb, $storageNumericId = null) { |
| 181 | 187 | // Subquery for parent existence |
| 182 | 188 | $qbe = $this->connection->getQueryBuilder(); |
@@ -216,6 +222,9 @@ discard block |
||
| 216 | 222 | return $count; |
| 217 | 223 | } |
| 218 | 224 | |
| 225 | + /** |
|
| 226 | + * @param integer $storageNumericId |
|
| 227 | + */ |
|
| 219 | 228 | private function countResultsToProcessNonExistingParentIdEntry($storageNumericId = null) { |
| 220 | 229 | $qb = $this->connection->getQueryBuilder(); |
| 221 | 230 | $qb->select($qb->createFunction('COUNT(*)')); |
@@ -365,6 +374,7 @@ discard block |
||
| 365 | 374 | * |
| 366 | 375 | * @param int $storageId storage id |
| 367 | 376 | * @param string $path path for which to create the parent entry |
| 377 | + * @param integer $reuseFileId |
|
| 368 | 378 | * @return int file id of the newly created parent |
| 369 | 379 | */ |
| 370 | 380 | private function getOrCreateEntry($storageId, $path, $reuseFileId = null) { |
@@ -22,6 +22,10 @@ discard block |
||
| 22 | 22 | namespace OC\Settings\Panels; |
| 23 | 23 | |
| 24 | 24 | class Helper { |
| 25 | + |
|
| 26 | + /** |
|
| 27 | + * @param string $path |
|
| 28 | + */ |
|
| 25 | 29 | public function getStorageInfo($path) { |
| 26 | 30 | return \OC_Helper::getStorageInfo($path); |
| 27 | 31 | } |
@@ -39,6 +43,9 @@ discard block |
||
| 39 | 43 | return ($value === 'yes') ? true : false; |
| 40 | 44 | } |
| 41 | 45 | |
| 46 | + /** |
|
| 47 | + * @param string $path |
|
| 48 | + */ |
|
| 42 | 49 | public function findBinaryPath($path) { |
| 43 | 50 | return (bool) \OC_Helper::findBinaryPath($path); |
| 44 | 51 | } |