Completed
Pull Request — master (#539)
by Julius
02:21
created
lib/Controller/WopiController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -196,6 +196,9 @@
 block discarded – undo
196 196
 		return new JSONResponse($response);
197 197
 	}
198 198
 
199
+	/**
200
+	 * @param Wopi $wopi
201
+	 */
199 202
 	private function setFederationFileInfo($wopi, $response) {
200 203
 		$remoteUserId = $wopi->getGuestDisplayname();
201 204
 		$cloudID = \OC::$server->getCloudIdManager()->resolveCloudId($remoteUserId);
Please login to merge, or discard this patch.
lib/Service/FederationService.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -126,6 +126,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/TokenManager.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -189,6 +189,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.