@@ -65,6 +65,9 @@ |
||
| 65 | 65 | $this->timeFactory = $timeFactory; |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | + /** |
|
| 69 | + * @return string |
|
| 70 | + */ |
|
| 68 | 71 | public function get() { |
| 69 | 72 | // First check if there is a local valid discovery file |
| 70 | 73 | try { |
@@ -37,7 +37,6 @@ |
||
| 37 | 37 | private $capabilitites; |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @param IL10N $l |
|
| 41 | 40 | * @param IURLGenerator $url |
| 42 | 41 | */ |
| 43 | 42 | public function __construct(IL10N $l10n, IURLGenerator $url, Capabilities $capabilities) { |
@@ -166,6 +166,9 @@ |
||
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $filepath |
|
| 171 | + */ |
|
| 169 | 172 | private function mb_pathinfo($filepath) { |
| 170 | 173 | $result = []; |
| 171 | 174 | preg_match('%^(.*?)[\\\\/]*(([^/\\\\]*?)(\.([^\.\\\\/]+?)|))[\\\\/\.]*$%im',$filepath,$matches); |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * |
| 58 | 58 | * @param string $appName |
| 59 | 59 | * @param IRequest $request |
| 60 | - * @param L10N $l10n |
|
| 60 | + * @param IL10N $l10n |
|
| 61 | 61 | * @param TemplateManager $manager |
| 62 | 62 | * @param IPreview $preview |
| 63 | 63 | */ |
@@ -47,8 +47,8 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @param $uid |
|
| 51 | - * @param $fileid |
|
| 50 | + * @param string $uid |
|
| 51 | + * @param integer $fileid |
|
| 52 | 52 | * @return Asset |
| 53 | 53 | */ |
| 54 | 54 | public function newAsset($uid, $fileid) { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | - * @param $token |
|
| 67 | + * @param string $token |
|
| 68 | 68 | * @return Asset |
| 69 | 69 | * @throws DoesNotExistException |
| 70 | 70 | */ |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * @param $mimetype |
|
| 36 | + * @param string $mimetype |
|
| 37 | 37 | * @return array |
| 38 | 38 | * @throws \Exception |
| 39 | 39 | */ |
@@ -126,6 +126,7 @@ |
||
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @param File $item |
| 129 | + * @param \OCA\Richdocuments\Db\Direct $direct |
|
| 129 | 130 | * @return string|null |
| 130 | 131 | * @throws NotFoundException |
| 131 | 132 | * @throws InvalidPathException |
@@ -189,6 +189,9 @@ discard block |
||
| 189 | 189 | } |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | + /** |
|
| 193 | + * @param string $shareToken |
|
| 194 | + */ |
|
| 192 | 195 | public function updateToRemoteToken(Wopi $wopi, $shareToken, $remoteServer, $remoteServerToken, $remoteWopi) { |
| 193 | 196 | $uid = $remoteWopi['editorUid'] . '@' . $remoteServer; |
| 194 | 197 | $wopi->setEditorUid($shareToken); |
@@ -200,6 +203,10 @@ discard block |
||
| 200 | 203 | return $wopi; |
| 201 | 204 | } |
| 202 | 205 | |
| 206 | + /** |
|
| 207 | + * @param string $userId |
|
| 208 | + * @param integer $templateDestination |
|
| 209 | + */ |
|
| 203 | 210 | public function getTokenForTemplate(File $file, $userId, $templateDestination, $direct = false) { |
| 204 | 211 | $owneruid = $userId; |
| 205 | 212 | $editoruid = $userId; |
@@ -40,6 +40,9 @@ discard block |
||
| 40 | 40 | $this->config = $config; |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | + /** |
|
| 44 | + * @return string |
|
| 45 | + */ |
|
| 43 | 46 | public function getAppNamespace($key) { |
| 44 | 47 | if (strpos($key, 'watermark_') === 0) { |
| 45 | 48 | return self::WATERMARK_APP_NAMESPACE; |
@@ -61,7 +64,7 @@ discard block |
||
| 61 | 64 | } |
| 62 | 65 | |
| 63 | 66 | /** |
| 64 | - * @param $key |
|
| 67 | + * @param string $key |
|
| 65 | 68 | * @return array |
| 66 | 69 | */ |
| 67 | 70 | public function getAppValueArray($key) { |