Code Duplication    Length = 3-3 lines in 2 locations

apps/files_sharing/lib/Controller/Share20OcsController.php 2 locations

@@ 893-895 (lines=3) @@
890
		}
891
892
		if ($share->getState() === $state) {
893
			if ($eventName !== '') {
894
				$this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share]));
895
			}
896
			// if there are no changes in the state, just return the share as if the change was successful
897
			$node->unlock(\OCP\Lock\ILockingProvider::LOCK_SHARED);
898
			return new \OC\OCS\Result([$this->formatShare($share, true)]);
@@ 934-936 (lines=3) @@
931
932
		$this->notificationPublisher->discardNotificationForUser($share, $this->currentUser->getUID());
933
934
		if ($eventName !== '') {
935
			$this->eventDispatcher->dispatch('share.after' . $eventName, new GenericEvent(null, ['share' => $share]));
936
		}
937
		return new \OC\OCS\Result([$this->formatShare($share, true)]);
938
	}
939