Passed
Push — master ( 88eebf...0247f2 )
by Morris
10:38 queued 11s
created
lib/private/Server.php 1 patch
Spacing   +96 added lines, -96 removed lines patch added patch discarded remove patch
@@ -261,10 +261,10 @@  discard block
 block discarded – undo
261 261
 		$this->registerParameter('isCLI', \OC::$CLI);
262 262
 		$this->registerParameter('serverRoot', \OC::$SERVERROOT);
263 263
 
264
-		$this->registerService(ContainerInterface::class, function (ContainerInterface $c) {
264
+		$this->registerService(ContainerInterface::class, function(ContainerInterface $c) {
265 265
 			return $c;
266 266
 		});
267
-		$this->registerService(\OCP\IServerContainer::class, function (ContainerInterface $c) {
267
+		$this->registerService(\OCP\IServerContainer::class, function(ContainerInterface $c) {
268 268
 			return $c;
269 269
 		});
270 270
 
@@ -289,7 +289,7 @@  discard block
 block discarded – undo
289 289
 		$this->registerAlias(IActionFactory::class, ActionFactory::class);
290 290
 
291 291
 
292
-		$this->registerService(IPreview::class, function (ContainerInterface $c) {
292
+		$this->registerService(IPreview::class, function(ContainerInterface $c) {
293 293
 			return new PreviewManager(
294 294
 				$c->get(\OCP\IConfig::class),
295 295
 				$c->get(IRootFolder::class),
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 		/** @deprecated 19.0.0 */
306 306
 		$this->registerDeprecatedAlias('PreviewManager', IPreview::class);
307 307
 
308
-		$this->registerService(\OC\Preview\Watcher::class, function (ContainerInterface $c) {
308
+		$this->registerService(\OC\Preview\Watcher::class, function(ContainerInterface $c) {
309 309
 			return new \OC\Preview\Watcher(
310 310
 				new \OC\Preview\Storage\Root(
311 311
 					$c->get(IRootFolder::class),
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 			);
315 315
 		});
316 316
 
317
-		$this->registerService(\OCP\Encryption\IManager::class, function (Server $c) {
317
+		$this->registerService(\OCP\Encryption\IManager::class, function(Server $c) {
318 318
 			$view = new View();
319 319
 			$util = new Encryption\Util(
320 320
 				$view,
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
 		/** @deprecated 19.0.0 */
335 335
 		$this->registerDeprecatedAlias('EncryptionManager', \OCP\Encryption\IManager::class);
336 336
 
337
-		$this->registerService('EncryptionFileHelper', function (ContainerInterface $c) {
337
+		$this->registerService('EncryptionFileHelper', function(ContainerInterface $c) {
338 338
 			$util = new Encryption\Util(
339 339
 				new View(),
340 340
 				$c->get(IUserManager::class),
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
 			);
349 349
 		});
350 350
 
351
-		$this->registerService('EncryptionKeyStorage', function (ContainerInterface $c) {
351
+		$this->registerService('EncryptionKeyStorage', function(ContainerInterface $c) {
352 352
 			$view = new View();
353 353
 			$util = new Encryption\Util(
354 354
 				$view,
@@ -371,22 +371,22 @@  discard block
 block discarded – undo
371 371
 		/** @deprecated 19.0.0 */
372 372
 		$this->registerDeprecatedAlias('TagManager', \OCP\ITagManager::class);
373 373
 
374
-		$this->registerService('SystemTagManagerFactory', function (ContainerInterface $c) {
374
+		$this->registerService('SystemTagManagerFactory', function(ContainerInterface $c) {
375 375
 			/** @var \OCP\IConfig $config */
376 376
 			$config = $c->get(\OCP\IConfig::class);
377 377
 			$factoryClass = $config->getSystemValue('systemtags.managerFactory', SystemTagManagerFactory::class);
378 378
 			return new $factoryClass($this);
379 379
 		});
380
-		$this->registerService(ISystemTagManager::class, function (ContainerInterface $c) {
380
+		$this->registerService(ISystemTagManager::class, function(ContainerInterface $c) {
381 381
 			return $c->get('SystemTagManagerFactory')->getManager();
382 382
 		});
383 383
 		/** @deprecated 19.0.0 */
384 384
 		$this->registerDeprecatedAlias('SystemTagManager', ISystemTagManager::class);
385 385
 
386
-		$this->registerService(ISystemTagObjectMapper::class, function (ContainerInterface $c) {
386
+		$this->registerService(ISystemTagObjectMapper::class, function(ContainerInterface $c) {
387 387
 			return $c->get('SystemTagManagerFactory')->getObjectMapper();
388 388
 		});
389
-		$this->registerService('RootFolder', function (ContainerInterface $c) {
389
+		$this->registerService('RootFolder', function(ContainerInterface $c) {
390 390
 			$manager = \OC\Files\Filesystem::getMountManager(null);
391 391
 			$view = new View();
392 392
 			$root = new Root(
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 
407 407
 			return $root;
408 408
 		});
409
-		$this->registerService(HookConnector::class, function (ContainerInterface $c) {
409
+		$this->registerService(HookConnector::class, function(ContainerInterface $c) {
410 410
 			return new HookConnector(
411 411
 				$c->get(IRootFolder::class),
412 412
 				new View(),
@@ -418,8 +418,8 @@  discard block
 block discarded – undo
418 418
 		/** @deprecated 19.0.0 */
419 419
 		$this->registerDeprecatedAlias('SystemTagObjectMapper', ISystemTagObjectMapper::class);
420 420
 
421
-		$this->registerService(IRootFolder::class, function (ContainerInterface $c) {
422
-			return new LazyRoot(function () use ($c) {
421
+		$this->registerService(IRootFolder::class, function(ContainerInterface $c) {
422
+			return new LazyRoot(function() use ($c) {
423 423
 				return $c->get('RootFolder');
424 424
 			});
425 425
 		});
@@ -430,44 +430,44 @@  discard block
 block discarded – undo
430 430
 		$this->registerDeprecatedAlias('UserManager', \OC\User\Manager::class);
431 431
 		$this->registerAlias(\OCP\IUserManager::class, \OC\User\Manager::class);
432 432
 
433
-		$this->registerService(\OCP\IGroupManager::class, function (ContainerInterface $c) {
433
+		$this->registerService(\OCP\IGroupManager::class, function(ContainerInterface $c) {
434 434
 			$groupManager = new \OC\Group\Manager($this->get(IUserManager::class), $c->get(SymfonyAdapter::class), $this->get(ILogger::class));
435
-			$groupManager->listen('\OC\Group', 'preCreate', function ($gid) {
435
+			$groupManager->listen('\OC\Group', 'preCreate', function($gid) {
436 436
 				\OC_Hook::emit('OC_Group', 'pre_createGroup', ['run' => true, 'gid' => $gid]);
437 437
 
438 438
 				/** @var IEventDispatcher $dispatcher */
439 439
 				$dispatcher = $this->get(IEventDispatcher::class);
440 440
 				$dispatcher->dispatchTyped(new BeforeGroupCreatedEvent($gid));
441 441
 			});
442
-			$groupManager->listen('\OC\Group', 'postCreate', function (\OC\Group\Group $group) {
442
+			$groupManager->listen('\OC\Group', 'postCreate', function(\OC\Group\Group $group) {
443 443
 				\OC_Hook::emit('OC_User', 'post_createGroup', ['gid' => $group->getGID()]);
444 444
 
445 445
 				/** @var IEventDispatcher $dispatcher */
446 446
 				$dispatcher = $this->get(IEventDispatcher::class);
447 447
 				$dispatcher->dispatchTyped(new GroupCreatedEvent($group));
448 448
 			});
449
-			$groupManager->listen('\OC\Group', 'preDelete', function (\OC\Group\Group $group) {
449
+			$groupManager->listen('\OC\Group', 'preDelete', function(\OC\Group\Group $group) {
450 450
 				\OC_Hook::emit('OC_Group', 'pre_deleteGroup', ['run' => true, 'gid' => $group->getGID()]);
451 451
 
452 452
 				/** @var IEventDispatcher $dispatcher */
453 453
 				$dispatcher = $this->get(IEventDispatcher::class);
454 454
 				$dispatcher->dispatchTyped(new BeforeGroupDeletedEvent($group));
455 455
 			});
456
-			$groupManager->listen('\OC\Group', 'postDelete', function (\OC\Group\Group $group) {
456
+			$groupManager->listen('\OC\Group', 'postDelete', function(\OC\Group\Group $group) {
457 457
 				\OC_Hook::emit('OC_User', 'post_deleteGroup', ['gid' => $group->getGID()]);
458 458
 
459 459
 				/** @var IEventDispatcher $dispatcher */
460 460
 				$dispatcher = $this->get(IEventDispatcher::class);
461 461
 				$dispatcher->dispatchTyped(new GroupDeletedEvent($group));
462 462
 			});
463
-			$groupManager->listen('\OC\Group', 'preAddUser', function (\OC\Group\Group $group, \OC\User\User $user) {
463
+			$groupManager->listen('\OC\Group', 'preAddUser', function(\OC\Group\Group $group, \OC\User\User $user) {
464 464
 				\OC_Hook::emit('OC_Group', 'pre_addToGroup', ['run' => true, 'uid' => $user->getUID(), 'gid' => $group->getGID()]);
465 465
 
466 466
 				/** @var IEventDispatcher $dispatcher */
467 467
 				$dispatcher = $this->get(IEventDispatcher::class);
468 468
 				$dispatcher->dispatchTyped(new BeforeUserAddedEvent($group, $user));
469 469
 			});
470
-			$groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) {
470
+			$groupManager->listen('\OC\Group', 'postAddUser', function(\OC\Group\Group $group, \OC\User\User $user) {
471 471
 				\OC_Hook::emit('OC_Group', 'post_addToGroup', ['uid' => $user->getUID(), 'gid' => $group->getGID()]);
472 472
 				//Minimal fix to keep it backward compatible TODO: clean up all the GroupManager hooks
473 473
 				\OC_Hook::emit('OC_User', 'post_addToGroup', ['uid' => $user->getUID(), 'gid' => $group->getGID()]);
@@ -476,12 +476,12 @@  discard block
 block discarded – undo
476 476
 				$dispatcher = $this->get(IEventDispatcher::class);
477 477
 				$dispatcher->dispatchTyped(new UserAddedEvent($group, $user));
478 478
 			});
479
-			$groupManager->listen('\OC\Group', 'preRemoveUser', function (\OC\Group\Group $group, \OC\User\User $user) {
479
+			$groupManager->listen('\OC\Group', 'preRemoveUser', function(\OC\Group\Group $group, \OC\User\User $user) {
480 480
 				/** @var IEventDispatcher $dispatcher */
481 481
 				$dispatcher = $this->get(IEventDispatcher::class);
482 482
 				$dispatcher->dispatchTyped(new BeforeUserRemovedEvent($group, $user));
483 483
 			});
484
-			$groupManager->listen('\OC\Group', 'postRemoveUser', function (\OC\Group\Group $group, \OC\User\User $user) {
484
+			$groupManager->listen('\OC\Group', 'postRemoveUser', function(\OC\Group\Group $group, \OC\User\User $user) {
485 485
 				/** @var IEventDispatcher $dispatcher */
486 486
 				$dispatcher = $this->get(IEventDispatcher::class);
487 487
 				$dispatcher->dispatchTyped(new UserRemovedEvent($group, $user));
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 		/** @deprecated 19.0.0 */
492 492
 		$this->registerDeprecatedAlias('GroupManager', \OCP\IGroupManager::class);
493 493
 
494
-		$this->registerService(Store::class, function (ContainerInterface $c) {
494
+		$this->registerService(Store::class, function(ContainerInterface $c) {
495 495
 			$session = $c->get(ISession::class);
496 496
 			if (\OC::$server->get(SystemConfig::class)->getValue('installed', false)) {
497 497
 				$tokenProvider = $c->get(IProvider::class);
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
 		$this->registerAlias(IStore::class, Store::class);
505 505
 		$this->registerAlias(IProvider::class, Authentication\Token\Manager::class);
506 506
 
507
-		$this->registerService(\OC\User\Session::class, function (Server $c) {
507
+		$this->registerService(\OC\User\Session::class, function(Server $c) {
508 508
 			$manager = $c->get(IUserManager::class);
509 509
 			$session = new \OC\Session\Memory('');
510 510
 			$timeFactory = new TimeFactory();
@@ -529,18 +529,18 @@  discard block
 block discarded – undo
529 529
 				$c->get(ILogger::class),
530 530
 				$c->get(IEventDispatcher::class)
531 531
 			);
532
-			$userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) {
532
+			$userSession->listen('\OC\User', 'preCreateUser', function($uid, $password) {
533 533
 				\OC_Hook::emit('OC_User', 'pre_createUser', ['run' => true, 'uid' => $uid, 'password' => $password]);
534 534
 
535 535
 				/** @var IEventDispatcher $dispatcher */
536 536
 				$dispatcher = $this->get(IEventDispatcher::class);
537 537
 				$dispatcher->dispatchTyped(new BeforeUserCreatedEvent($uid, $password));
538 538
 			});
539
-			$userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) {
539
+			$userSession->listen('\OC\User', 'postCreateUser', function($user, $password) {
540 540
 				/** @var \OC\User\User $user */
541 541
 				\OC_Hook::emit('OC_User', 'post_createUser', ['uid' => $user->getUID(), 'password' => $password]);
542 542
 			});
543
-			$userSession->listen('\OC\User', 'preDelete', function ($user) use ($legacyDispatcher) {
543
+			$userSession->listen('\OC\User', 'preDelete', function($user) use ($legacyDispatcher) {
544 544
 				/** @var \OC\User\User $user */
545 545
 				\OC_Hook::emit('OC_User', 'pre_deleteUser', ['run' => true, 'uid' => $user->getUID()]);
546 546
 				$legacyDispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user));
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 				$dispatcher = $this->get(IEventDispatcher::class);
550 550
 				$dispatcher->dispatchTyped(new BeforeUserDeletedEvent($user));
551 551
 			});
552
-			$userSession->listen('\OC\User', 'postDelete', function ($user) {
552
+			$userSession->listen('\OC\User', 'postDelete', function($user) {
553 553
 				/** @var \OC\User\User $user */
554 554
 				\OC_Hook::emit('OC_User', 'post_deleteUser', ['uid' => $user->getUID()]);
555 555
 
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
 				$dispatcher = $this->get(IEventDispatcher::class);
558 558
 				$dispatcher->dispatchTyped(new UserDeletedEvent($user));
559 559
 			});
560
-			$userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) {
560
+			$userSession->listen('\OC\User', 'preSetPassword', function($user, $password, $recoveryPassword) {
561 561
 				/** @var \OC\User\User $user */
562 562
 				\OC_Hook::emit('OC_User', 'pre_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]);
563 563
 
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
 				$dispatcher = $this->get(IEventDispatcher::class);
566 566
 				$dispatcher->dispatchTyped(new BeforePasswordUpdatedEvent($user, $password, $recoveryPassword));
567 567
 			});
568
-			$userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) {
568
+			$userSession->listen('\OC\User', 'postSetPassword', function($user, $password, $recoveryPassword) {
569 569
 				/** @var \OC\User\User $user */
570 570
 				\OC_Hook::emit('OC_User', 'post_setPassword', ['run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword]);
571 571
 
@@ -573,14 +573,14 @@  discard block
 block discarded – undo
573 573
 				$dispatcher = $this->get(IEventDispatcher::class);
574 574
 				$dispatcher->dispatchTyped(new PasswordUpdatedEvent($user, $password, $recoveryPassword));
575 575
 			});
576
-			$userSession->listen('\OC\User', 'preLogin', function ($uid, $password) {
576
+			$userSession->listen('\OC\User', 'preLogin', function($uid, $password) {
577 577
 				\OC_Hook::emit('OC_User', 'pre_login', ['run' => true, 'uid' => $uid, 'password' => $password]);
578 578
 
579 579
 				/** @var IEventDispatcher $dispatcher */
580 580
 				$dispatcher = $this->get(IEventDispatcher::class);
581 581
 				$dispatcher->dispatchTyped(new BeforeUserLoggedInEvent($uid, $password));
582 582
 			});
583
-			$userSession->listen('\OC\User', 'postLogin', function ($user, $loginName, $password, $isTokenLogin) {
583
+			$userSession->listen('\OC\User', 'postLogin', function($user, $loginName, $password, $isTokenLogin) {
584 584
 				/** @var \OC\User\User $user */
585 585
 				\OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'loginName' => $loginName, 'password' => $password, 'isTokenLogin' => $isTokenLogin]);
586 586
 
@@ -588,12 +588,12 @@  discard block
 block discarded – undo
588 588
 				$dispatcher = $this->get(IEventDispatcher::class);
589 589
 				$dispatcher->dispatchTyped(new UserLoggedInEvent($user, $password, $isTokenLogin));
590 590
 			});
591
-			$userSession->listen('\OC\User', 'preRememberedLogin', function ($uid) {
591
+			$userSession->listen('\OC\User', 'preRememberedLogin', function($uid) {
592 592
 				/** @var IEventDispatcher $dispatcher */
593 593
 				$dispatcher = $this->get(IEventDispatcher::class);
594 594
 				$dispatcher->dispatchTyped(new BeforeUserLoggedInWithCookieEvent($uid));
595 595
 			});
596
-			$userSession->listen('\OC\User', 'postRememberedLogin', function ($user, $password) {
596
+			$userSession->listen('\OC\User', 'postRememberedLogin', function($user, $password) {
597 597
 				/** @var \OC\User\User $user */
598 598
 				\OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'password' => $password]);
599 599
 
@@ -601,19 +601,19 @@  discard block
 block discarded – undo
601 601
 				$dispatcher = $this->get(IEventDispatcher::class);
602 602
 				$dispatcher->dispatchTyped(new UserLoggedInWithCookieEvent($user, $password));
603 603
 			});
604
-			$userSession->listen('\OC\User', 'logout', function ($user) {
604
+			$userSession->listen('\OC\User', 'logout', function($user) {
605 605
 				\OC_Hook::emit('OC_User', 'logout', []);
606 606
 
607 607
 				/** @var IEventDispatcher $dispatcher */
608 608
 				$dispatcher = $this->get(IEventDispatcher::class);
609 609
 				$dispatcher->dispatchTyped(new BeforeUserLoggedOutEvent($user));
610 610
 			});
611
-			$userSession->listen('\OC\User', 'postLogout', function ($user) {
611
+			$userSession->listen('\OC\User', 'postLogout', function($user) {
612 612
 				/** @var IEventDispatcher $dispatcher */
613 613
 				$dispatcher = $this->get(IEventDispatcher::class);
614 614
 				$dispatcher->dispatchTyped(new UserLoggedOutEvent($user));
615 615
 			});
616
-			$userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) {
616
+			$userSession->listen('\OC\User', 'changeUser', function($user, $feature, $value, $oldValue) {
617 617
 				/** @var \OC\User\User $user */
618 618
 				\OC_Hook::emit('OC_User', 'changeUser', ['run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue]);
619 619
 
@@ -637,7 +637,7 @@  discard block
 block discarded – undo
637 637
 		$this->registerDeprecatedAlias('AllConfig', \OC\AllConfig::class);
638 638
 		$this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class);
639 639
 
640
-		$this->registerService(\OC\SystemConfig::class, function ($c) use ($config) {
640
+		$this->registerService(\OC\SystemConfig::class, function($c) use ($config) {
641 641
 			return new \OC\SystemConfig($config);
642 642
 		});
643 643
 		/** @deprecated 19.0.0 */
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 		$this->registerDeprecatedAlias('AppConfig', \OC\AppConfig::class);
648 648
 		$this->registerAlias(IAppConfig::class, \OC\AppConfig::class);
649 649
 
650
-		$this->registerService(IFactory::class, function (Server $c) {
650
+		$this->registerService(IFactory::class, function(Server $c) {
651 651
 			return new \OC\L10N\Factory(
652 652
 				$c->get(\OCP\IConfig::class),
653 653
 				$c->getRequest(),
@@ -667,13 +667,13 @@  discard block
 block discarded – undo
667 667
 		/** @deprecated 19.0.0 */
668 668
 		$this->registerDeprecatedAlias('CategoryFetcher', CategoryFetcher::class);
669 669
 
670
-		$this->registerService(ICache::class, function ($c) {
670
+		$this->registerService(ICache::class, function($c) {
671 671
 			return new Cache\File();
672 672
 		});
673 673
 		/** @deprecated 19.0.0 */
674 674
 		$this->registerDeprecatedAlias('UserCache', ICache::class);
675 675
 
676
-		$this->registerService(Factory::class, function (Server $c) {
676
+		$this->registerService(Factory::class, function(Server $c) {
677 677
 			$arrayCacheFactory = new \OC\Memcache\Factory('', $c->get(ILogger::class),
678 678
 				ArrayCache::class,
679 679
 				ArrayCache::class,
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
 				$version = implode(',', $v);
689 689
 				$instanceId = \OC_Util::getInstanceId();
690 690
 				$path = \OC::$SERVERROOT;
691
-				$prefix = md5($instanceId . '-' . $version . '-' . $path);
691
+				$prefix = md5($instanceId.'-'.$version.'-'.$path);
692 692
 				return new \OC\Memcache\Factory($prefix, $c->get(ILogger::class),
693 693
 					$config->getSystemValue('memcache.local', null),
694 694
 					$config->getSystemValue('memcache.distributed', null),
@@ -701,12 +701,12 @@  discard block
 block discarded – undo
701 701
 		$this->registerDeprecatedAlias('MemCacheFactory', Factory::class);
702 702
 		$this->registerAlias(ICacheFactory::class, Factory::class);
703 703
 
704
-		$this->registerService('RedisFactory', function (Server $c) {
704
+		$this->registerService('RedisFactory', function(Server $c) {
705 705
 			$systemConfig = $c->get(SystemConfig::class);
706 706
 			return new RedisFactory($systemConfig);
707 707
 		});
708 708
 
709
-		$this->registerService(\OCP\Activity\IManager::class, function (Server $c) {
709
+		$this->registerService(\OCP\Activity\IManager::class, function(Server $c) {
710 710
 			$l10n = $this->get(IFactory::class)->get('lib');
711 711
 			return new \OC\Activity\Manager(
712 712
 				$c->getRequest(),
@@ -719,14 +719,14 @@  discard block
 block discarded – undo
719 719
 		/** @deprecated 19.0.0 */
720 720
 		$this->registerDeprecatedAlias('ActivityManager', \OCP\Activity\IManager::class);
721 721
 
722
-		$this->registerService(\OCP\Activity\IEventMerger::class, function (Server $c) {
722
+		$this->registerService(\OCP\Activity\IEventMerger::class, function(Server $c) {
723 723
 			return new \OC\Activity\EventMerger(
724 724
 				$c->getL10N('lib')
725 725
 			);
726 726
 		});
727 727
 		$this->registerAlias(IValidator::class, Validator::class);
728 728
 
729
-		$this->registerService(AvatarManager::class, function (Server $c) {
729
+		$this->registerService(AvatarManager::class, function(Server $c) {
730 730
 			return new AvatarManager(
731 731
 				$c->get(\OC\User\Manager::class),
732 732
 				$c->getAppDataDir('avatar'),
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
 		$this->registerAlias(\OCP\Support\CrashReport\IRegistry::class, \OC\Support\CrashReport\Registry::class);
743 743
 		$this->registerAlias(\OCP\Support\Subscription\IRegistry::class, \OC\Support\Subscription\Registry::class);
744 744
 
745
-		$this->registerService(\OC\Log::class, function (Server $c) {
745
+		$this->registerService(\OC\Log::class, function(Server $c) {
746 746
 			$logType = $c->get(AllConfig::class)->getSystemValue('log_type', 'file');
747 747
 			$factory = new LogFactory($c, $this->get(SystemConfig::class));
748 748
 			$logger = $factory->get($logType);
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
 		// PSR-3 logger
757 757
 		$this->registerAlias(LoggerInterface::class, PsrLoggerAdapter::class);
758 758
 
759
-		$this->registerService(ILogFactory::class, function (Server $c) {
759
+		$this->registerService(ILogFactory::class, function(Server $c) {
760 760
 			return new LogFactory($c, $this->get(SystemConfig::class));
761 761
 		});
762 762
 
@@ -764,7 +764,7 @@  discard block
 block discarded – undo
764 764
 		/** @deprecated 19.0.0 */
765 765
 		$this->registerDeprecatedAlias('JobList', IJobList::class);
766 766
 
767
-		$this->registerService(IRouter::class, function (Server $c) {
767
+		$this->registerService(IRouter::class, function(Server $c) {
768 768
 			$cacheFactory = $c->get(ICacheFactory::class);
769 769
 			$logger = $c->get(ILogger::class);
770 770
 			if ($cacheFactory->isLocalCacheAvailable()) {
@@ -781,7 +781,7 @@  discard block
 block discarded – undo
781 781
 		/** @deprecated 19.0.0 */
782 782
 		$this->registerDeprecatedAlias('Search', ISearch::class);
783 783
 
784
-		$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) {
784
+		$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function($c) {
785 785
 			return new \OC\Security\RateLimiting\Backend\MemoryCache(
786 786
 				$this->get(ICacheFactory::class),
787 787
 				new \OC\AppFramework\Utility\TimeFactory()
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
 		/** @deprecated 19.0.0 */
805 805
 		$this->registerDeprecatedAlias('CredentialsManager', ICredentialsManager::class);
806 806
 
807
-		$this->registerService(IDBConnection::class, function (Server $c) {
807
+		$this->registerService(IDBConnection::class, function(Server $c) {
808 808
 			$systemConfig = $c->get(SystemConfig::class);
809 809
 			$factory = new \OC\DB\ConnectionFactory($systemConfig);
810 810
 			$type = $systemConfig->getValue('dbtype', 'sqlite');
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
 		$this->registerAlias(ICertificateManager::class, CertificateManager::class);
823 823
 		$this->registerAlias(IClientService::class, ClientService::class);
824 824
 		$this->registerDeprecatedAlias('HttpClientService', IClientService::class);
825
-		$this->registerService(IEventLogger::class, function (ContainerInterface $c) {
825
+		$this->registerService(IEventLogger::class, function(ContainerInterface $c) {
826 826
 			$eventLogger = new EventLogger();
827 827
 			if ($c->get(SystemConfig::class)->getValue('debug', false)) {
828 828
 				// In debug mode, module is being activated by default
@@ -833,7 +833,7 @@  discard block
 block discarded – undo
833 833
 		/** @deprecated 19.0.0 */
834 834
 		$this->registerDeprecatedAlias('EventLogger', IEventLogger::class);
835 835
 
836
-		$this->registerService(IQueryLogger::class, function (ContainerInterface $c) {
836
+		$this->registerService(IQueryLogger::class, function(ContainerInterface $c) {
837 837
 			$queryLogger = new QueryLogger();
838 838
 			if ($c->get(SystemConfig::class)->getValue('debug', false)) {
839 839
 				// In debug mode, module is being activated by default
@@ -848,7 +848,7 @@  discard block
 block discarded – undo
848 848
 		$this->registerDeprecatedAlias('TempManager', TempManager::class);
849 849
 		$this->registerAlias(ITempManager::class, TempManager::class);
850 850
 
851
-		$this->registerService(AppManager::class, function (ContainerInterface $c) {
851
+		$this->registerService(AppManager::class, function(ContainerInterface $c) {
852 852
 			// TODO: use auto-wiring
853 853
 			return new \OC\App\AppManager(
854 854
 				$c->get(IUserSession::class),
@@ -868,7 +868,7 @@  discard block
 block discarded – undo
868 868
 		/** @deprecated 19.0.0 */
869 869
 		$this->registerDeprecatedAlias('DateTimeZone', IDateTimeZone::class);
870 870
 
871
-		$this->registerService(IDateTimeFormatter::class, function (Server $c) {
871
+		$this->registerService(IDateTimeFormatter::class, function(Server $c) {
872 872
 			$language = $c->get(\OCP\IConfig::class)->getUserValue($c->get(ISession::class)->get('user_id'), 'core', 'lang', null);
873 873
 
874 874
 			return new DateTimeFormatter(
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
 		/** @deprecated 19.0.0 */
880 880
 		$this->registerDeprecatedAlias('DateTimeFormatter', IDateTimeFormatter::class);
881 881
 
882
-		$this->registerService(IUserMountCache::class, function (ContainerInterface $c) {
882
+		$this->registerService(IUserMountCache::class, function(ContainerInterface $c) {
883 883
 			$mountCache = new UserMountCache(
884 884
 				$c->get(IDBConnection::class),
885 885
 				$c->get(IUserManager::class),
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
 		/** @deprecated 19.0.0 */
893 893
 		$this->registerDeprecatedAlias('UserMountCache', IUserMountCache::class);
894 894
 
895
-		$this->registerService(IMountProviderCollection::class, function (ContainerInterface $c) {
895
+		$this->registerService(IMountProviderCollection::class, function(ContainerInterface $c) {
896 896
 			$loader = \OC\Files\Filesystem::getLoader();
897 897
 			$mountCache = $c->get(IUserMountCache::class);
898 898
 			$manager = new \OC\Files\Config\MountProviderCollection($loader, $mountCache);
@@ -913,7 +913,7 @@  discard block
 block discarded – undo
913 913
 
914 914
 		/** @deprecated 20.0.0 */
915 915
 		$this->registerDeprecatedAlias('IniWrapper', IniGetWrapper::class);
916
-		$this->registerService(IBus::class, function (ContainerInterface $c) {
916
+		$this->registerService(IBus::class, function(ContainerInterface $c) {
917 917
 			$busClass = $c->get(\OCP\IConfig::class)->getSystemValue('commandbus');
918 918
 			if ($busClass) {
919 919
 				[$app, $class] = explode('::', $busClass, 2);
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
 		$this->registerDeprecatedAlias('TrustedDomainHelper', TrustedDomainHelper::class);
934 934
 		/** @deprecated 19.0.0 */
935 935
 		$this->registerDeprecatedAlias('Throttler', Throttler::class);
936
-		$this->registerService('IntegrityCodeChecker', function (ContainerInterface $c) {
936
+		$this->registerService('IntegrityCodeChecker', function(ContainerInterface $c) {
937 937
 			// IConfig and IAppManager requires a working database. This code
938 938
 			// might however be called when ownCloud is not yet setup.
939 939
 			if (\OC::$server->get(SystemConfig::class)->getValue('installed', false)) {
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
 				$c->get(IMimeTypeDetector::class)
956 956
 			);
957 957
 		});
958
-		$this->registerService(\OCP\IRequest::class, function (ContainerInterface $c) {
958
+		$this->registerService(\OCP\IRequest::class, function(ContainerInterface $c) {
959 959
 			if (isset($this['urlParams'])) {
960 960
 				$urlParams = $this['urlParams'];
961 961
 			} else {
@@ -992,7 +992,7 @@  discard block
 block discarded – undo
992 992
 		/** @deprecated 19.0.0 */
993 993
 		$this->registerDeprecatedAlias('Request', \OCP\IRequest::class);
994 994
 
995
-		$this->registerService(IMailer::class, function (Server $c) {
995
+		$this->registerService(IMailer::class, function(Server $c) {
996 996
 			return new Mailer(
997 997
 				$c->get(\OCP\IConfig::class),
998 998
 				$c->get(ILogger::class),
@@ -1006,7 +1006,7 @@  discard block
 block discarded – undo
1006 1006
 		/** @deprecated 19.0.0 */
1007 1007
 		$this->registerDeprecatedAlias('Mailer', IMailer::class);
1008 1008
 
1009
-		$this->registerService('LDAPProvider', function (ContainerInterface $c) {
1009
+		$this->registerService('LDAPProvider', function(ContainerInterface $c) {
1010 1010
 			$config = $c->get(\OCP\IConfig::class);
1011 1011
 			$factoryClass = $config->getSystemValue('ldapProviderFactory', null);
1012 1012
 			if (is_null($factoryClass)) {
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
 			$factory = new $factoryClass($this);
1017 1017
 			return $factory->getLDAPProvider();
1018 1018
 		});
1019
-		$this->registerService(ILockingProvider::class, function (ContainerInterface $c) {
1019
+		$this->registerService(ILockingProvider::class, function(ContainerInterface $c) {
1020 1020
 			$ini = $c->get(IniGetWrapper::class);
1021 1021
 			$config = $c->get(\OCP\IConfig::class);
1022 1022
 			$ttl = $config->getSystemValue('filelocking.ttl', max(3600, $ini->getNumeric('max_execution_time')));
@@ -1044,12 +1044,12 @@  discard block
 block discarded – undo
1044 1044
 		/** @deprecated 19.0.0 */
1045 1045
 		$this->registerDeprecatedAlias('MountManager', IMountManager::class);
1046 1046
 
1047
-		$this->registerService(IMimeTypeDetector::class, function (ContainerInterface $c) {
1047
+		$this->registerService(IMimeTypeDetector::class, function(ContainerInterface $c) {
1048 1048
 			return new \OC\Files\Type\Detection(
1049 1049
 				$c->get(IURLGenerator::class),
1050 1050
 				$c->get(ILogger::class),
1051 1051
 				\OC::$configDir,
1052
-				\OC::$SERVERROOT . '/resources/config/'
1052
+				\OC::$SERVERROOT.'/resources/config/'
1053 1053
 			);
1054 1054
 		});
1055 1055
 		/** @deprecated 19.0.0 */
@@ -1058,19 +1058,19 @@  discard block
 block discarded – undo
1058 1058
 		$this->registerAlias(IMimeTypeLoader::class, Loader::class);
1059 1059
 		/** @deprecated 19.0.0 */
1060 1060
 		$this->registerDeprecatedAlias('MimeTypeLoader', IMimeTypeLoader::class);
1061
-		$this->registerService(BundleFetcher::class, function () {
1061
+		$this->registerService(BundleFetcher::class, function() {
1062 1062
 			return new BundleFetcher($this->getL10N('lib'));
1063 1063
 		});
1064 1064
 		$this->registerAlias(\OCP\Notification\IManager::class, Manager::class);
1065 1065
 		/** @deprecated 19.0.0 */
1066 1066
 		$this->registerDeprecatedAlias('NotificationManager', \OCP\Notification\IManager::class);
1067 1067
 
1068
-		$this->registerService(CapabilitiesManager::class, function (ContainerInterface $c) {
1068
+		$this->registerService(CapabilitiesManager::class, function(ContainerInterface $c) {
1069 1069
 			$manager = new CapabilitiesManager($c->get(ILogger::class));
1070
-			$manager->registerCapability(function () use ($c) {
1070
+			$manager->registerCapability(function() use ($c) {
1071 1071
 				return new \OC\OCS\CoreCapabilities($c->get(\OCP\IConfig::class));
1072 1072
 			});
1073
-			$manager->registerCapability(function () use ($c) {
1073
+			$manager->registerCapability(function() use ($c) {
1074 1074
 				return $c->get(\OC\Security\Bruteforce\Capabilities::class);
1075 1075
 			});
1076 1076
 			return $manager;
@@ -1078,14 +1078,14 @@  discard block
 block discarded – undo
1078 1078
 		/** @deprecated 19.0.0 */
1079 1079
 		$this->registerDeprecatedAlias('CapabilitiesManager', CapabilitiesManager::class);
1080 1080
 
1081
-		$this->registerService(ICommentsManager::class, function (Server $c) {
1081
+		$this->registerService(ICommentsManager::class, function(Server $c) {
1082 1082
 			$config = $c->get(\OCP\IConfig::class);
1083 1083
 			$factoryClass = $config->getSystemValue('comments.managerFactory', CommentsManagerFactory::class);
1084 1084
 			/** @var \OCP\Comments\ICommentsManagerFactory $factory */
1085 1085
 			$factory = new $factoryClass($this);
1086 1086
 			$manager = $factory->getManager();
1087 1087
 
1088
-			$manager->registerDisplayNameResolver('user', function ($id) use ($c) {
1088
+			$manager->registerDisplayNameResolver('user', function($id) use ($c) {
1089 1089
 				$manager = $c->get(IUserManager::class);
1090 1090
 				$user = $manager->get($id);
1091 1091
 				if (is_null($user)) {
@@ -1103,7 +1103,7 @@  discard block
 block discarded – undo
1103 1103
 		$this->registerDeprecatedAlias('CommentsManager', ICommentsManager::class);
1104 1104
 
1105 1105
 		$this->registerAlias(\OC_Defaults::class, 'ThemingDefaults');
1106
-		$this->registerService('ThemingDefaults', function (Server $c) {
1106
+		$this->registerService('ThemingDefaults', function(Server $c) {
1107 1107
 			/*
1108 1108
 			 * Dark magic for autoloader.
1109 1109
 			 * If we do a class_exists it will try to load the class which will
@@ -1138,7 +1138,7 @@  discard block
 block discarded – undo
1138 1138
 			}
1139 1139
 			return new \OC_Defaults();
1140 1140
 		});
1141
-		$this->registerService(JSCombiner::class, function (Server $c) {
1141
+		$this->registerService(JSCombiner::class, function(Server $c) {
1142 1142
 			return new JSCombiner(
1143 1143
 				$c->getAppDataDir('js'),
1144 1144
 				$c->get(IURLGenerator::class),
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
 		$this->registerDeprecatedAlias('EventDispatcher', \OC\EventDispatcher\SymfonyAdapter::class);
1153 1153
 		$this->registerAlias(EventDispatcherInterface::class, \OC\EventDispatcher\SymfonyAdapter::class);
1154 1154
 
1155
-		$this->registerService('CryptoWrapper', function (ContainerInterface $c) {
1155
+		$this->registerService('CryptoWrapper', function(ContainerInterface $c) {
1156 1156
 			// FIXME: Instantiiated here due to cyclic dependency
1157 1157
 			$request = new Request(
1158 1158
 				[
@@ -1179,14 +1179,14 @@  discard block
 block discarded – undo
1179 1179
 		});
1180 1180
 		/** @deprecated 19.0.0 */
1181 1181
 		$this->registerDeprecatedAlias('CsrfTokenManager', CsrfTokenManager::class);
1182
-		$this->registerService(SessionStorage::class, function (ContainerInterface $c) {
1182
+		$this->registerService(SessionStorage::class, function(ContainerInterface $c) {
1183 1183
 			return new SessionStorage($c->get(ISession::class));
1184 1184
 		});
1185 1185
 		$this->registerAlias(\OCP\Security\IContentSecurityPolicyManager::class, ContentSecurityPolicyManager::class);
1186 1186
 		/** @deprecated 19.0.0 */
1187 1187
 		$this->registerDeprecatedAlias('ContentSecurityPolicyManager', ContentSecurityPolicyManager::class);
1188 1188
 
1189
-		$this->registerService(\OCP\Share\IManager::class, function (IServerContainer $c) {
1189
+		$this->registerService(\OCP\Share\IManager::class, function(IServerContainer $c) {
1190 1190
 			$config = $c->get(\OCP\IConfig::class);
1191 1191
 			$factoryClass = $config->getSystemValue('sharing.managerFactory', ProviderFactory::class);
1192 1192
 			/** @var \OCP\Share\IProviderFactory $factory */
@@ -1216,7 +1216,7 @@  discard block
 block discarded – undo
1216 1216
 		/** @deprecated 19.0.0 */
1217 1217
 		$this->registerDeprecatedAlias('ShareManager', \OCP\Share\IManager::class);
1218 1218
 
1219
-		$this->registerService(\OCP\Collaboration\Collaborators\ISearch::class, function (Server $c) {
1219
+		$this->registerService(\OCP\Collaboration\Collaborators\ISearch::class, function(Server $c) {
1220 1220
 			$instance = new Collaboration\Collaborators\Search($c);
1221 1221
 
1222 1222
 			// register default plugins
@@ -1239,33 +1239,33 @@  discard block
 block discarded – undo
1239 1239
 
1240 1240
 		$this->registerDeprecatedAlias('SettingsManager', \OC\Settings\Manager::class);
1241 1241
 		$this->registerAlias(\OCP\Settings\IManager::class, \OC\Settings\Manager::class);
1242
-		$this->registerService(\OC\Files\AppData\Factory::class, function (ContainerInterface $c) {
1242
+		$this->registerService(\OC\Files\AppData\Factory::class, function(ContainerInterface $c) {
1243 1243
 			return new \OC\Files\AppData\Factory(
1244 1244
 				$c->get(IRootFolder::class),
1245 1245
 				$c->get(SystemConfig::class)
1246 1246
 			);
1247 1247
 		});
1248 1248
 
1249
-		$this->registerService('LockdownManager', function (ContainerInterface $c) {
1250
-			return new LockdownManager(function () use ($c) {
1249
+		$this->registerService('LockdownManager', function(ContainerInterface $c) {
1250
+			return new LockdownManager(function() use ($c) {
1251 1251
 				return $c->get(ISession::class);
1252 1252
 			});
1253 1253
 		});
1254 1254
 
1255
-		$this->registerService(\OCP\OCS\IDiscoveryService::class, function (ContainerInterface $c) {
1255
+		$this->registerService(\OCP\OCS\IDiscoveryService::class, function(ContainerInterface $c) {
1256 1256
 			return new DiscoveryService(
1257 1257
 				$c->get(ICacheFactory::class),
1258 1258
 				$c->get(IClientService::class)
1259 1259
 			);
1260 1260
 		});
1261 1261
 
1262
-		$this->registerService(ICloudIdManager::class, function (ContainerInterface $c) {
1262
+		$this->registerService(ICloudIdManager::class, function(ContainerInterface $c) {
1263 1263
 			return new CloudIdManager();
1264 1264
 		});
1265 1265
 
1266 1266
 		$this->registerAlias(\OCP\GlobalScale\IConfig::class, \OC\GlobalScale\Config::class);
1267 1267
 
1268
-		$this->registerService(ICloudFederationProviderManager::class, function (ContainerInterface $c) {
1268
+		$this->registerService(ICloudFederationProviderManager::class, function(ContainerInterface $c) {
1269 1269
 			return new CloudFederationProviderManager(
1270 1270
 				$c->get(IAppManager::class),
1271 1271
 				$c->get(IClientService::class),
@@ -1274,7 +1274,7 @@  discard block
 block discarded – undo
1274 1274
 			);
1275 1275
 		});
1276 1276
 
1277
-		$this->registerService(ICloudFederationFactory::class, function (Server $c) {
1277
+		$this->registerService(ICloudFederationFactory::class, function(Server $c) {
1278 1278
 			return new CloudFederationFactory();
1279 1279
 		});
1280 1280
 
@@ -1286,7 +1286,7 @@  discard block
 block discarded – undo
1286 1286
 		/** @deprecated 19.0.0 */
1287 1287
 		$this->registerDeprecatedAlias('TimeFactory', \OCP\AppFramework\Utility\ITimeFactory::class);
1288 1288
 
1289
-		$this->registerService(Defaults::class, function (Server $c) {
1289
+		$this->registerService(Defaults::class, function(Server $c) {
1290 1290
 			return new Defaults(
1291 1291
 				$c->getThemingDefaults()
1292 1292
 			);
@@ -1294,17 +1294,17 @@  discard block
 block discarded – undo
1294 1294
 		/** @deprecated 19.0.0 */
1295 1295
 		$this->registerDeprecatedAlias('Defaults', \OCP\Defaults::class);
1296 1296
 
1297
-		$this->registerService(\OCP\ISession::class, function (ContainerInterface $c) {
1297
+		$this->registerService(\OCP\ISession::class, function(ContainerInterface $c) {
1298 1298
 			return $c->get(\OCP\IUserSession::class)->getSession();
1299 1299
 		}, false);
1300 1300
 
1301
-		$this->registerService(IShareHelper::class, function (ContainerInterface $c) {
1301
+		$this->registerService(IShareHelper::class, function(ContainerInterface $c) {
1302 1302
 			return new ShareHelper(
1303 1303
 				$c->get(\OCP\Share\IManager::class)
1304 1304
 			);
1305 1305
 		});
1306 1306
 
1307
-		$this->registerService(Installer::class, function (ContainerInterface $c) {
1307
+		$this->registerService(Installer::class, function(ContainerInterface $c) {
1308 1308
 			return new Installer(
1309 1309
 				$c->get(AppFetcher::class),
1310 1310
 				$c->get(IClientService::class),
@@ -1315,11 +1315,11 @@  discard block
 block discarded – undo
1315 1315
 			);
1316 1316
 		});
1317 1317
 
1318
-		$this->registerService(IApiFactory::class, function (ContainerInterface $c) {
1318
+		$this->registerService(IApiFactory::class, function(ContainerInterface $c) {
1319 1319
 			return new ApiFactory($c->get(IClientService::class));
1320 1320
 		});
1321 1321
 
1322
-		$this->registerService(IInstanceFactory::class, function (ContainerInterface $c) {
1322
+		$this->registerService(IInstanceFactory::class, function(ContainerInterface $c) {
1323 1323
 			$memcacheFactory = $c->get(ICacheFactory::class);
1324 1324
 			return new InstanceFactory($memcacheFactory->createLocal('remoteinstance.'), $c->get(IClientService::class));
1325 1325
 		});
@@ -1376,7 +1376,7 @@  discard block
 block discarded – undo
1376 1376
 		$dispatcher = $this->get(SymfonyAdapter::class);
1377 1377
 
1378 1378
 		// Delete avatar on user deletion
1379
-		$dispatcher->addListener('OCP\IUser::preDelete', function (GenericEvent $e) {
1379
+		$dispatcher->addListener('OCP\IUser::preDelete', function(GenericEvent $e) {
1380 1380
 			$logger = $this->get(ILogger::class);
1381 1381
 			$manager = $this->getAvatarManager();
1382 1382
 			/** @var IUser $user */
@@ -1389,11 +1389,11 @@  discard block
 block discarded – undo
1389 1389
 				// no avatar to remove
1390 1390
 			} catch (\Exception $e) {
1391 1391
 				// Ignore exceptions
1392
-				$logger->info('Could not cleanup avatar of ' . $user->getUID());
1392
+				$logger->info('Could not cleanup avatar of '.$user->getUID());
1393 1393
 			}
1394 1394
 		});
1395 1395
 
1396
-		$dispatcher->addListener('OCP\IUser::changeUser', function (GenericEvent $e) {
1396
+		$dispatcher->addListener('OCP\IUser::changeUser', function(GenericEvent $e) {
1397 1397
 			$manager = $this->getAvatarManager();
1398 1398
 			/** @var IUser $user */
1399 1399
 			$user = $e->getSubject();
@@ -2284,11 +2284,11 @@  discard block
 block discarded – undo
2284 2284
 	}
2285 2285
 
2286 2286
 	private function registerDeprecatedAlias(string $alias, string $target) {
2287
-		$this->registerService($alias, function (ContainerInterface $container) use ($target, $alias) {
2287
+		$this->registerService($alias, function(ContainerInterface $container) use ($target, $alias) {
2288 2288
 			try {
2289 2289
 				/** @var ILogger $logger */
2290 2290
 				$logger = $container->get(ILogger::class);
2291
-				$logger->debug('The requested alias "' . $alias . '" is depreacted. Please request "' . $target . '" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']);
2291
+				$logger->debug('The requested alias "'.$alias.'" is depreacted. Please request "'.$target.'" directly. This alias will be removed in a future Nextcloud version.', ['app' => 'serverDI']);
2292 2292
 			} catch (ContainerExceptionInterface $e) {
2293 2293
 				// Could not get logger. Continue
2294 2294
 			}
Please login to merge, or discard this patch.