Completed
Pull Request — master (#475)
by Julius
20:09 queued 18:23
created
lib/WOPI/DiscoveryManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
lib/Controller/DocumentController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace OCA\Richdocuments\Controller;
13 13
 
14 14
 use OCA\Richdocuments\TokenManager;
15
-use OCA\Richdocuments\WOPI\Parser;
16 15
 use \OCP\AppFramework\Controller;
17 16
 use OCP\AppFramework\Http;
18 17
 use OCP\AppFramework\Http\JSONResponse;
Please login to merge, or discard this patch.
lib/Controller/OCSController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,6 @@
 block discarded – undo
28 28
 use OCP\AppFramework\Http\DataResponse;
29 29
 use OCP\AppFramework\OCS\OCSBadRequestException;
30 30
 use OCP\AppFramework\OCS\OCSNotFoundException;
31
-use OCP\Files\File;
32 31
 use OCP\Files\Folder;
33 32
 use OCP\Files\IRootFolder;
34 33
 use OCP\Files\NotFoundException;
Please login to merge, or discard this patch.
lib/TemplateManager.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,6 @@
 block discarded – undo
31 31
 use OCP\Files\NotFoundException;
32 32
 use OCP\IConfig;
33 33
 use OCP\IL10N;
34
-use OCP\IPreview;
35 34
 use OCP\IURLGenerator;
36 35
 use OC\Files\AppData\Factory;
37 36
 
Please login to merge, or discard this patch.
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -288,6 +288,9 @@  discard block
 block discarded – undo
288 288
 		}));
289 289
 	}
290 290
 
291
+	/**
292
+	 * @param string $type
293
+	 */
291 294
 	public function getAllFormatted($type) {
292 295
 		if (!array_key_exists($type, self::$tplTypes)) {
293 296
 			return [];
@@ -419,6 +422,9 @@  discard block
 block discarded – undo
419 422
 		];
420 423
 	}
421 424
 
425
+	/**
426
+	 * @param integer $fileId
427
+	 */
422 428
 	public function isTemplate($fileId) {
423 429
 		$empty = $this->getEmpty();
424 430
 		$system = $this->getSystem();
Please login to merge, or discard this patch.
lib/Controller/SettingsController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use OCA\Richdocuments\Service\CapabilitiesService;
15 15
 use OCA\Richdocuments\WOPI\DiscoveryManager;
16 16
 use \OCP\AppFramework\Controller;
17
-use OCP\AppFramework\Http;
18 17
 use OCP\AppFramework\Http\DataResponse;
19 18
 use OCP\AppFramework\Http\JSONResponse;
20 19
 use \OCP\IRequest;
Please login to merge, or discard this patch.
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/TokenManager.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
 use OC\Share\Constants;
25 25
 use OCA\Richdocuments\Db\WopiMapper;
26 26
 use OCA\Richdocuments\Helper;
27
-use OCA\Richdocuments\Db\Wopi;
28 27
 use OCA\Richdocuments\WOPI\Parser;
29 28
 use OCP\Files\File;
30 29
 use OCP\Files\IRootFolder;
Please login to merge, or discard this patch.
lib/Capabilities.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -23,15 +23,11 @@
 block discarded – undo
23 23
 
24 24
 namespace OCA\Richdocuments;
25 25
 
26
-use OCP\AppFramework\Utility\ITimeFactory;
27 26
 use OCP\Capabilities\ICapability;
28 27
 use OCP\Files\IAppData;
29 28
 use OCP\Files\NotFoundException;
30 29
 use OCP\Files\SimpleFS\ISimpleFolder;
31
-use OCP\Http\Client\IClientService;
32
-use OCP\IConfig;
33 30
 use OCP\IL10N;
34
-use OCP\IURLGenerator;
35 31
 
36 32
 class Capabilities implements ICapability {
37 33
 
Please login to merge, or discard this patch.
lib/Settings/Section.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.