Code Duplication    Length = 6-6 lines in 2 locations

classes/PodsAdmin.php 2 locations

@@ 371-376 (lines=6) @@
368
                    }
369
                    elseif ( 'top' == $menu_location )
370
                        add_menu_page( $page_title, $menu_label, 'read', $menu_slug, '', $menu_icon, $menu_position );
371
                    elseif ( 'submenu' == $menu_location && !empty( $menu_location_custom ) ) {
372
                        if ( !isset( $submenu_items[ $menu_location_custom ] ) )
373
                            $submenu_items[ $menu_location_custom ] = array();
374
375
                        $submenu_items[ $menu_location_custom ][] = array( $menu_location_custom, $page_title, $menu_label, 'read', $menu_slug, '' );
376
                    }
377
                }
378
            }
379
@@ 412-417 (lines=6) @@
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();
415
416
                        $submenu_items[ $menu_location_custom ][] = array( $menu_location_custom, $page_title, $menu_label, 'read', $menu_slug, array( $this, 'admin_content_settings' ) );
417
                    }
418
                }
419
            }
420