Code Duplication    Length = 4-5 lines in 2 locations

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

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

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

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