Completed
Pull Request — master (#754)
by Julius
02:20
created
lib/TokenManager.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -202,6 +202,9 @@  discard block
 block discarded – undo
202 202
 		}
203 203
 	}
204 204
 
205
+	/**
206
+	 * @param string $shareToken
207
+	 */
205 208
 	public function updateToRemoteToken(Wopi $wopi, $shareToken, $remoteServer, $remoteServerToken, $remoteWopi) {
206 209
 		$uid = $remoteWopi['editorUid'] . '@' . $remoteServer;
207 210
 		$wopi->setEditorUid($shareToken);
@@ -213,6 +216,10 @@  discard block
 block discarded – undo
213 216
 		return $wopi;
214 217
 	}
215 218
 
219
+	/**
220
+	 * @param string $userId
221
+	 * @param integer $targetFileId
222
+	 */
216 223
 	public function getTokenForTemplate(File $templateFile, $userId, $targetFileId, $direct = false) {
217 224
 		$owneruid = $userId;
218 225
 		$editoruid = $userId;
Please login to merge, or discard this patch.
tests/features/bootstrap/FeatureContext.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -255,6 +255,11 @@  discard block
 block discarded – undo
255 255
     	return $this->davPath . '/files/' . $user;
256 256
 	}
257 257
 
258
+	/**
259
+	 * @param string $user
260
+	 * @param string $method
261
+	 * @param string $path
262
+	 */
258 263
 	public function makeDavRequest($user, $method, $path, $headers, $body = null) {
259 264
     	$fullUrl = $this->baseUrl . $this->getDavFilesPath($user) . "$path";
260 265
 
@@ -281,7 +286,6 @@  discard block
 block discarded – undo
281 286
 
282 287
 	/**
283 288
 	 * @Given Using web as guest
284
-	 * @param string $user
285 289
 	 */
286 290
 	public function usingWebasGuest() {
287 291
 		return $this->loggingInUsingWebAs(null);
Please login to merge, or discard this patch.
tests/features/bootstrap/UserTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -77,6 +77,9 @@
 block discarded – undo
77 77
 		$this->assertStatusCode($response, 200);
78 78
 	}
79 79
 
80
+	/**
81
+	 * @param string $user
82
+	 */
80 83
 	private function userExists($user) {
81 84
 		$client = new Client();
82 85
 		$options = [
Please login to merge, or discard this patch.