Code Duplication    Length = 8-8 lines in 2 locations

lib/private/Server.php 2 locations

@@ 656-663 (lines=8) @@
653
			);
654
		});
655
		$this->registerAlias('HttpClientService', \OCP\Http\Client\IClientService::class);
656
		$this->registerService(\OCP\Diagnostics\IEventLogger::class, function (Server $c) {
657
			$eventLogger = new EventLogger();
658
			if ($c->getSystemConfig()->getValue('debug', false)) {
659
				// In debug mode, module is being activated by default
660
				$eventLogger->activate();
661
			}
662
			return $eventLogger;
663
		});
664
		$this->registerAlias('EventLogger', \OCP\Diagnostics\IEventLogger::class);
665
666
		$this->registerService(\OCP\Diagnostics\IQueryLogger::class, function (Server $c) {
@@ 666-673 (lines=8) @@
663
		});
664
		$this->registerAlias('EventLogger', \OCP\Diagnostics\IEventLogger::class);
665
666
		$this->registerService(\OCP\Diagnostics\IQueryLogger::class, function (Server $c) {
667
			$queryLogger = new QueryLogger();
668
			if ($c->getSystemConfig()->getValue('debug', false)) {
669
				// In debug mode, module is being activated by default
670
				$queryLogger->activate();
671
			}
672
			return $queryLogger;
673
		});
674
		$this->registerAlias('QueryLogger', \OCP\Diagnostics\IQueryLogger::class);
675
676
		$this->registerService(TempManager::class, function (Server $c) {