Code Duplication    Length = 2-5 lines in 2 locations

classes/PodsAdmin.php 2 locations

@@ 405-409 (lines=5) @@
402
                        add_options_page( $page_title, $menu_label, 'read', $menu_slug, array( $this, 'admin_content_settings' ) );
403
                    elseif ( 'appearances' == $menu_location )
404
                        add_theme_page( $page_title, $menu_label, 'read', $menu_slug, array( $this, 'admin_content_settings' ) );
405
                    elseif ( 'objects' == $menu_location ) {
406
                        if ( empty( $menu_position ) )
407
                            $menu_position = null;
408
                        add_menu_page( $page_title, $menu_label, 'read', $menu_slug, array( $this, 'admin_content_settings' ), $menu_icon, $menu_position );
409
                    }
410
                    elseif ( 'top' == $menu_location )
411
                        add_menu_page( $page_title, $menu_label, 'read', $menu_slug, array( $this, 'admin_content_settings' ), $menu_icon, $menu_position );
412
                    elseif ( 'submenu' == $menu_location && !empty( $menu_location_custom ) ) {
@@ 410-411 (lines=2) @@
407
                            $menu_position = null;
408
                        add_menu_page( $page_title, $menu_label, 'read', $menu_slug, array( $this, 'admin_content_settings' ), $menu_icon, $menu_position );
409
                    }
410
                    elseif ( 'top' == $menu_location )
411
                        add_menu_page( $page_title, $menu_label, 'read', $menu_slug, array( $this, 'admin_content_settings' ), $menu_icon, $menu_position );
412
                    elseif ( 'submenu' == $menu_location && !empty( $menu_location_custom ) ) {
413
                        if ( !isset( $submenu_items[ $menu_location_custom ] ) )
414
                            $submenu_items[ $menu_location_custom ] = array();