Code Duplication    Length = 6-6 lines in 2 locations

apps/federatedfilesharing/lib/Controller/OcmController.php 2 locations

@@ 282-287 (lines=6) @@
279
			}
280
			// TODO: check permissions/preconditions in all cases
281
			switch ($notificationType) {
282
				case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED:
283
					$share = $this->getValidShare(
284
						$providerId, $notification['sharedSecret']
285
					);
286
					$this->fedShareManager->acceptShare($share);
287
					break;
288
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
289
					$share = $this->getValidShare(
290
						$providerId, $notification['sharedSecret']
@@ 288-293 (lines=6) @@
285
					);
286
					$this->fedShareManager->acceptShare($share);
287
					break;
288
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
289
					$share = $this->getValidShare(
290
						$providerId, $notification['sharedSecret']
291
					);
292
					$this->fedShareManager->declineShare($share);
293
					break;
294
				case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE:
295
					$shareWith = $notification['shareWith'];
296
					$share = $this->getValidShare(