Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 290-295 (lines=6) @@
287
			}
288
			// TODO: check permissions/preconditions in all cases
289
			switch ($notificationType) {
290
				case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED:
291
					$share = $this->getValidShare(
292
						$providerId, $notification['sharedSecret']
293
					);
294
					$this->fedShareManager->acceptShare($share);
295
					break;
296
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
297
					$share = $this->getValidShare(
298
						$providerId, $notification['sharedSecret']
@@ 296-301 (lines=6) @@
293
					);
294
					$this->fedShareManager->acceptShare($share);
295
					break;
296
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
297
					$share = $this->getValidShare(
298
						$providerId, $notification['sharedSecret']
299
					);
300
					$this->fedShareManager->declineShare($share);
301
					break;
302
				case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE:
303
					$shareWithAddress = new Address($notification['shareWith']);
304
					$localShareWith = $shareWithAddress->getUserId();