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

@@ 3830-3836 (lines=7) @@
3827
			$default_templates = apply_filters( 'pods_template_default_templates', $default_templates );
3828
3829
			// Only detail templates need $this->id.
3830
			if ( empty( $this->id ) ) {
3831
				while ( $this->fetch() ) {
3832
					pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
3833
				}
3834
			} else {
3835
				pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
3836
			}
3837
3838
			$out = ob_get_clean();
3839