Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

@@ 543-553 (lines=11) @@
540
                        $contentData['other_parent_locations'] = $otherParentLocations;
541
                    }
542
                    break;
543
                case 'update':
544
                    $contentData = array_merge(
545
                        $contentData,
546
                        array(
547
                            'match' => array(
548
                                ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId
549
                            ),
550
                            'new_remote_id' => $content->contentInfo->remoteId,
551
                        )
552
                    );
553
                    break;
554
                case 'delete':
555
                    $contentData = array_merge(
556
                        $contentData,
@@ 554-563 (lines=10) @@
551
                        )
552
                    );
553
                    break;
554
                case 'delete':
555
                    $contentData = array_merge(
556
                        $contentData,
557
                        array(
558
                            'match' => array(
559
                                ContentMatcher::MATCH_CONTENT_REMOTE_ID => $content->contentInfo->remoteId
560
                            )
561
                        )
562
                    );
563
                    break;
564
                default:
565
                    throw new \Exception("Executor 'content' doesn't support mode '$mode'");
566
            }