Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

@@ 531-541 (lines=11) @@
528
                        $contentData['other_parent_locations'] = $otherParentLocations;
529
                    }
530
                    break;
531
                case 'update':
532
                    $contentData = array_merge(
533
                        $contentData,
534
                        array(
535
                            'match' => array(
536
                                ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId
537
                            ),
538
                            'new_remote_id' => $content->contentInfo->remoteId,
539
                        )
540
                    );
541
                    break;
542
                case 'delete':
543
                    $contentData = array_merge(
544
                        $contentData,
@@ 542-551 (lines=10) @@
539
                        )
540
                    );
541
                    break;
542
                case 'delete':
543
                    $contentData = array_merge(
544
                        $contentData,
545
                        array(
546
                            'match' => array(
547
                                ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId
548
                            )
549
                        )
550
                    );
551
                    break;
552
                default:
553
                    throw new \Exception("Executor 'content' doesn't support mode '$mode'");
554
            }