Code Duplication    Length = 8-8 lines in 2 locations

apps/files_external/lib/Controller/UserGlobalStoragesController.php 1 location

@@ 98-105 (lines=8) @@
95
		);
96
	}
97
98
	protected function manipulateStorageConfig(StorageConfig $storage) {
99
		/** @var AuthMechanism */
100
		$authMechanism = $storage->getAuthMechanism();
101
		$authMechanism->manipulateStorageConfig($storage, $this->userSession->getUser());
102
		/** @var Backend */
103
		$backend = $storage->getBackend();
104
		$backend->manipulateStorageConfig($storage, $this->userSession->getUser());
105
	}
106
107
	/**
108
	 * Get an external storage entry.

apps/files_external/lib/Controller/UserStoragesController.php 1 location

@@ 78-85 (lines=8) @@
75
		$this->userSession = $userSession;
76
	}
77
78
	protected function manipulateStorageConfig(StorageConfig $storage) {
79
		/** @var AuthMechanism */
80
		$authMechanism = $storage->getAuthMechanism();
81
		$authMechanism->manipulateStorageConfig($storage, $this->userSession->getUser());
82
		/** @var Backend */
83
		$backend = $storage->getBackend();
84
		$backend->manipulateStorageConfig($storage, $this->userSession->getUser());
85
	}
86
87
	/**
88
	 * Get all storage entries