Completed
Pull Request — master (#569)
by Julius
07:22
created
lib/Controller/FederationController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -26,11 +26,8 @@
 block discarded – undo
26 26
 use \OCP\AppFramework\OCSController;
27 27
 use OCA\Richdocuments\Db\WopiMapper;
28 28
 use OCP\AppFramework\Http\DataResponse;
29
-use OCP\AppFramework\OCS\OCSNotFoundException;
30
-use OCP\Files\NotFoundException;
31 29
 use OCP\IConfig;
32 30
 use OCP\IRequest;
33
-use OCP\Share\Exceptions\ShareNotFound;
34 31
 use OCP\Share\IManager;
35 32
 
36 33
 class FederationController extends OCSController {
Please login to merge, or discard this patch.
lib/Service/FederationService.php 2 patches
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.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 use OCA\Federation\TrustedServers;
28 28
 use OCA\Files_Sharing\External\Storage as SharingExternalStorage;
29 29
 use OCA\Richdocuments\TokenManager;
30
-use OCP\AppFramework\Http\RedirectResponse;
31 30
 use OCP\AppFramework\QueryException;
32 31
 use OCP\Files\File;
33 32
 use OCP\Files\InvalidPathException;
Please login to merge, or discard this patch.
lib/AppConfig.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@  discard block
 block discarded – undo
40 40
 		$this->config = $config;
41 41
 	}
42 42
 
43
+	/**
44
+	 * @return string
45
+	 */
43 46
 	public function getAppNamespace($key) {
44 47
 		if (strpos($key, 'watermark_') === 0) {
45 48
 			return self::WATERMARK_APP_NAMESPACE;
@@ -61,7 +64,7 @@  discard block
 block discarded – undo
61 64
 	}
62 65
 
63 66
 	/**
64
-	 * @param $key
67
+	 * @param string $key
65 68
 	 * @return array
66 69
 	 */
67 70
 	public function getAppValueArray($key) {
Please login to merge, or discard this patch.
lib/Controller/WopiController.php 2 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -622,6 +622,4 @@
 block discarded – undo
622 622
 			$userFolder = $this->rootFolder->getUserFolder($editor);
623 623
 			$file = $userFolder->getById($wopi->getFileid())[0];
624 624
 		}
625
-		return $file;
626
-	}
627
-}
625
+		return $file
628 626
\ No newline at end of file
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -622,6 +622,4 @@
 block discarded – undo
622 622
 			$userFolder = $this->rootFolder->getUserFolder($editor);
623 623
 			$file = $userFolder->getById($wopi->getFileid())[0];
624 624
 		}
625
-		return $file;
626
-	}
627
-}
625
+		return $file
628 626
\ No newline at end of file
Please login to merge, or discard this patch.