Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 790-792 (lines=3) @@
787
		$this->shareNotificationForSharer('unshared_user_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
788
789
		// Owner
790
		if ($this->currentUser->getUID() !== null) {
791
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_user_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
792
		}
793
794
		// Recipient
795
		$this->addNotificationsForUser(
@@ 818-820 (lines=3) @@
815
816
		// User performing the share
817
		$this->shareNotificationForSharer('unshared_group_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
818
		if ($this->currentUser->getUID() !== null) {
819
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_group_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
820
		}
821
822
		$offset = 0;
823
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);