Passed
Push — master ( 408ed7...54726d )
by Morris
14:32 queued 12s
created
lib/private/User/User.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 	 * @return bool
212 212
 	 */
213 213
 	public function delete() {
214
-		$this->legacyDispatcher->dispatch(IUser::class . '::preDelete', new GenericEvent($this));
214
+		$this->legacyDispatcher->dispatch(IUser::class.'::preDelete', new GenericEvent($this));
215 215
 		if ($this->emitter) {
216 216
 			$this->emitter->emit('\OC\User', 'preDelete', [$this]);
217 217
 		}
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 			}
244 244
 
245 245
 			// Delete the users entry in the storage table
246
-			Storage::remove('home::' . $this->uid);
246
+			Storage::remove('home::'.$this->uid);
247 247
 
248 248
 			\OC::$server->getCommentsManager()->deleteReferencesOfActor('users', $this->uid);
249 249
 			\OC::$server->getCommentsManager()->deleteReadMarksFromUser($this);
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 			$accountManager = \OC::$server->query(AccountManager::class);
261 261
 			$accountManager->deleteUser($this);
262 262
 
263
-			$this->legacyDispatcher->dispatch(IUser::class . '::postDelete', new GenericEvent($this));
263
+			$this->legacyDispatcher->dispatch(IUser::class.'::postDelete', new GenericEvent($this));
264 264
 			if ($this->emitter) {
265 265
 				$this->emitter->emit('\OC\User', 'postDelete', [$this]);
266 266
 			}
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
 	 * @return bool
277 277
 	 */
278 278
 	public function setPassword($password, $recoveryPassword = null) {
279
-		$this->legacyDispatcher->dispatch(IUser::class . '::preSetPassword', new GenericEvent($this, [
279
+		$this->legacyDispatcher->dispatch(IUser::class.'::preSetPassword', new GenericEvent($this, [
280 280
 			'password' => $password,
281 281
 			'recoveryPassword' => $recoveryPassword,
282 282
 		]));
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 		}
286 286
 		if ($this->backend->implementsActions(Backend::SET_PASSWORD)) {
287 287
 			$result = $this->backend->setPassword($this->uid, $password);
288
-			$this->legacyDispatcher->dispatch(IUser::class . '::postSetPassword', new GenericEvent($this, [
288
+			$this->legacyDispatcher->dispatch(IUser::class.'::postSetPassword', new GenericEvent($this, [
289 289
 				'password' => $password,
290 290
 				'recoveryPassword' => $recoveryPassword,
291 291
 			]));
@@ -308,9 +308,9 @@  discard block
 block discarded – undo
308 308
 			if ($this->backend->implementsActions(Backend::GET_HOME) and $home = $this->backend->getHome($this->uid)) {
309 309
 				$this->home = $home;
310 310
 			} elseif ($this->config) {
311
-				$this->home = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data') . '/' . $this->uid;
311
+				$this->home = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT.'/data').'/'.$this->uid;
312 312
 			} else {
313
-				$this->home = \OC::$SERVERROOT . '/data/' . $this->uid;
313
+				$this->home = \OC::$SERVERROOT.'/data/'.$this->uid;
314 314
 			}
315 315
 		}
316 316
 		return $this->home;
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 	public function getCloudId() {
464 464
 		$uid = $this->getUID();
465 465
 		$server = $this->urlGenerator->getAbsoluteURL('/');
466
-		$server =  rtrim($this->removeProtocolFromUrl($server), '/');
466
+		$server = rtrim($this->removeProtocolFromUrl($server), '/');
467 467
 		return \OC::$server->getCloudIdManager()->getCloudId($uid, $server)->getId();
468 468
 	}
469 469
 
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 	}
483 483
 
484 484
 	public function triggerChange($feature, $value = null, $oldValue = null) {
485
-		$this->legacyDispatcher->dispatch(IUser::class . '::changeUser', new GenericEvent($this, [
485
+		$this->legacyDispatcher->dispatch(IUser::class.'::changeUser', new GenericEvent($this, [
486 486
 			'feature' => $feature,
487 487
 			'value' => $value,
488 488
 			'oldValue' => $oldValue,
Please login to merge, or discard this patch.