Code Duplication    Length = 5-5 lines in 2 locations

manager/actions/mutate_content.dynamic.php 2 locations

@@ 794-798 (lines=5) @@
791
                                        <?php
792
                                        $parentlookup = false;
793
                                        if(isset ($_REQUEST['id'])) {
794
                                            if($content['parent'] == 0) {
795
                                                $parentname = $modx->getConfig('site_name');
796
                                            } else {
797
                                                $parentlookup = $content['parent'];
798
                                            }
799
                                        } elseif(isset ($_REQUEST['pid'])) {
800
                                            if($_REQUEST['pid'] == 0) {
801
                                                $parentname = $modx->getConfig('site_name');
@@ 806-810 (lines=5) @@
803
                                                $parentlookup = $_REQUEST['pid'];
804
                                            }
805
                                        } elseif(isset($_POST['parent'])) {
806
                                            if($_POST['parent'] == 0) {
807
                                                $parentname = $modx->getConfig('site_name');
808
                                            } else {
809
                                                $parentlookup = $_POST['parent'];
810
                                            }
811
                                        } else {
812
                                            $parentname = $modx->getConfig('site_name');
813
                                            $content['parent'] = 0;