Code Duplication    Length = 14-14 lines in 2 locations

classes/PodsAdmin.php 2 locations

@@ 461-474 (lines=14) @@
458
						add_menu_page( $page_title, $menu_label, 'read', $menu_slug, '', $menu_icon, $menu_position );
459
					} elseif ( 'top' === $menu_location ) {
460
						add_menu_page( $page_title, $menu_label, 'read', $menu_slug, '', $menu_icon, $menu_position );
461
					} elseif ( 'submenu' === $menu_location && ! empty( $menu_location_custom ) ) {
462
						if ( ! isset( $submenu_items[ $menu_location_custom ] ) ) {
463
							$submenu_items[ $menu_location_custom ] = array();
464
						}
465
466
						$submenu_items[ $menu_location_custom ][] = array(
467
							$menu_location_custom,
468
							$page_title,
469
							$menu_label,
470
							'read',
471
							$menu_slug,
472
							'',
473
						);
474
					}//end if
475
				}//end foreach
476
			}//end if
477
@@ 532-545 (lines=14) @@
529
								'admin_content_settings',
530
							), $menu_icon, $menu_position
531
						);
532
					} elseif ( 'submenu' === $menu_location && ! empty( $menu_location_custom ) ) {
533
						if ( ! isset( $submenu_items[ $menu_location_custom ] ) ) {
534
							$submenu_items[ $menu_location_custom ] = array();
535
						}
536
537
						$submenu_items[ $menu_location_custom ][] = array(
538
							$menu_location_custom,
539
							$page_title,
540
							$menu_label,
541
							'read',
542
							$menu_slug,
543
							array( $this, 'admin_content_settings' ),
544
						);
545
					}//end if
546
				}//end foreach
547
			}//end if
548