@@ -59,7 +59,7 @@ |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * @return mixed |
|
62 | + * @return string |
|
63 | 63 | */ |
64 | 64 | public function getParameter() { |
65 | 65 | return $this->random; |
@@ -24,7 +24,6 @@ |
||
24 | 24 | namespace OCA\Activity\Parameter; |
25 | 25 | |
26 | 26 | use OCP\IL10N; |
27 | -use OCP\Util; |
|
28 | 27 | |
29 | 28 | class Collection implements IParameter { |
30 | 29 | /** @var IL10N */ |
@@ -31,7 +31,6 @@ |
||
31 | 31 | use OCP\Activity\IEvent; |
32 | 32 | use OCP\Activity\IManager; |
33 | 33 | use OCP\Contacts\IManager as IContactsManager; |
34 | -use OCP\IConfig; |
|
35 | 34 | use OCP\IL10N; |
36 | 35 | use OCP\IURLGenerator; |
37 | 36 | use OCP\IUserManager; |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | |
82 | 82 | /** |
83 | 83 | * Prepend leading slash to filenames of legacy activities |
84 | - * @param string|array $filename |
|
84 | + * @param string $filename |
|
85 | 85 | * @return string|array |
86 | 86 | */ |
87 | 87 | protected function fixLegacyFilename($filename) { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * Split the path from the filename string |
100 | 100 | * |
101 | 101 | * @param string $filename |
102 | - * @return array Array with path and filename |
|
102 | + * @return string[] Array with path and filename |
|
103 | 103 | */ |
104 | 104 | protected function splitPathFromFilename($filename) { |
105 | 105 | if (strrpos($filename, '/') !== false) { |