Code Duplication    Length = 9-9 lines in 2 locations

classes/PodsInit.php 2 locations

@@ 1068-1076 (lines=9) @@
1065
			}
1066
		}
1067
1068
		if ( ! empty( PodsMeta::$user ) ) {
1069
			$pod = current( PodsMeta::$user );
1070
1071
			$rest_enabled = (boolean) pods_v( 'rest_enable', $pod['options'], false );
1072
1073
			if ( $rest_enabled ) {
1074
				new PodsRESTFields( $pod['name'] );
1075
			}
1076
		}
1077
1078
		if ( ! empty( PodsMeta::$media ) ) {
1079
			$pod = current( PodsMeta::$media );
@@ 1078-1086 (lines=9) @@
1075
			}
1076
		}
1077
1078
		if ( ! empty( PodsMeta::$media ) ) {
1079
			$pod = current( PodsMeta::$media );
1080
1081
			$rest_enabled = (boolean) pods_v( 'rest_enable', $pod['options'], false );
1082
1083
			if ( $rest_enabled ) {
1084
				new PodsRESTFields( $pod['name'] );
1085
			}
1086
		}
1087
1088
	}
1089