@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @param Account $account |
84 | 84 | * @param AccountMapper $mapper |
85 | - * @param null $emitter |
|
85 | + * @param Manager $emitter |
|
86 | 86 | * @param IConfig|null $config |
87 | 87 | * @param null $urlGenerator |
88 | 88 | * @param EventDispatcher|null $eventDispatcher |
@@ -473,6 +473,10 @@ discard block |
||
473 | 473 | return $url; |
474 | 474 | } |
475 | 475 | |
476 | + /** |
|
477 | + * @param string $feature |
|
478 | + * @param string $value |
|
479 | + */ |
|
476 | 480 | public function triggerChange($feature, $value = null) { |
477 | 481 | if ($this->emitter && \in_array($feature, $this->account->getUpdatedFields())) { |
478 | 482 | $this->emitter->emit('\OC\User', 'changeUser', [$this, $feature, $value]); |
@@ -31,7 +31,6 @@ discard block |
||
31 | 31 | |
32 | 32 | namespace OC\User; |
33 | 33 | |
34 | -use OC\Files\Cache\Cache; |
|
35 | 34 | use OC\Files\Cache\Storage; |
36 | 35 | use OC\Hooks\Emitter; |
37 | 36 | use OC_Helper; |
@@ -44,7 +43,6 @@ discard block |
||
44 | 43 | use OCP\IUserBackend; |
45 | 44 | use OCP\IUserSession; |
46 | 45 | use OCP\User\IChangePasswordBackend; |
47 | -use OCP\UserInterface; |
|
48 | 46 | use Symfony\Component\EventDispatcher\EventDispatcher; |
49 | 47 | use Symfony\Component\EventDispatcher\GenericEvent; |
50 | 48 |
@@ -170,7 +170,7 @@ |
||
170 | 170 | /** |
171 | 171 | * Returns whether the given mount point should be scanned |
172 | 172 | * |
173 | - * @param $mount mount point |
|
173 | + * @param \OC\Files\Mount\MountPoint|null $mount mount point |
|
174 | 174 | * @return bool true to scan, false to skip |
175 | 175 | */ |
176 | 176 | private function shouldScan($mount) { |
@@ -189,10 +189,10 @@ |
||
189 | 189 | * inform recipient about public link share |
190 | 190 | * |
191 | 191 | * @param string $recipient recipient email address |
192 | - * @param string $filename the shared file |
|
193 | - * @param string $link the public link |
|
194 | 192 | * @param array $options allows ['cc'] and ['bcc'] recipients |
195 | - * @param int $expiration expiration date (timestamp) |
|
193 | + * @param string $subject |
|
194 | + * @param boolean|string $htmlBody |
|
195 | + * @param boolean|string $textBody |
|
196 | 196 | * @return string[] $result of failed recipients |
197 | 197 | */ |
198 | 198 | public function sendLinkShareMailFromBody($recipient, $subject, $htmlBody, $textBody, $options = []) { |