@@ -112,6 +112,9 @@ discard block |
||
| 112 | 112 | return $this->parseLongVersion($event, $previousEvent); |
| 113 | 113 | } |
| 114 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $icon |
|
| 117 | + */ |
|
| 115 | 118 | protected function setIcon(IEvent $event, $icon) { |
| 116 | 119 | if ($this->activityManager->getRequirePNG()) { |
| 117 | 120 | $event->setIcon($this->url->getAbsoluteURL($this->url->imagePath('files', $icon . '.png'))); |
@@ -252,6 +255,9 @@ discard block |
||
| 252 | 255 | return $event; |
| 253 | 256 | } |
| 254 | 257 | |
| 258 | + /** |
|
| 259 | + * @param string $subject |
|
| 260 | + */ |
|
| 255 | 261 | protected function setSubjects(IEvent $event, $subject, array $parameters) { |
| 256 | 262 | $placeholders = $replacements = []; |
| 257 | 263 | foreach ($parameters as $placeholder => $parameter) { |
@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use OCP\Files\InvalidPathException; |
| 33 | 33 | use OCP\Files\IRootFolder; |
| 34 | 34 | use OCP\Files\Node; |
| 35 | -use OCP\Files\NotFoundException; |
|
| 36 | 35 | use OCP\IL10N; |
| 37 | 36 | use OCP\IURLGenerator; |
| 38 | 37 | use OCP\IUser; |