Code Duplication    Length = 14-14 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 3831-3844 (lines=14) @@
3828
        $screen_html = $help_html = '';
3829
        $screen_link = $help_link = '';
3830
        if ( !empty( $this->screen_options ) && !empty( $this->help ) ) {
3831
            foreach ( $this->ui_page as $page ) {
3832
                if ( isset( $this->screen_options[ $page ] ) ) {
3833
                    if ( is_array( $this->screen_options[ $page ] ) ) {
3834
                        if ( isset( $this->screen_options[ $page ][ 'link' ] ) ) {
3835
                            $screen_link = $this->screen_options[ $page ][ 'link' ];
3836
                            break;
3837
                        }
3838
                    }
3839
                    else {
3840
                        $screen_html = $this->screen_options[ $page ];
3841
                        break;
3842
                    }
3843
                }
3844
            }
3845
            foreach ( $this->ui_page as $page ) {
3846
                if ( isset( $this->help[ $page ] ) ) {
3847
                    if ( is_array( $this->help[ $page ] ) ) {
@@ 3845-3858 (lines=14) @@
3842
                    }
3843
                }
3844
            }
3845
            foreach ( $this->ui_page as $page ) {
3846
                if ( isset( $this->help[ $page ] ) ) {
3847
                    if ( is_array( $this->help[ $page ] ) ) {
3848
                        if ( isset( $this->help[ $page ][ 'link' ] ) ) {
3849
                            $help_link = $this->help[ $page ][ 'link' ];
3850
                            break;
3851
                        }
3852
                    }
3853
                    else {
3854
                        $help_html = $this->help[ $page ];
3855
                        break;
3856
                    }
3857
                }
3858
            }
3859
        }
3860
        $screen_html = $this->do_hook( 'screen_meta_screen_html', $screen_html );
3861
        $screen_link = $this->do_hook( 'screen_meta_screen_link', $screen_link );