@@ -65,6 +65,9 @@ |
||
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 { |
@@ -28,6 +28,9 @@ |
||
28 | 28 | |
29 | 29 | protected $loadStatement = 'SELECT * FROM `*PREFIX*richdocuments_wopi` WHERE `token`= ?'; |
30 | 30 | |
31 | + /** |
|
32 | + * @param integer $updatable |
|
33 | + */ |
|
31 | 34 | public function generateFileToken($fileId, $owner, $editor, $version, $updatable, $serverHost) { |
32 | 35 | $token = \OC::$server->getSecureRandom()->getMediumStrengthGenerator()->generate(32, |
33 | 36 | \OCP\Security\ISecureRandom::CHAR_LOWER . \OCP\Security\ISecureRandom::CHAR_UPPER . |
@@ -41,6 +41,9 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | |
44 | + /** |
|
45 | + * @param string $path |
|
46 | + */ |
|
44 | 47 | public static function getNewFileName($view, $path, $prepend = ' '){ |
45 | 48 | $fileNum = 1; |
46 | 49 |