Code Duplication    Length = 8-8 lines in 2 locations

apps/files_external/lib/Service/GlobalStoragesService.php 2 locations

@@ 98-105 (lines=8) @@
95
		// if no applicable were set, raise a signal for "all"
96
		$oldApplicableUsers = $oldStorage->getApplicableUsers();
97
		$oldApplicableGroups = $oldStorage->getApplicableGroups();
98
		if (empty($oldApplicableUsers) && empty($oldApplicableGroups)) {
99
			$this->triggerApplicableHooks(
100
				Filesystem::signal_delete_mount,
101
				$oldStorage->getMountPoint(),
102
				\OC_Mount_Config::MOUNT_TYPE_USER,
103
				['all']
104
			);
105
		}
106
107
		// trigger delete for removed users
108
		$this->triggerApplicableHooks(
@@ 143-150 (lines=8) @@
140
		// if no applicable, raise a signal for "all"
141
		$newApplicableUsers = $newStorage->getApplicableUsers();
142
		$newApplicableGroups = $newStorage->getApplicableGroups();
143
		if (empty($newApplicableUsers) && empty($newApplicableGroups)) {
144
			$this->triggerApplicableHooks(
145
				Filesystem::signal_create_mount,
146
				$newStorage->getMountPoint(),
147
				\OC_Mount_Config::MOUNT_TYPE_USER,
148
				['all']
149
			);
150
		}
151
	}
152
153
	/**