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

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