Code Duplication    Length = 10-11 lines in 2 locations

lib/private/Files/External/Service/UserGlobalStoragesService.php 1 location

@@ 50-60 (lines=11) @@
47
	 * @param IGroupManager $groupManager
48
	 * @param IUserMountCache $userMountCache
49
	 */
50
	public function __construct(
51
		IStoragesBackendService $backendService,
52
		DBConfigService $dbConfig,
53
		IUserSession $userSession,
54
		IGroupManager $groupManager,
55
		IUserMountCache $userMountCache
56
	) {
57
		parent::__construct($backendService, $dbConfig, $userMountCache);
58
		$this->userSession = $userSession;
59
		$this->groupManager = $groupManager;
60
	}
61
62
	/**
63
	 * Replace config hash ID with real IDs, for migrating legacy storages

lib/private/Files/External/Service/UserStoragesService.php 1 location

@@ 53-62 (lines=10) @@
50
	 * @param IUserSession $userSession user session
51
	 * @param IUserMountCache $userMountCache
52
	 */
53
	public function __construct(
54
		IStoragesBackendService $backendService,
55
		DBConfigService $dbConfig,
56
		IUserSession $userSession,
57
		IUserMountCache $userMountCache
58
	) {
59
		$this->userSession = $userSession;
60
		$this->userMountCache = $userMountCache;
61
		parent::__construct($backendService, $dbConfig, $userMountCache);
62
	}
63
64
	protected function readDBConfig() {
65
		return $this->dbConfig->getUserMountsFor(DBConfigService::APPLICABLE_TYPE_USER, $this->getUser()->getUID());