@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $this->uid = $uid; |
| 85 | 85 | $this->backend = $backend; |
| 86 | 86 | $this->emitter = $emitter; |
| 87 | - if(is_null($config)) { |
|
| 87 | + if (is_null($config)) { |
|
| 88 | 88 | $config = \OC::$server->getConfig(); |
| 89 | 89 | } |
| 90 | 90 | $this->config = $config; |
@@ -160,12 +160,12 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | public function setEMailAddress($mailAddress) { |
| 162 | 162 | $oldMailAddress = $this->getEMailAddress(); |
| 163 | - if($mailAddress === '') { |
|
| 163 | + if ($mailAddress === '') { |
|
| 164 | 164 | $this->config->deleteUserValue($this->uid, 'settings', 'email'); |
| 165 | 165 | } else { |
| 166 | 166 | $this->config->setUserValue($this->uid, 'settings', 'email', $mailAddress); |
| 167 | 167 | } |
| 168 | - if($oldMailAddress !== $mailAddress) { |
|
| 168 | + if ($oldMailAddress !== $mailAddress) { |
|
| 169 | 169 | $this->triggerChange('eMailAddress', $mailAddress, $oldMailAddress); |
| 170 | 170 | } |
| 171 | 171 | } |
@@ -229,7 +229,7 @@ discard block |
||
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | // Delete the users entry in the storage table |
| 232 | - Storage::remove('home::' . $this->uid); |
|
| 232 | + Storage::remove('home::'.$this->uid); |
|
| 233 | 233 | |
| 234 | 234 | \OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->uid); |
| 235 | 235 | \OC::$server->getCommentsManager()->deleteReadMarksFromUser($this); |
@@ -281,9 +281,9 @@ discard block |
||
| 281 | 281 | if ($this->backend->implementsActions(Backend::GET_HOME) and $home = $this->backend->getHome($this->uid)) { |
| 282 | 282 | $this->home = $home; |
| 283 | 283 | } elseif ($this->config) { |
| 284 | - $this->home = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/' . $this->uid; |
|
| 284 | + $this->home = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/'.$this->uid; |
|
| 285 | 285 | } else { |
| 286 | - $this->home = \OC::$SERVERROOT . '/data/' . $this->uid; |
|
| 286 | + $this->home = \OC::$SERVERROOT.'/data/'.$this->uid; |
|
| 287 | 287 | } |
| 288 | 288 | } |
| 289 | 289 | return $this->home; |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | * @return string |
| 296 | 296 | */ |
| 297 | 297 | public function getBackendClassName() { |
| 298 | - if($this->backend instanceof IUserBackend) { |
|
| 298 | + if ($this->backend instanceof IUserBackend) { |
|
| 299 | 299 | return $this->backend->getBackendName(); |
| 300 | 300 | } |
| 301 | 301 | return get_class($this->backend); |
@@ -376,7 +376,7 @@ discard block |
||
| 376 | 376 | */ |
| 377 | 377 | public function getQuota() { |
| 378 | 378 | $quota = $this->config->getUserValue($this->uid, 'files', 'quota', 'default'); |
| 379 | - if($quota === 'default') { |
|
| 379 | + if ($quota === 'default') { |
|
| 380 | 380 | $quota = $this->config->getAppValue('files', 'default_quota', 'none'); |
| 381 | 381 | } |
| 382 | 382 | return $quota; |
@@ -391,12 +391,12 @@ discard block |
||
| 391 | 391 | */ |
| 392 | 392 | public function setQuota($quota) { |
| 393 | 393 | $oldQuota = $this->config->getUserValue($this->uid, 'files', 'quota', ''); |
| 394 | - if($quota !== 'none' and $quota !== 'default') { |
|
| 394 | + if ($quota !== 'none' and $quota !== 'default') { |
|
| 395 | 395 | $quota = OC_Helper::computerFileSize($quota); |
| 396 | 396 | $quota = OC_Helper::humanFileSize($quota); |
| 397 | 397 | } |
| 398 | 398 | $this->config->setUserValue($this->uid, 'files', 'quota', $quota); |
| 399 | - if($quota !== $oldQuota) { |
|
| 399 | + if ($quota !== $oldQuota) { |
|
| 400 | 400 | $this->triggerChange('quota', $quota); |
| 401 | 401 | } |
| 402 | 402 | } |
@@ -432,7 +432,7 @@ discard block |
||
| 432 | 432 | public function getCloudId() { |
| 433 | 433 | $uid = $this->getUID(); |
| 434 | 434 | $server = $this->urlGenerator->getAbsoluteURL('/'); |
| 435 | - $server = rtrim( $this->removeProtocolFromUrl($server), '/'); |
|
| 435 | + $server = rtrim($this->removeProtocolFromUrl($server), '/'); |
|
| 436 | 436 | return \OC::$server->getCloudIdManager()->getCloudId($uid, $server)->getId(); |
| 437 | 437 | } |
| 438 | 438 | |