Code Duplication    Length = 2-3 lines in 2 locations

components/Templates/includes/functions-view_template.php 1 location

@@ 406-408 (lines=3) @@
403
404
			$value = apply_filters( 'pods_do_magic_tags', $value, $field_name, $helper_name, $before, $after );
405
406
			if ( is_array( $value ) ) {
407
				$value = pods_serial_comma( $value, array( 'field' => $field_name, 'fields' => $this->fields ) );
408
			}
409
410
			if ( null !== $value && false !== $value ) {
411
				return $before . $value . $after;

classes/Pods.php 1 location

@@ 4203-4204 (lines=2) @@
4200
		 */
4201
		$value = apply_filters( 'pods_do_magic_tags', $value, $field_name, $helper_name, $before, $after );
4202
4203
		if ( is_array( $value ) ) {
4204
			$value = pods_serial_comma( $value, array(
4205
				'field'  => $field_name,
4206
				'fields' => $this->fields,
4207
			) );