Code Duplication    Length = 4-4 lines in 3 locations

components/Pages.php 3 locations

@@ 876-879 (lines=4) @@
873
		global $pods;
874
875
		// Fix any global confusion wherever this runs
876
		if ( isset( $pods ) && ! isset( $GLOBALS['pods'] ) ) {
877
			$GLOBALS['pods'] =& $pods;
878
		} elseif ( ! isset( $pods ) && isset( $GLOBALS['pods'] ) ) {
879
			$pods =& $GLOBALS['pods'];
880
		}
881
882
		if ( ! defined( 'PODS_DISABLE_POD_PAGE_CHECK' ) || ! PODS_DISABLE_POD_PAGE_CHECK ) {
@@ 937-940 (lines=4) @@
934
			global $pods;
935
936
			// Fix any global confusion wherever this runs
937
			if ( isset( $pods ) && ! isset( $GLOBALS['pods'] ) ) {
938
				$GLOBALS['pods'] =& $pods;
939
			} elseif ( ! isset( $pods ) && isset( $GLOBALS['pods'] ) ) {
940
				$pods =& $GLOBALS['pods'];
941
			}
942
943
			if ( 0 < strlen( trim( $pods_page['code'] ) ) ) {
@@ 989-992 (lines=4) @@
986
		global $pods;
987
988
		// Fix any global confusion wherever this runs
989
		if ( isset( $pods ) && ! isset( $GLOBALS['pods'] ) ) {
990
			$GLOBALS['pods'] =& $pods;
991
		} elseif ( ! isset( $pods ) && isset( $GLOBALS['pods'] ) ) {
992
			$pods =& $GLOBALS['pods'];
993
		}
994
995
		if ( false !== self::$exists ) {