Completed
Pull Request — master (#514)
by Julius
09:32
created
lib/Service/CapabilitiesService.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,6 @@
 block discarded – undo
25 25
 
26 26
 use OCP\Files\IAppData;
27 27
 use OCP\Files\NotFoundException;
28
-use OCP\Files\SimpleFS\ISimpleFile;
29 28
 use OCP\Files\SimpleFS\ISimpleFolder;
30 29
 use OCP\Http\Client\IClientService;
31 30
 use OCP\IConfig;
Please login to merge, or discard this patch.
lib/Preview/Office.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
  */
22 22
 namespace OCA\Richdocuments\Preview;
23 23
 
24
-use GuzzleHttp\Psr7\LimitStream;
25 24
 use function GuzzleHttp\Psr7\stream_for;
26 25
 use OC\Preview\Provider;
27 26
 use OCA\Richdocuments\Capabilities;
Please login to merge, or discard this patch.
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.