Completed
Push — master ( b84cfa...4ac717 )
by
unknown
05:25
created
lib/Controller/WopiController.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -215,6 +215,9 @@  discard block
 block discarded – undo
215 215
 		return new JSONResponse($response);
216 216
 	}
217 217
 
218
+	/**
219
+	 * @param Wopi $wopi
220
+	 */
218 221
 	private function setFederationFileInfo($wopi, $response) {
219 222
 		$remoteUserId = $wopi->getGuestDisplayname();
220 223
 		$cloudID = \OC::$server->getCloudIdManager()->resolveCloudId($remoteUserId);
@@ -235,6 +238,10 @@  discard block
 block discarded – undo
235 238
 		return $response;
236 239
 	}
237 240
 
241
+	/**
242
+	 * @param boolean $isPublic
243
+	 * @param string $userId
244
+	 */
238 245
 	private function shouldWatermark($isPublic, $userId, $fileId, Wopi $wopi) {
239 246
 		if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_enabled', 'no') === 'no') {
240 247
 			return false;
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.
tests/features/bootstrap/FeatureContext.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 
4 4
 use Behat\Behat\Context\Context;
5 5
 use GuzzleHttp\Client;
6
-use GuzzleHttp\Psr7\Response;
7 6
 use PHPUnit\Framework\Assert;
8 7
 
9 8
 class FeatureContext implements Context
Please login to merge, or discard this patch.
lib/Db/WopiMapper.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@
 block discarded – undo
62 62
 	 * @param string $serverHost
63 63
 	 * @param string $guestDisplayname
64 64
 	 * @param int $templateDestination
65
+	 * @param string $share
65 66
 	 * @return Wopi
66 67
 	 */
67 68
 	public function generateFileToken($fileId, $owner, $editor, $version, $updatable, $serverHost, $guestDisplayname, $templateDestination = 0, $hideDownload = false, $direct = false, $isRemoteToken = false, $templateId = 0, $share = null) {
Please login to merge, or discard this patch.
lib/WOPI/DiscoveryManager.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -93,6 +93,7 @@
 block discarded – undo
93 93
 	}
94 94
 
95 95
 	/**
96
+	 * @param string $url
96 97
 	 * @return boolean indicating if proxy.php is in initialize or false otherwise
97 98
 	 */
98 99
 	private function isProxyStarting($url) {
Please login to merge, or discard this patch.
lib/AppInfo/Application.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 use OC\EventDispatcher\SymfonyAdapter;
28 28
 use OC\Files\Type\Detection;
29 29
 use OC\Security\CSP\ContentSecurityPolicy;
30
-use OCA\Federation\TrustedServers;
31 30
 use OCA\Richdocuments\AppConfig;
32 31
 use OCA\Richdocuments\Capabilities;
33 32
 use OCA\Richdocuments\PermissionManager;
Please login to merge, or discard this patch.
lib/Template/CollaboraTemplateProvider.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
31 31
 use OCP\Files\File;
32 32
 use OCP\Files\Template\ICustomTemplateProvider;
33 33
 use OCP\Files\Template\Template;
34
-use OCP\Files\Template\TemplateFileCreator;
35 34
 use OCP\IURLGenerator;
36 35
 
37 36
 class CollaboraTemplateProvider implements ICustomTemplateProvider {
Please login to merge, or discard this patch.