Code Duplication    Length = 14-14 lines in 2 locations

classes/PodsUI.php 2 locations

@@ 4433-4446 (lines=14) @@
4430
		$screen_html = $help_html = '';
4431
		$screen_link = $help_link = '';
4432
		if ( ! empty( $this->screen_options ) && ! empty( $this->help ) ) {
4433
			foreach ( $this->ui_page as $page ) {
4434
				if ( isset( $this->screen_options[ $page ] ) ) {
4435
					if ( is_array( $this->screen_options[ $page ] ) ) {
4436
						if ( isset( $this->screen_options[ $page ]['link'] ) ) {
4437
							$screen_link = $this->screen_options[ $page ]['link'];
4438
							break;
4439
						}
4440
					} else {
4441
						$screen_html = $this->screen_options[ $page ];
4442
						break;
4443
					}
4444
				}
4445
			}
4446
			foreach ( $this->ui_page as $page ) {
4447
				if ( isset( $this->help[ $page ] ) ) {
4448
					if ( is_array( $this->help[ $page ] ) ) {
4449
						if ( isset( $this->help[ $page ]['link'] ) ) {
@@ 4446-4459 (lines=14) @@
4443
					}
4444
				}
4445
			}
4446
			foreach ( $this->ui_page as $page ) {
4447
				if ( isset( $this->help[ $page ] ) ) {
4448
					if ( is_array( $this->help[ $page ] ) ) {
4449
						if ( isset( $this->help[ $page ]['link'] ) ) {
4450
							$help_link = $this->help[ $page ]['link'];
4451
							break;
4452
						}
4453
					} else {
4454
						$help_html = $this->help[ $page ];
4455
						break;
4456
					}
4457
				}
4458
			}
4459
		}//end if
4460
		$screen_html = $this->do_hook( 'screen_meta_screen_html', $screen_html );
4461
		$screen_link = $this->do_hook( 'screen_meta_screen_link', $screen_link );
4462
		$help_html   = $this->do_hook( 'screen_meta_help_html', $help_html );