Code Duplication    Length = 7-7 lines in 2 locations

components/Templates/Templates.php 1 location

@@ 546-552 (lines=7) @@
543
544
			$default_templates = apply_filters( 'pods_template_default_templates', $default_templates );
545
546
			if ( empty( $obj->id ) ) {
547
				while ( $obj->fetch() ) {
548
					pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
549
				}
550
			} else {
551
				pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
552
			}
553
		}//end if
554
555
		$out = ob_get_clean();

classes/Pods.php 1 location

@@ 3844-3850 (lines=7) @@
3841
			$default_templates = apply_filters( 'pods_template_default_templates', $default_templates );
3842
3843
			// Only detail templates need $this->id.
3844
			if ( empty( $this->id ) ) {
3845
				while ( $this->fetch() ) {
3846
					pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
3847
				}
3848
			} else {
3849
				pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
3850
			}
3851
3852
			$out = ob_get_clean();
3853