@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | if ($now - $previousLogin > 60) { |
255 | 255 | $this->lastLogin = time(); |
256 | 256 | $this->config->setUserValue( |
257 | - $this->uid, 'login', 'lastLogin', (string)$this->lastLogin); |
|
257 | + $this->uid, 'login', 'lastLogin', (string) $this->lastLogin); |
|
258 | 258 | } |
259 | 259 | |
260 | 260 | return $firstTimeLogin; |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function delete() { |
269 | 269 | /** @deprecated 21.0.0 use BeforeUserDeletedEvent event with the IEventDispatcher instead */ |
270 | - $this->legacyDispatcher->dispatch(IUser::class . '::preDelete', new GenericEvent($this)); |
|
270 | + $this->legacyDispatcher->dispatch(IUser::class.'::preDelete', new GenericEvent($this)); |
|
271 | 271 | if ($this->emitter) { |
272 | 272 | /** @deprecated 21.0.0 use BeforeUserDeletedEvent event with the IEventDispatcher instead */ |
273 | 273 | $this->emitter->emit('\OC\User', 'preDelete', [$this]); |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | $accountManager->deleteUser($this); |
308 | 308 | |
309 | 309 | /** @deprecated 21.0.0 use UserDeletedEvent event with the IEventDispatcher instead */ |
310 | - $this->legacyDispatcher->dispatch(IUser::class . '::postDelete', new GenericEvent($this)); |
|
310 | + $this->legacyDispatcher->dispatch(IUser::class.'::postDelete', new GenericEvent($this)); |
|
311 | 311 | if ($this->emitter) { |
312 | 312 | /** @deprecated 21.0.0 use UserDeletedEvent event with the IEventDispatcher instead */ |
313 | 313 | $this->emitter->emit('\OC\User', 'postDelete', [$this]); |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | * @return bool |
326 | 326 | */ |
327 | 327 | public function setPassword($password, $recoveryPassword = null) { |
328 | - $this->legacyDispatcher->dispatch(IUser::class . '::preSetPassword', new GenericEvent($this, [ |
|
328 | + $this->legacyDispatcher->dispatch(IUser::class.'::preSetPassword', new GenericEvent($this, [ |
|
329 | 329 | 'password' => $password, |
330 | 330 | 'recoveryPassword' => $recoveryPassword, |
331 | 331 | ])); |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | $result = $backend->setPassword($this->uid, $password); |
339 | 339 | |
340 | 340 | if ($result !== false) { |
341 | - $this->legacyDispatcher->dispatch(IUser::class . '::postSetPassword', new GenericEvent($this, [ |
|
341 | + $this->legacyDispatcher->dispatch(IUser::class.'::postSetPassword', new GenericEvent($this, [ |
|
342 | 342 | 'password' => $password, |
343 | 343 | 'recoveryPassword' => $recoveryPassword, |
344 | 344 | ])); |
@@ -364,9 +364,9 @@ discard block |
||
364 | 364 | if (($this->backend instanceof IGetHomeBackend || $this->backend->implementsActions(Backend::GET_HOME)) && $home = $this->backend->getHome($this->uid)) { |
365 | 365 | $this->home = $home; |
366 | 366 | } elseif ($this->config) { |
367 | - $this->home = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/' . $this->uid; |
|
367 | + $this->home = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/'.$this->uid; |
|
368 | 368 | } else { |
369 | - $this->home = \OC::$SERVERROOT . '/data/' . $this->uid; |
|
369 | + $this->home = \OC::$SERVERROOT.'/data/'.$this->uid; |
|
370 | 370 | } |
371 | 371 | } |
372 | 372 | return $this->home; |
@@ -520,7 +520,7 @@ discard block |
||
520 | 520 | $oldQuota = $this->config->getUserValue($this->uid, 'files', 'quota', ''); |
521 | 521 | if ($quota !== 'none' and $quota !== 'default') { |
522 | 522 | $quota = OC_Helper::computerFileSize($quota); |
523 | - $quota = OC_Helper::humanFileSize((int)$quota); |
|
523 | + $quota = OC_Helper::humanFileSize((int) $quota); |
|
524 | 524 | } |
525 | 525 | if ($quota !== $oldQuota) { |
526 | 526 | $this->config->setUserValue($this->uid, 'files', 'quota', $quota); |
@@ -563,7 +563,7 @@ discard block |
||
563 | 563 | $server = substr($server, 0, -10); |
564 | 564 | } |
565 | 565 | $server = $this->removeProtocolFromUrl($server); |
566 | - return $uid . '@' . $server; |
|
566 | + return $uid.'@'.$server; |
|
567 | 567 | } |
568 | 568 | |
569 | 569 | private function removeProtocolFromUrl(string $url): string { |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | } |
576 | 576 | |
577 | 577 | public function triggerChange($feature, $value = null, $oldValue = null) { |
578 | - $this->legacyDispatcher->dispatch(IUser::class . '::changeUser', new GenericEvent($this, [ |
|
578 | + $this->legacyDispatcher->dispatch(IUser::class.'::changeUser', new GenericEvent($this, [ |
|
579 | 579 | 'feature' => $feature, |
580 | 580 | 'value' => $value, |
581 | 581 | 'oldValue' => $oldValue, |