Code Duplication    Length = 10-11 lines in 2 locations

Core/Executor/ContentManager.php 2 locations

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