Code Duplication    Length = 7-7 lines in 2 locations

classes/Pods.php 1 location

@@ 3348-3354 (lines=7) @@
3345
			$default_templates = apply_filters( 'pods_template_default_templates', $default_templates );
3346
3347
			// Only detail templates need $this->id
3348
			if ( empty( $this->id ) ) {
3349
				while ( $this->fetch() ) {
3350
					pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
3351
				}
3352
			}
3353
			else
3354
				pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
3355
3356
			$out = ob_get_clean();
3357

components/Templates/Templates.php 1 location

@@ 479-485 (lines=7) @@
476
477
			$default_templates = apply_filters( 'pods_template_default_templates', $default_templates );
478
479
			if ( empty( $obj->id ) ) {
480
				while ( $obj->fetch() ) {
481
					pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
482
				}
483
			}
484
			else
485
				pods_template_part( $default_templates, compact( array_keys( get_defined_vars() ) ) );
486
487
		}
488