Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAdmin.php 2 locations

@@ 327-328 (lines=2) @@
324
325
            if ( !empty( $taxonomies ) ) {
326
                foreach ( (array) $taxonomies as $pod ) {
327
                    if ( !pods_is_admin( array( 'pods', 'pods_content', 'pods_edit_' . $pod[ 'name' ] ) ) )
328
                        continue;
329
330
                    $page_title = pods_var_raw( 'label', $pod, ucwords( str_replace( '_', ' ', $pod[ 'name' ] ) ), null, true );
331
                    $page_title = apply_filters( 'pods_admin_menu_page_title', $page_title, $pod );
@@ 382-383 (lines=2) @@
379
380
            if ( !empty( $settings ) ) {
381
                foreach ( (array) $settings as $pod ) {
382
                    if ( !pods_is_admin( array( 'pods', 'pods_content', 'pods_edit_' . $pod[ 'name' ] ) ) )
383
                        continue;
384
385
                    $page_title = pods_var_raw( 'label', $pod, ucwords( str_replace( '_', ' ', $pod[ 'name' ] ) ), null, true );
386
                    $page_title = apply_filters( 'pods_admin_menu_page_title', $page_title, $pod );