@@ -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 { |
@@ -135,6 +135,9 @@ discard block |
||
135 | 135 | $this->l = $l; |
136 | 136 | } |
137 | 137 | |
138 | + /** |
|
139 | + * @param string $userId |
|
140 | + */ |
|
138 | 141 | public function setUserId($userId) { |
139 | 142 | $this->userId = $userId; |
140 | 143 | } |
@@ -297,6 +300,9 @@ discard block |
||
297 | 300 | })); |
298 | 301 | } |
299 | 302 | |
303 | + /** |
|
304 | + * @param string $type |
|
305 | + */ |
|
300 | 306 | public function getAllFormatted($type) { |
301 | 307 | if (!array_key_exists($type, self::$tplTypes)) { |
302 | 308 | return []; |
@@ -429,6 +435,9 @@ discard block |
||
429 | 435 | ]; |
430 | 436 | } |
431 | 437 | |
438 | + /** |
|
439 | + * @param integer $fileId |
|
440 | + */ |
|
432 | 441 | public function isTemplate($fileId) { |
433 | 442 | $empty = $this->getEmpty(); |
434 | 443 | $system = $this->getSystem(); |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * @param string $fileId |
83 | 83 | * @param string $shareToken |
84 | 84 | * @param string $editoruid |
85 | - * @return array |
|
85 | + * @return string[] |
|
86 | 86 | * @throws \Exception |
87 | 87 | */ |
88 | 88 | public function getToken($fileId, $shareToken = null, $editoruid = null) { |
@@ -170,6 +170,9 @@ discard block |
||
170 | 170 | } |
171 | 171 | } |
172 | 172 | |
173 | + /** |
|
174 | + * @param string $userId |
|
175 | + */ |
|
173 | 176 | public function getTokenForTemplate(File $file, $userId, $templateDestination) { |
174 | 177 | $owneruid = $userId; |
175 | 178 | $editoruid = $userId; |
@@ -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) { |