Completed
Pull Request — master (#7498)
by John
15:21
created
lib/private/Server.php 1 patch
Spacing   +115 added lines, -115 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 		parent::__construct();
159 159
 		$this->webRoot = $webRoot;
160 160
 
161
-		$this->registerService(\OCP\IServerContainer::class, function (IServerContainer $c) {
161
+		$this->registerService(\OCP\IServerContainer::class, function(IServerContainer $c) {
162 162
 			return $c;
163 163
 		});
164 164
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 		$this->registerAlias(IActionFactory::class, ActionFactory::class);
172 172
 
173 173
 
174
-		$this->registerService(\OCP\IPreview::class, function (Server $c) {
174
+		$this->registerService(\OCP\IPreview::class, function(Server $c) {
175 175
 			return new PreviewManager(
176 176
 				$c->getConfig(),
177 177
 				$c->getRootFolder(),
@@ -182,13 +182,13 @@  discard block
 block discarded – undo
182 182
 		});
183 183
 		$this->registerAlias('PreviewManager', \OCP\IPreview::class);
184 184
 
185
-		$this->registerService(\OC\Preview\Watcher::class, function (Server $c) {
185
+		$this->registerService(\OC\Preview\Watcher::class, function(Server $c) {
186 186
 			return new \OC\Preview\Watcher(
187 187
 				$c->getAppDataDir('preview')
188 188
 			);
189 189
 		});
190 190
 
191
-		$this->registerService('EncryptionManager', function (Server $c) {
191
+		$this->registerService('EncryptionManager', function(Server $c) {
192 192
 			$view = new View();
193 193
 			$util = new Encryption\Util(
194 194
 				$view,
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 			);
207 207
 		});
208 208
 
209
-		$this->registerService('EncryptionFileHelper', function (Server $c) {
209
+		$this->registerService('EncryptionFileHelper', function(Server $c) {
210 210
 			$util = new Encryption\Util(
211 211
 				new View(),
212 212
 				$c->getUserManager(),
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 			);
221 221
 		});
222 222
 
223
-		$this->registerService('EncryptionKeyStorage', function (Server $c) {
223
+		$this->registerService('EncryptionKeyStorage', function(Server $c) {
224 224
 			$view = new View();
225 225
 			$util = new Encryption\Util(
226 226
 				$view,
@@ -231,32 +231,32 @@  discard block
 block discarded – undo
231 231
 
232 232
 			return new Encryption\Keys\Storage($view, $util);
233 233
 		});
234
-		$this->registerService('TagMapper', function (Server $c) {
234
+		$this->registerService('TagMapper', function(Server $c) {
235 235
 			return new TagMapper($c->getDatabaseConnection());
236 236
 		});
237 237
 
238
-		$this->registerService(\OCP\ITagManager::class, function (Server $c) {
238
+		$this->registerService(\OCP\ITagManager::class, function(Server $c) {
239 239
 			$tagMapper = $c->query('TagMapper');
240 240
 			return new TagManager($tagMapper, $c->getUserSession());
241 241
 		});
242 242
 		$this->registerAlias('TagManager', \OCP\ITagManager::class);
243 243
 
244
-		$this->registerService('SystemTagManagerFactory', function (Server $c) {
244
+		$this->registerService('SystemTagManagerFactory', function(Server $c) {
245 245
 			$config = $c->getConfig();
246 246
 			$factoryClass = $config->getSystemValue('systemtags.managerFactory', '\OC\SystemTag\ManagerFactory');
247 247
 			/** @var \OC\SystemTag\ManagerFactory $factory */
248 248
 			$factory = new $factoryClass($this);
249 249
 			return $factory;
250 250
 		});
251
-		$this->registerService(\OCP\SystemTag\ISystemTagManager::class, function (Server $c) {
251
+		$this->registerService(\OCP\SystemTag\ISystemTagManager::class, function(Server $c) {
252 252
 			return $c->query('SystemTagManagerFactory')->getManager();
253 253
 		});
254 254
 		$this->registerAlias('SystemTagManager', \OCP\SystemTag\ISystemTagManager::class);
255 255
 
256
-		$this->registerService(\OCP\SystemTag\ISystemTagObjectMapper::class, function (Server $c) {
256
+		$this->registerService(\OCP\SystemTag\ISystemTagObjectMapper::class, function(Server $c) {
257 257
 			return $c->query('SystemTagManagerFactory')->getObjectMapper();
258 258
 		});
259
-		$this->registerService('RootFolder', function (Server $c) {
259
+		$this->registerService('RootFolder', function(Server $c) {
260 260
 			$manager = \OC\Files\Filesystem::getMountManager(null);
261 261
 			$view = new View();
262 262
 			$root = new Root(
@@ -277,37 +277,37 @@  discard block
 block discarded – undo
277 277
 		});
278 278
 		$this->registerAlias('SystemTagObjectMapper', \OCP\SystemTag\ISystemTagObjectMapper::class);
279 279
 
280
-		$this->registerService(\OCP\Files\IRootFolder::class, function (Server $c) {
281
-			return new LazyRoot(function () use ($c) {
280
+		$this->registerService(\OCP\Files\IRootFolder::class, function(Server $c) {
281
+			return new LazyRoot(function() use ($c) {
282 282
 				return $c->query('RootFolder');
283 283
 			});
284 284
 		});
285 285
 		$this->registerAlias('LazyRootFolder', \OCP\Files\IRootFolder::class);
286 286
 
287
-		$this->registerService(\OCP\IUserManager::class, function (Server $c) {
287
+		$this->registerService(\OCP\IUserManager::class, function(Server $c) {
288 288
 			$config = $c->getConfig();
289 289
 			return new \OC\User\Manager($config);
290 290
 		});
291 291
 		$this->registerAlias('UserManager', \OCP\IUserManager::class);
292 292
 
293
-		$this->registerService(\OCP\IGroupManager::class, function (Server $c) {
293
+		$this->registerService(\OCP\IGroupManager::class, function(Server $c) {
294 294
 			$groupManager = new \OC\Group\Manager($this->getUserManager(), $this->getLogger());
295
-			$groupManager->listen('\OC\Group', 'preCreate', function ($gid) {
295
+			$groupManager->listen('\OC\Group', 'preCreate', function($gid) {
296 296
 				\OC_Hook::emit('OC_Group', 'pre_createGroup', array('run' => true, 'gid' => $gid));
297 297
 			});
298
-			$groupManager->listen('\OC\Group', 'postCreate', function (\OC\Group\Group $gid) {
298
+			$groupManager->listen('\OC\Group', 'postCreate', function(\OC\Group\Group $gid) {
299 299
 				\OC_Hook::emit('OC_User', 'post_createGroup', array('gid' => $gid->getGID()));
300 300
 			});
301
-			$groupManager->listen('\OC\Group', 'preDelete', function (\OC\Group\Group $group) {
301
+			$groupManager->listen('\OC\Group', 'preDelete', function(\OC\Group\Group $group) {
302 302
 				\OC_Hook::emit('OC_Group', 'pre_deleteGroup', array('run' => true, 'gid' => $group->getGID()));
303 303
 			});
304
-			$groupManager->listen('\OC\Group', 'postDelete', function (\OC\Group\Group $group) {
304
+			$groupManager->listen('\OC\Group', 'postDelete', function(\OC\Group\Group $group) {
305 305
 				\OC_Hook::emit('OC_User', 'post_deleteGroup', array('gid' => $group->getGID()));
306 306
 			});
307
-			$groupManager->listen('\OC\Group', 'preAddUser', function (\OC\Group\Group $group, \OC\User\User $user) {
307
+			$groupManager->listen('\OC\Group', 'preAddUser', function(\OC\Group\Group $group, \OC\User\User $user) {
308 308
 				\OC_Hook::emit('OC_Group', 'pre_addToGroup', array('run' => true, 'uid' => $user->getUID(), 'gid' => $group->getGID()));
309 309
 			});
310
-			$groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) {
310
+			$groupManager->listen('\OC\Group', 'postAddUser', function(\OC\Group\Group $group, \OC\User\User $user) {
311 311
 				\OC_Hook::emit('OC_Group', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID()));
312 312
 				//Minimal fix to keep it backward compatible TODO: clean up all the GroupManager hooks
313 313
 				\OC_Hook::emit('OC_User', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID()));
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 		});
317 317
 		$this->registerAlias('GroupManager', \OCP\IGroupManager::class);
318 318
 
319
-		$this->registerService(Store::class, function (Server $c) {
319
+		$this->registerService(Store::class, function(Server $c) {
320 320
 			$session = $c->getSession();
321 321
 			if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
322 322
 				$tokenProvider = $c->query('OC\Authentication\Token\IProvider');
@@ -327,11 +327,11 @@  discard block
 block discarded – undo
327 327
 			return new Store($session, $logger, $tokenProvider);
328 328
 		});
329 329
 		$this->registerAlias(IStore::class, Store::class);
330
-		$this->registerService('OC\Authentication\Token\DefaultTokenMapper', function (Server $c) {
330
+		$this->registerService('OC\Authentication\Token\DefaultTokenMapper', function(Server $c) {
331 331
 			$dbConnection = $c->getDatabaseConnection();
332 332
 			return new Authentication\Token\DefaultTokenMapper($dbConnection);
333 333
 		});
334
-		$this->registerService('OC\Authentication\Token\DefaultTokenProvider', function (Server $c) {
334
+		$this->registerService('OC\Authentication\Token\DefaultTokenProvider', function(Server $c) {
335 335
 			$mapper = $c->query('OC\Authentication\Token\DefaultTokenMapper');
336 336
 			$crypto = $c->getCrypto();
337 337
 			$config = $c->getConfig();
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
 		});
342 342
 		$this->registerAlias('OC\Authentication\Token\IProvider', 'OC\Authentication\Token\DefaultTokenProvider');
343 343
 
344
-		$this->registerService(\OCP\IUserSession::class, function (Server $c) {
344
+		$this->registerService(\OCP\IUserSession::class, function(Server $c) {
345 345
 			$manager = $c->getUserManager();
346 346
 			$session = new \OC\Session\Memory('');
347 347
 			$timeFactory = new TimeFactory();
@@ -356,45 +356,45 @@  discard block
 block discarded – undo
356 356
 			$dispatcher = $c->getEventDispatcher();
357 357
 
358 358
 			$userSession = new \OC\User\Session($manager, $session, $timeFactory, $defaultTokenProvider, $c->getConfig(), $c->getSecureRandom(), $c->getLockdownManager());
359
-			$userSession->listen('\OC\User', 'preCreateUser', function ($uid, $password) {
359
+			$userSession->listen('\OC\User', 'preCreateUser', function($uid, $password) {
360 360
 				\OC_Hook::emit('OC_User', 'pre_createUser', array('run' => true, 'uid' => $uid, 'password' => $password));
361 361
 			});
362
-			$userSession->listen('\OC\User', 'postCreateUser', function ($user, $password) {
362
+			$userSession->listen('\OC\User', 'postCreateUser', function($user, $password) {
363 363
 				/** @var $user \OC\User\User */
364 364
 				\OC_Hook::emit('OC_User', 'post_createUser', array('uid' => $user->getUID(), 'password' => $password));
365 365
 			});
366
-			$userSession->listen('\OC\User', 'preDelete', function ($user) use ($dispatcher) {
366
+			$userSession->listen('\OC\User', 'preDelete', function($user) use ($dispatcher) {
367 367
 				/** @var $user \OC\User\User */
368 368
 				\OC_Hook::emit('OC_User', 'pre_deleteUser', array('run' => true, 'uid' => $user->getUID()));
369 369
 				$dispatcher->dispatch('OCP\IUser::preDelete', new GenericEvent($user));
370 370
 			});
371
-			$userSession->listen('\OC\User', 'postDelete', function ($user) {
371
+			$userSession->listen('\OC\User', 'postDelete', function($user) {
372 372
 				/** @var $user \OC\User\User */
373 373
 				\OC_Hook::emit('OC_User', 'post_deleteUser', array('uid' => $user->getUID()));
374 374
 			});
375
-			$userSession->listen('\OC\User', 'preSetPassword', function ($user, $password, $recoveryPassword) {
375
+			$userSession->listen('\OC\User', 'preSetPassword', function($user, $password, $recoveryPassword) {
376 376
 				/** @var $user \OC\User\User */
377 377
 				\OC_Hook::emit('OC_User', 'pre_setPassword', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword));
378 378
 			});
379
-			$userSession->listen('\OC\User', 'postSetPassword', function ($user, $password, $recoveryPassword) {
379
+			$userSession->listen('\OC\User', 'postSetPassword', function($user, $password, $recoveryPassword) {
380 380
 				/** @var $user \OC\User\User */
381 381
 				\OC_Hook::emit('OC_User', 'post_setPassword', array('run' => true, 'uid' => $user->getUID(), 'password' => $password, 'recoveryPassword' => $recoveryPassword));
382 382
 			});
383
-			$userSession->listen('\OC\User', 'preLogin', function ($uid, $password) {
383
+			$userSession->listen('\OC\User', 'preLogin', function($uid, $password) {
384 384
 				\OC_Hook::emit('OC_User', 'pre_login', array('run' => true, 'uid' => $uid, 'password' => $password));
385 385
 			});
386
-			$userSession->listen('\OC\User', 'postLogin', function ($user, $password) {
386
+			$userSession->listen('\OC\User', 'postLogin', function($user, $password) {
387 387
 				/** @var $user \OC\User\User */
388 388
 				\OC_Hook::emit('OC_User', 'post_login', array('run' => true, 'uid' => $user->getUID(), 'password' => $password));
389 389
 			});
390
-			$userSession->listen('\OC\User', 'postRememberedLogin', function ($user, $password) {
390
+			$userSession->listen('\OC\User', 'postRememberedLogin', function($user, $password) {
391 391
 				/** @var $user \OC\User\User */
392 392
 				\OC_Hook::emit('OC_User', 'post_login', array('run' => true, 'uid' => $user->getUID(), 'password' => $password));
393 393
 			});
394
-			$userSession->listen('\OC\User', 'logout', function () {
394
+			$userSession->listen('\OC\User', 'logout', function() {
395 395
 				\OC_Hook::emit('OC_User', 'logout', array());
396 396
 			});
397
-			$userSession->listen('\OC\User', 'changeUser', function ($user, $feature, $value, $oldValue) use ($dispatcher) {
397
+			$userSession->listen('\OC\User', 'changeUser', function($user, $feature, $value, $oldValue) use ($dispatcher) {
398 398
 				/** @var $user \OC\User\User */
399 399
 				\OC_Hook::emit('OC_User', 'changeUser', array('run' => true, 'user' => $user, 'feature' => $feature, 'value' => $value, 'old_value' => $oldValue));
400 400
 				$dispatcher->dispatch('OCP\IUser::changeUser', new GenericEvent($user, ['feature' => $feature, 'oldValue' => $oldValue, 'value' => $value]));
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 		});
404 404
 		$this->registerAlias('UserSession', \OCP\IUserSession::class);
405 405
 
406
-		$this->registerService(\OC\Authentication\TwoFactorAuth\Manager::class, function (Server $c) {
406
+		$this->registerService(\OC\Authentication\TwoFactorAuth\Manager::class, function(Server $c) {
407 407
 			return new \OC\Authentication\TwoFactorAuth\Manager(
408 408
 				$c->getAppManager(),
409 409
 				$c->getSession(),
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 		$this->registerAlias(\OCP\INavigationManager::class, \OC\NavigationManager::class);
419 419
 		$this->registerAlias('NavigationManager', \OCP\INavigationManager::class);
420 420
 
421
-		$this->registerService(\OC\AllConfig::class, function (Server $c) {
421
+		$this->registerService(\OC\AllConfig::class, function(Server $c) {
422 422
 			return new \OC\AllConfig(
423 423
 				$c->getSystemConfig()
424 424
 			);
@@ -426,17 +426,17 @@  discard block
 block discarded – undo
426 426
 		$this->registerAlias('AllConfig', \OC\AllConfig::class);
427 427
 		$this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class);
428 428
 
429
-		$this->registerService('SystemConfig', function ($c) use ($config) {
429
+		$this->registerService('SystemConfig', function($c) use ($config) {
430 430
 			return new \OC\SystemConfig($config);
431 431
 		});
432 432
 
433
-		$this->registerService(\OC\AppConfig::class, function (Server $c) {
433
+		$this->registerService(\OC\AppConfig::class, function(Server $c) {
434 434
 			return new \OC\AppConfig($c->getDatabaseConnection());
435 435
 		});
436 436
 		$this->registerAlias('AppConfig', \OC\AppConfig::class);
437 437
 		$this->registerAlias(\OCP\IAppConfig::class, \OC\AppConfig::class);
438 438
 
439
-		$this->registerService(\OCP\L10N\IFactory::class, function (Server $c) {
439
+		$this->registerService(\OCP\L10N\IFactory::class, function(Server $c) {
440 440
 			return new \OC\L10N\Factory(
441 441
 				$c->getConfig(),
442 442
 				$c->getRequest(),
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
 		});
447 447
 		$this->registerAlias('L10NFactory', \OCP\L10N\IFactory::class);
448 448
 
449
-		$this->registerService(\OCP\IURLGenerator::class, function (Server $c) {
449
+		$this->registerService(\OCP\IURLGenerator::class, function(Server $c) {
450 450
 			$config = $c->getConfig();
451 451
 			$cacheFactory = $c->getMemCacheFactory();
452 452
 			$request = $c->getRequest();
@@ -458,18 +458,18 @@  discard block
 block discarded – undo
458 458
 		});
459 459
 		$this->registerAlias('URLGenerator', \OCP\IURLGenerator::class);
460 460
 
461
-		$this->registerService('AppHelper', function ($c) {
461
+		$this->registerService('AppHelper', function($c) {
462 462
 			return new \OC\AppHelper();
463 463
 		});
464 464
 		$this->registerAlias('AppFetcher', AppFetcher::class);
465 465
 		$this->registerAlias('CategoryFetcher', CategoryFetcher::class);
466 466
 
467
-		$this->registerService(\OCP\ICache::class, function ($c) {
467
+		$this->registerService(\OCP\ICache::class, function($c) {
468 468
 			return new Cache\File();
469 469
 		});
470 470
 		$this->registerAlias('UserCache', \OCP\ICache::class);
471 471
 
472
-		$this->registerService(Factory::class, function (Server $c) {
472
+		$this->registerService(Factory::class, function(Server $c) {
473 473
 
474 474
 			$arrayCacheFactory = new \OC\Memcache\Factory('', $c->getLogger(),
475 475
 				'\\OC\\Memcache\\ArrayCache',
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 				$version = implode(',', $v);
487 487
 				$instanceId = \OC_Util::getInstanceId();
488 488
 				$path = \OC::$SERVERROOT;
489
-				$prefix = md5($instanceId . '-' . $version . '-' . $path . '-' . $urlGenerator->getBaseUrl());
489
+				$prefix = md5($instanceId.'-'.$version.'-'.$path.'-'.$urlGenerator->getBaseUrl());
490 490
 				return new \OC\Memcache\Factory($prefix, $c->getLogger(),
491 491
 					$config->getSystemValue('memcache.local', null),
492 492
 					$config->getSystemValue('memcache.distributed', null),
@@ -499,12 +499,12 @@  discard block
 block discarded – undo
499 499
 		$this->registerAlias('MemCacheFactory', Factory::class);
500 500
 		$this->registerAlias(ICacheFactory::class, Factory::class);
501 501
 
502
-		$this->registerService('RedisFactory', function (Server $c) {
502
+		$this->registerService('RedisFactory', function(Server $c) {
503 503
 			$systemConfig = $c->getSystemConfig();
504 504
 			return new RedisFactory($systemConfig);
505 505
 		});
506 506
 
507
-		$this->registerService(\OCP\Activity\IManager::class, function (Server $c) {
507
+		$this->registerService(\OCP\Activity\IManager::class, function(Server $c) {
508 508
 			return new \OC\Activity\Manager(
509 509
 				$c->getRequest(),
510 510
 				$c->getUserSession(),
@@ -514,14 +514,14 @@  discard block
 block discarded – undo
514 514
 		});
515 515
 		$this->registerAlias('ActivityManager', \OCP\Activity\IManager::class);
516 516
 
517
-		$this->registerService(\OCP\Activity\IEventMerger::class, function (Server $c) {
517
+		$this->registerService(\OCP\Activity\IEventMerger::class, function(Server $c) {
518 518
 			return new \OC\Activity\EventMerger(
519 519
 				$c->getL10N('lib')
520 520
 			);
521 521
 		});
522 522
 		$this->registerAlias(IValidator::class, Validator::class);
523 523
 
524
-		$this->registerService(\OCP\IAvatarManager::class, function (Server $c) {
524
+		$this->registerService(\OCP\IAvatarManager::class, function(Server $c) {
525 525
 			return new AvatarManager(
526 526
 				$c->getUserManager(),
527 527
 				$c->getAppDataDir('avatar'),
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
 
535 535
 		$this->registerAlias(\OCP\Support\CrashReport\IRegistry::class, \OC\Support\CrashReport\Registry::class);
536 536
 
537
-		$this->registerService(\OCP\ILogger::class, function (Server $c) {
537
+		$this->registerService(\OCP\ILogger::class, function(Server $c) {
538 538
 			$logType = $c->query('AllConfig')->getSystemValue('log_type', 'file');
539 539
 			$logger = Log::getLogClass($logType);
540 540
 			call_user_func(array($logger, 'init'));
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 		});
546 546
 		$this->registerAlias('Logger', \OCP\ILogger::class);
547 547
 
548
-		$this->registerService(\OCP\BackgroundJob\IJobList::class, function (Server $c) {
548
+		$this->registerService(\OCP\BackgroundJob\IJobList::class, function(Server $c) {
549 549
 			$config = $c->getConfig();
550 550
 			return new \OC\BackgroundJob\JobList(
551 551
 				$c->getDatabaseConnection(),
@@ -555,7 +555,7 @@  discard block
 block discarded – undo
555 555
 		});
556 556
 		$this->registerAlias('JobList', \OCP\BackgroundJob\IJobList::class);
557 557
 
558
-		$this->registerService(\OCP\Route\IRouter::class, function (Server $c) {
558
+		$this->registerService(\OCP\Route\IRouter::class, function(Server $c) {
559 559
 			$cacheFactory = $c->getMemCacheFactory();
560 560
 			$logger = $c->getLogger();
561 561
 			if ($cacheFactory->isAvailableLowLatency()) {
@@ -567,12 +567,12 @@  discard block
 block discarded – undo
567 567
 		});
568 568
 		$this->registerAlias('Router', \OCP\Route\IRouter::class);
569 569
 
570
-		$this->registerService(\OCP\ISearch::class, function ($c) {
570
+		$this->registerService(\OCP\ISearch::class, function($c) {
571 571
 			return new Search();
572 572
 		});
573 573
 		$this->registerAlias('Search', \OCP\ISearch::class);
574 574
 
575
-		$this->registerService(\OC\Security\RateLimiting\Limiter::class, function ($c) {
575
+		$this->registerService(\OC\Security\RateLimiting\Limiter::class, function($c) {
576 576
 			return new \OC\Security\RateLimiting\Limiter(
577 577
 				$this->getUserSession(),
578 578
 				$this->getRequest(),
@@ -580,34 +580,34 @@  discard block
 block discarded – undo
580 580
 				$c->query(\OC\Security\RateLimiting\Backend\IBackend::class)
581 581
 			);
582 582
 		});
583
-		$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function ($c) {
583
+		$this->registerService(\OC\Security\RateLimiting\Backend\IBackend::class, function($c) {
584 584
 			return new \OC\Security\RateLimiting\Backend\MemoryCache(
585 585
 				$this->getMemCacheFactory(),
586 586
 				new \OC\AppFramework\Utility\TimeFactory()
587 587
 			);
588 588
 		});
589 589
 
590
-		$this->registerService(\OCP\Security\ISecureRandom::class, function ($c) {
590
+		$this->registerService(\OCP\Security\ISecureRandom::class, function($c) {
591 591
 			return new SecureRandom();
592 592
 		});
593 593
 		$this->registerAlias('SecureRandom', \OCP\Security\ISecureRandom::class);
594 594
 
595
-		$this->registerService(\OCP\Security\ICrypto::class, function (Server $c) {
595
+		$this->registerService(\OCP\Security\ICrypto::class, function(Server $c) {
596 596
 			return new Crypto($c->getConfig(), $c->getSecureRandom());
597 597
 		});
598 598
 		$this->registerAlias('Crypto', \OCP\Security\ICrypto::class);
599 599
 
600
-		$this->registerService(\OCP\Security\IHasher::class, function (Server $c) {
600
+		$this->registerService(\OCP\Security\IHasher::class, function(Server $c) {
601 601
 			return new Hasher($c->getConfig());
602 602
 		});
603 603
 		$this->registerAlias('Hasher', \OCP\Security\IHasher::class);
604 604
 
605
-		$this->registerService(\OCP\Security\ICredentialsManager::class, function (Server $c) {
605
+		$this->registerService(\OCP\Security\ICredentialsManager::class, function(Server $c) {
606 606
 			return new CredentialsManager($c->getCrypto(), $c->getDatabaseConnection());
607 607
 		});
608 608
 		$this->registerAlias('CredentialsManager', \OCP\Security\ICredentialsManager::class);
609 609
 
610
-		$this->registerService(IDBConnection::class, function (Server $c) {
610
+		$this->registerService(IDBConnection::class, function(Server $c) {
611 611
 			$systemConfig = $c->getSystemConfig();
612 612
 			$factory = new \OC\DB\ConnectionFactory($systemConfig);
613 613
 			$type = $systemConfig->getValue('dbtype', 'sqlite');
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
 		});
622 622
 		$this->registerAlias('DatabaseConnection', IDBConnection::class);
623 623
 
624
-		$this->registerService('HTTPHelper', function (Server $c) {
624
+		$this->registerService('HTTPHelper', function(Server $c) {
625 625
 			$config = $c->getConfig();
626 626
 			return new HTTPHelper(
627 627
 				$config,
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
 			);
630 630
 		});
631 631
 
632
-		$this->registerService(\OCP\Http\Client\IClientService::class, function (Server $c) {
632
+		$this->registerService(\OCP\Http\Client\IClientService::class, function(Server $c) {
633 633
 			$user = \OC_User::getUser();
634 634
 			$uid = $user ? $user : null;
635 635
 			return new ClientService(
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
 			);
645 645
 		});
646 646
 		$this->registerAlias('HttpClientService', \OCP\Http\Client\IClientService::class);
647
-		$this->registerService(\OCP\Diagnostics\IEventLogger::class, function (Server $c) {
647
+		$this->registerService(\OCP\Diagnostics\IEventLogger::class, function(Server $c) {
648 648
 			$eventLogger = new EventLogger();
649 649
 			if ($c->getSystemConfig()->getValue('debug', false)) {
650 650
 				// In debug mode, module is being activated by default
@@ -654,7 +654,7 @@  discard block
 block discarded – undo
654 654
 		});
655 655
 		$this->registerAlias('EventLogger', \OCP\Diagnostics\IEventLogger::class);
656 656
 
657
-		$this->registerService(\OCP\Diagnostics\IQueryLogger::class, function (Server $c) {
657
+		$this->registerService(\OCP\Diagnostics\IQueryLogger::class, function(Server $c) {
658 658
 			$queryLogger = new QueryLogger();
659 659
 			if ($c->getSystemConfig()->getValue('debug', false)) {
660 660
 				// In debug mode, module is being activated by default
@@ -664,7 +664,7 @@  discard block
 block discarded – undo
664 664
 		});
665 665
 		$this->registerAlias('QueryLogger', \OCP\Diagnostics\IQueryLogger::class);
666 666
 
667
-		$this->registerService(TempManager::class, function (Server $c) {
667
+		$this->registerService(TempManager::class, function(Server $c) {
668 668
 			return new TempManager(
669 669
 				$c->getLogger(),
670 670
 				$c->getConfig()
@@ -673,7 +673,7 @@  discard block
 block discarded – undo
673 673
 		$this->registerAlias('TempManager', TempManager::class);
674 674
 		$this->registerAlias(ITempManager::class, TempManager::class);
675 675
 
676
-		$this->registerService(AppManager::class, function (Server $c) {
676
+		$this->registerService(AppManager::class, function(Server $c) {
677 677
 			return new \OC\App\AppManager(
678 678
 				$c->getUserSession(),
679 679
 				$c->getAppConfig(),
@@ -685,7 +685,7 @@  discard block
 block discarded – undo
685 685
 		$this->registerAlias('AppManager', AppManager::class);
686 686
 		$this->registerAlias(IAppManager::class, AppManager::class);
687 687
 
688
-		$this->registerService(\OCP\IDateTimeZone::class, function (Server $c) {
688
+		$this->registerService(\OCP\IDateTimeZone::class, function(Server $c) {
689 689
 			return new DateTimeZone(
690 690
 				$c->getConfig(),
691 691
 				$c->getSession()
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
 		});
694 694
 		$this->registerAlias('DateTimeZone', \OCP\IDateTimeZone::class);
695 695
 
696
-		$this->registerService(\OCP\IDateTimeFormatter::class, function (Server $c) {
696
+		$this->registerService(\OCP\IDateTimeFormatter::class, function(Server $c) {
697 697
 			$language = $c->getConfig()->getUserValue($c->getSession()->get('user_id'), 'core', 'lang', null);
698 698
 
699 699
 			return new DateTimeFormatter(
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
 		});
704 704
 		$this->registerAlias('DateTimeFormatter', \OCP\IDateTimeFormatter::class);
705 705
 
706
-		$this->registerService(\OCP\Files\Config\IUserMountCache::class, function (Server $c) {
706
+		$this->registerService(\OCP\Files\Config\IUserMountCache::class, function(Server $c) {
707 707
 			$mountCache = new UserMountCache($c->getDatabaseConnection(), $c->getUserManager(), $c->getLogger());
708 708
 			$listener = new UserMountCacheListener($mountCache);
709 709
 			$listener->listen($c->getUserManager());
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
 		});
712 712
 		$this->registerAlias('UserMountCache', \OCP\Files\Config\IUserMountCache::class);
713 713
 
714
-		$this->registerService(\OCP\Files\Config\IMountProviderCollection::class, function (Server $c) {
714
+		$this->registerService(\OCP\Files\Config\IMountProviderCollection::class, function(Server $c) {
715 715
 			$loader = \OC\Files\Filesystem::getLoader();
716 716
 			$mountCache = $c->query('UserMountCache');
717 717
 			$manager = new \OC\Files\Config\MountProviderCollection($loader, $mountCache);
@@ -727,10 +727,10 @@  discard block
 block discarded – undo
727 727
 		});
728 728
 		$this->registerAlias('MountConfigManager', \OCP\Files\Config\IMountProviderCollection::class);
729 729
 
730
-		$this->registerService('IniWrapper', function ($c) {
730
+		$this->registerService('IniWrapper', function($c) {
731 731
 			return new IniGetWrapper();
732 732
 		});
733
-		$this->registerService('AsyncCommandBus', function (Server $c) {
733
+		$this->registerService('AsyncCommandBus', function(Server $c) {
734 734
 			$busClass = $c->getConfig()->getSystemValue('commandbus');
735 735
 			if ($busClass) {
736 736
 				list($app, $class) = explode('::', $busClass, 2);
@@ -745,10 +745,10 @@  discard block
 block discarded – undo
745 745
 				return new CronBus($jobList);
746 746
 			}
747 747
 		});
748
-		$this->registerService('TrustedDomainHelper', function ($c) {
748
+		$this->registerService('TrustedDomainHelper', function($c) {
749 749
 			return new TrustedDomainHelper($this->getConfig());
750 750
 		});
751
-		$this->registerService('Throttler', function (Server $c) {
751
+		$this->registerService('Throttler', function(Server $c) {
752 752
 			return new Throttler(
753 753
 				$c->getDatabaseConnection(),
754 754
 				new TimeFactory(),
@@ -756,7 +756,7 @@  discard block
 block discarded – undo
756 756
 				$c->getConfig()
757 757
 			);
758 758
 		});
759
-		$this->registerService('IntegrityCodeChecker', function (Server $c) {
759
+		$this->registerService('IntegrityCodeChecker', function(Server $c) {
760 760
 			// IConfig and IAppManager requires a working database. This code
761 761
 			// might however be called when ownCloud is not yet setup.
762 762
 			if (\OC::$server->getSystemConfig()->getValue('installed', false)) {
@@ -777,7 +777,7 @@  discard block
 block discarded – undo
777 777
 				$c->getTempManager()
778 778
 			);
779 779
 		});
780
-		$this->registerService(\OCP\IRequest::class, function ($c) {
780
+		$this->registerService(\OCP\IRequest::class, function($c) {
781 781
 			if (isset($this['urlParams'])) {
782 782
 				$urlParams = $this['urlParams'];
783 783
 			} else {
@@ -813,7 +813,7 @@  discard block
 block discarded – undo
813 813
 		});
814 814
 		$this->registerAlias('Request', \OCP\IRequest::class);
815 815
 
816
-		$this->registerService(\OCP\Mail\IMailer::class, function (Server $c) {
816
+		$this->registerService(\OCP\Mail\IMailer::class, function(Server $c) {
817 817
 			return new Mailer(
818 818
 				$c->getConfig(),
819 819
 				$c->getLogger(),
@@ -824,7 +824,7 @@  discard block
 block discarded – undo
824 824
 		});
825 825
 		$this->registerAlias('Mailer', \OCP\Mail\IMailer::class);
826 826
 
827
-		$this->registerService('LDAPProvider', function (Server $c) {
827
+		$this->registerService('LDAPProvider', function(Server $c) {
828 828
 			$config = $c->getConfig();
829 829
 			$factoryClass = $config->getSystemValue('ldapProviderFactory', null);
830 830
 			if (is_null($factoryClass)) {
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
 			$factory = new $factoryClass($this);
835 835
 			return $factory->getLDAPProvider();
836 836
 		});
837
-		$this->registerService(ILockingProvider::class, function (Server $c) {
837
+		$this->registerService(ILockingProvider::class, function(Server $c) {
838 838
 			$ini = $c->getIniWrapper();
839 839
 			$config = $c->getConfig();
840 840
 			$ttl = $config->getSystemValue('filelocking.ttl', max(3600, $ini->getNumeric('max_execution_time')));
@@ -851,49 +851,49 @@  discard block
 block discarded – undo
851 851
 		});
852 852
 		$this->registerAlias('LockingProvider', ILockingProvider::class);
853 853
 
854
-		$this->registerService(\OCP\Files\Mount\IMountManager::class, function () {
854
+		$this->registerService(\OCP\Files\Mount\IMountManager::class, function() {
855 855
 			return new \OC\Files\Mount\Manager();
856 856
 		});
857 857
 		$this->registerAlias('MountManager', \OCP\Files\Mount\IMountManager::class);
858 858
 
859
-		$this->registerService(\OCP\Files\IMimeTypeDetector::class, function (Server $c) {
859
+		$this->registerService(\OCP\Files\IMimeTypeDetector::class, function(Server $c) {
860 860
 			return new \OC\Files\Type\Detection(
861 861
 				$c->getURLGenerator(),
862 862
 				\OC::$configDir,
863
-				\OC::$SERVERROOT . '/resources/config/'
863
+				\OC::$SERVERROOT.'/resources/config/'
864 864
 			);
865 865
 		});
866 866
 		$this->registerAlias('MimeTypeDetector', \OCP\Files\IMimeTypeDetector::class);
867 867
 
868
-		$this->registerService(\OCP\Files\IMimeTypeLoader::class, function (Server $c) {
868
+		$this->registerService(\OCP\Files\IMimeTypeLoader::class, function(Server $c) {
869 869
 			return new \OC\Files\Type\Loader(
870 870
 				$c->getDatabaseConnection()
871 871
 			);
872 872
 		});
873 873
 		$this->registerAlias('MimeTypeLoader', \OCP\Files\IMimeTypeLoader::class);
874
-		$this->registerService(BundleFetcher::class, function () {
874
+		$this->registerService(BundleFetcher::class, function() {
875 875
 			return new BundleFetcher($this->getL10N('lib'));
876 876
 		});
877
-		$this->registerService(\OCP\Notification\IManager::class, function (Server $c) {
877
+		$this->registerService(\OCP\Notification\IManager::class, function(Server $c) {
878 878
 			return new Manager(
879 879
 				$c->query(IValidator::class)
880 880
 			);
881 881
 		});
882 882
 		$this->registerAlias('NotificationManager', \OCP\Notification\IManager::class);
883 883
 
884
-		$this->registerService(\OC\CapabilitiesManager::class, function (Server $c) {
884
+		$this->registerService(\OC\CapabilitiesManager::class, function(Server $c) {
885 885
 			$manager = new \OC\CapabilitiesManager($c->getLogger());
886
-			$manager->registerCapability(function () use ($c) {
886
+			$manager->registerCapability(function() use ($c) {
887 887
 				return new \OC\OCS\CoreCapabilities($c->getConfig());
888 888
 			});
889
-			$manager->registerCapability(function () use ($c) {
889
+			$manager->registerCapability(function() use ($c) {
890 890
 				return $c->query(\OC\Security\Bruteforce\Capabilities::class);
891 891
 			});
892 892
 			return $manager;
893 893
 		});
894 894
 		$this->registerAlias('CapabilitiesManager', \OC\CapabilitiesManager::class);
895 895
 
896
-		$this->registerService(\OCP\Comments\ICommentsManager::class, function (Server $c) {
896
+		$this->registerService(\OCP\Comments\ICommentsManager::class, function(Server $c) {
897 897
 			$config = $c->getConfig();
898 898
 			$factoryClass = $config->getSystemValue('comments.managerFactory', '\OC\Comments\ManagerFactory');
899 899
 			/** @var \OCP\Comments\ICommentsManagerFactory $factory */
@@ -903,7 +903,7 @@  discard block
 block discarded – undo
903 903
 			$manager->registerDisplayNameResolver('user', function($id) use ($c) {
904 904
 				$manager = $c->getUserManager();
905 905
 				$user = $manager->get($id);
906
-				if(is_null($user)) {
906
+				if (is_null($user)) {
907 907
 					$l = $c->getL10N('core');
908 908
 					$displayName = $l->t('Unknown user');
909 909
 				} else {
@@ -916,7 +916,7 @@  discard block
 block discarded – undo
916 916
 		});
917 917
 		$this->registerAlias('CommentsManager', \OCP\Comments\ICommentsManager::class);
918 918
 
919
-		$this->registerService('ThemingDefaults', function (Server $c) {
919
+		$this->registerService('ThemingDefaults', function(Server $c) {
920 920
 			/*
921 921
 			 * Dark magic for autoloader.
922 922
 			 * If we do a class_exists it will try to load the class which will
@@ -943,7 +943,7 @@  discard block
 block discarded – undo
943 943
 			}
944 944
 			return new \OC_Defaults();
945 945
 		});
946
-		$this->registerService(SCSSCacher::class, function (Server $c) {
946
+		$this->registerService(SCSSCacher::class, function(Server $c) {
947 947
 			/** @var Factory $cacheFactory */
948 948
 			$cacheFactory = $c->query(Factory::class);
949 949
 			return new SCSSCacher(
@@ -956,13 +956,13 @@  discard block
 block discarded – undo
956 956
 				$cacheFactory->create('SCSS')
957 957
 			);
958 958
 		});
959
-		$this->registerService(EventDispatcher::class, function () {
959
+		$this->registerService(EventDispatcher::class, function() {
960 960
 			return new EventDispatcher();
961 961
 		});
962 962
 		$this->registerAlias('EventDispatcher', EventDispatcher::class);
963 963
 		$this->registerAlias(EventDispatcherInterface::class, EventDispatcher::class);
964 964
 
965
-		$this->registerService('CryptoWrapper', function (Server $c) {
965
+		$this->registerService('CryptoWrapper', function(Server $c) {
966 966
 			// FIXME: Instantiiated here due to cyclic dependency
967 967
 			$request = new Request(
968 968
 				[
@@ -987,7 +987,7 @@  discard block
 block discarded – undo
987 987
 				$request
988 988
 			);
989 989
 		});
990
-		$this->registerService('CsrfTokenManager', function (Server $c) {
990
+		$this->registerService('CsrfTokenManager', function(Server $c) {
991 991
 			$tokenGenerator = new CsrfTokenGenerator($c->getSecureRandom());
992 992
 
993 993
 			return new CsrfTokenManager(
@@ -995,22 +995,22 @@  discard block
 block discarded – undo
995 995
 				$c->query(SessionStorage::class)
996 996
 			);
997 997
 		});
998
-		$this->registerService(SessionStorage::class, function (Server $c) {
998
+		$this->registerService(SessionStorage::class, function(Server $c) {
999 999
 			return new SessionStorage($c->getSession());
1000 1000
 		});
1001
-		$this->registerService(\OCP\Security\IContentSecurityPolicyManager::class, function (Server $c) {
1001
+		$this->registerService(\OCP\Security\IContentSecurityPolicyManager::class, function(Server $c) {
1002 1002
 			return new ContentSecurityPolicyManager();
1003 1003
 		});
1004 1004
 		$this->registerAlias('ContentSecurityPolicyManager', \OCP\Security\IContentSecurityPolicyManager::class);
1005 1005
 
1006
-		$this->registerService('ContentSecurityPolicyNonceManager', function (Server $c) {
1006
+		$this->registerService('ContentSecurityPolicyNonceManager', function(Server $c) {
1007 1007
 			return new ContentSecurityPolicyNonceManager(
1008 1008
 				$c->getCsrfTokenManager(),
1009 1009
 				$c->getRequest()
1010 1010
 			);
1011 1011
 		});
1012 1012
 
1013
-		$this->registerService(\OCP\Share\IManager::class, function (Server $c) {
1013
+		$this->registerService(\OCP\Share\IManager::class, function(Server $c) {
1014 1014
 			$config = $c->getConfig();
1015 1015
 			$factoryClass = $config->getSystemValue('sharing.managerFactory', '\OC\Share20\ProviderFactory');
1016 1016
 			/** @var \OCP\Share\IProviderFactory $factory */
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
 
1054 1054
 		$this->registerAlias(\OCP\Collaboration\AutoComplete\IManager::class, \OC\Collaboration\AutoComplete\Manager::class);
1055 1055
 
1056
-		$this->registerService('SettingsManager', function (Server $c) {
1056
+		$this->registerService('SettingsManager', function(Server $c) {
1057 1057
 			$manager = new \OC\Settings\Manager(
1058 1058
 				$c->getLogger(),
1059 1059
 				$c->getDatabaseConnection(),
@@ -1073,29 +1073,29 @@  discard block
 block discarded – undo
1073 1073
 			);
1074 1074
 			return $manager;
1075 1075
 		});
1076
-		$this->registerService(\OC\Files\AppData\Factory::class, function (Server $c) {
1076
+		$this->registerService(\OC\Files\AppData\Factory::class, function(Server $c) {
1077 1077
 			return new \OC\Files\AppData\Factory(
1078 1078
 				$c->getRootFolder(),
1079 1079
 				$c->getSystemConfig()
1080 1080
 			);
1081 1081
 		});
1082 1082
 
1083
-		$this->registerService('LockdownManager', function (Server $c) {
1084
-			return new LockdownManager(function () use ($c) {
1083
+		$this->registerService('LockdownManager', function(Server $c) {
1084
+			return new LockdownManager(function() use ($c) {
1085 1085
 				return $c->getSession();
1086 1086
 			});
1087 1087
 		});
1088 1088
 
1089
-		$this->registerService(\OCP\OCS\IDiscoveryService::class, function (Server $c) {
1089
+		$this->registerService(\OCP\OCS\IDiscoveryService::class, function(Server $c) {
1090 1090
 			return new DiscoveryService($c->getMemCacheFactory(), $c->getHTTPClientService());
1091 1091
 		});
1092 1092
 
1093
-		$this->registerService(ICloudIdManager::class, function (Server $c) {
1093
+		$this->registerService(ICloudIdManager::class, function(Server $c) {
1094 1094
 			return new CloudIdManager();
1095 1095
 		});
1096 1096
 
1097 1097
 		/* To trick DI since we don't extend the DIContainer here */
1098
-		$this->registerService(CleanPreviewsBackgroundJob::class, function (Server $c) {
1098
+		$this->registerService(CleanPreviewsBackgroundJob::class, function(Server $c) {
1099 1099
 			return new CleanPreviewsBackgroundJob(
1100 1100
 				$c->getRootFolder(),
1101 1101
 				$c->getLogger(),
@@ -1110,18 +1110,18 @@  discard block
 block discarded – undo
1110 1110
 		$this->registerAlias(\OCP\AppFramework\Utility\ITimeFactory::class, \OC\AppFramework\Utility\TimeFactory::class);
1111 1111
 		$this->registerAlias('TimeFactory', \OCP\AppFramework\Utility\ITimeFactory::class);
1112 1112
 
1113
-		$this->registerService(Defaults::class, function (Server $c) {
1113
+		$this->registerService(Defaults::class, function(Server $c) {
1114 1114
 			return new Defaults(
1115 1115
 				$c->getThemingDefaults()
1116 1116
 			);
1117 1117
 		});
1118 1118
 		$this->registerAlias('Defaults', \OCP\Defaults::class);
1119 1119
 
1120
-		$this->registerService(\OCP\ISession::class, function (SimpleContainer $c) {
1120
+		$this->registerService(\OCP\ISession::class, function(SimpleContainer $c) {
1121 1121
 			return $c->query(\OCP\IUserSession::class)->getSession();
1122 1122
 		});
1123 1123
 
1124
-		$this->registerService(IShareHelper::class, function (Server $c) {
1124
+		$this->registerService(IShareHelper::class, function(Server $c) {
1125 1125
 			return new ShareHelper(
1126 1126
 				$c->query(\OCP\Share\IManager::class)
1127 1127
 			);
@@ -1183,11 +1183,11 @@  discard block
 block discarded – undo
1183 1183
 				// no avatar to remove
1184 1184
 			} catch (\Exception $e) {
1185 1185
 				// Ignore exceptions
1186
-				$logger->info('Could not cleanup avatar of ' . $user->getUID());
1186
+				$logger->info('Could not cleanup avatar of '.$user->getUID());
1187 1187
 			}
1188 1188
 		});
1189 1189
 
1190
-		$dispatcher->addListener('OCP\IUser::changeUser', function (GenericEvent $e) {
1190
+		$dispatcher->addListener('OCP\IUser::changeUser', function(GenericEvent $e) {
1191 1191
 			$manager = $this->getAvatarManager();
1192 1192
 			/** @var IUser $user */
1193 1193
 			$user = $e->getSubject();
@@ -1338,7 +1338,7 @@  discard block
 block discarded – undo
1338 1338
 	 * @deprecated since 9.2.0 use IAppData
1339 1339
 	 */
1340 1340
 	public function getAppFolder() {
1341
-		$dir = '/' . \OC_App::getCurrentApp();
1341
+		$dir = '/'.\OC_App::getCurrentApp();
1342 1342
 		$root = $this->getRootFolder();
1343 1343
 		if (!$root->nodeExists($dir)) {
1344 1344
 			$folder = $root->newFolder($dir);
@@ -1922,7 +1922,7 @@  discard block
 block discarded – undo
1922 1922
 	/**
1923 1923
 	 * @return \OCP\Collaboration\AutoComplete\IManager
1924 1924
 	 */
1925
-	public function getAutoCompleteManager(){
1925
+	public function getAutoCompleteManager() {
1926 1926
 		return $this->query(IManager::class);
1927 1927
 	}
1928 1928
 
Please login to merge, or discard this patch.