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

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