Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 322-328 (lines=7) @@
319
			}
320
			// TODO: check permissions/preconditions in all cases
321
			switch ($notificationType) {
322
				case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED:
323
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
324
					$share = $this->ocmMiddleware->getValidShare(
325
						$providerId, $notification['sharedSecret']
326
					);
327
					$this->fedShareManager->acceptShare($share);
328
					break;
329
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
330
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
331
					$share = $this->ocmMiddleware->getValidShare(
@@ 329-335 (lines=7) @@
326
					);
327
					$this->fedShareManager->acceptShare($share);
328
					break;
329
				case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED:
330
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
331
					$share = $this->ocmMiddleware->getValidShare(
332
						$providerId, $notification['sharedSecret']
333
					);
334
					$this->fedShareManager->declineShare($share);
335
					break;
336
				case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE:
337
					$this->ocmMiddleware->assertOutgoingSharingEnabled();
338
					$this->ocmMiddleware->assertNotNull(