Code Duplication    Length = 3-3 lines in 3 locations

lib/FilesHooks.php 3 locations

@@ 799-801 (lines=3) @@
796
		$this->shareNotificationForSharer('unshared_user_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
797
798
		// Owner
799
		if ($this->currentUser->getUID() !== null) {
800
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_user_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
801
		}
802
803
		// Recipient
804
		$this->addNotificationsForUser(
@@ 827-829 (lines=3) @@
824
825
		// User performing the share
826
		$this->shareNotificationForSharer('unshared_group_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
827
		if ($this->currentUser->getUID() !== null) {
828
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_group_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
829
		}
830
831
		$offset = 0;
832
		$users = $group->searchUsers('', self::USER_BATCH_SIZE, $offset);
@@ 1130-1132 (lines=3) @@
1127
	
1128
		// User performing the share
1129
		$this->shareNotificationForSharer('unshared_circle_self', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
1130
		if ($this->currentUser->getUID() !== null) {
1131
			$this->shareNotificationForOriginalOwners($this->currentUser->getUID(), 'unshared_circle_by', $share->getSharedWith(), $share->getNodeId(), $share->getNodeType());
1132
		}
1133
	}
1134
}
1135