Code Duplication    Length = 3-3 lines in 2 locations

lib/FilesHooks.php 2 locations

@@ 786-788 (lines=3) @@
783
		$this->shareNotificationForSharer('unshared_user_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
784
785
		// Owner
786
		if ($this->currentUser->getUID() !== null) {
787
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_user_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
788
		}
789
790
		// Recipient
791
		$this->addNotificationsForUser(
@@ 814-816 (lines=3) @@
811
812
		// User performing the share
813
		$this->shareNotificationForSharer('unshared_group_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
814
		if ($this->currentUser->getUID() !== null) {
815
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_group_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
816
		}
817
818
		$offset = 0;
819
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);