Code Duplication    Length = 4-5 lines in 2 locations

apps/files_external/lib/Service/GlobalStoragesService.php 1 location

@@ 83-87 (lines=5) @@
80
	 */
81
	protected function triggerChangeHooks(StorageConfig $oldStorage, StorageConfig $newStorage) {
82
		// if mount point changed, it's like a deletion + creation
83
		if ($oldStorage->getMountPoint() !== $newStorage->getMountPoint()) {
84
			$this->triggerHooks($oldStorage, Filesystem::signal_delete_mount);
85
			$this->triggerHooks($newStorage, Filesystem::signal_create_mount);
86
			return;
87
		}
88
89
		$userAdditions = array_diff($newStorage->getApplicableUsers(), $oldStorage->getApplicableUsers());
90
		$userDeletions = array_diff($oldStorage->getApplicableUsers(), $newStorage->getApplicableUsers());

apps/files_external/lib/Service/UserStoragesService.php 1 location

@@ 95-98 (lines=4) @@
92
	 */
93
	protected function triggerChangeHooks(StorageConfig $oldStorage, StorageConfig $newStorage) {
94
		// if mount point changed, it's like a deletion + creation
95
		if ($oldStorage->getMountPoint() !== $newStorage->getMountPoint()) {
96
			$this->triggerHooks($oldStorage, Filesystem::signal_delete_mount);
97
			$this->triggerHooks($newStorage, Filesystem::signal_create_mount);
98
		}
99
	}
100
101
	protected function getType() {