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

@@ 4189-4190 (lines=2) @@
4186
		 */
4187
		$value = apply_filters( 'pods_do_magic_tags', $value, $field_name, $helper_name, $before, $after );
4188
4189
		if ( is_array( $value ) ) {
4190
			$value = pods_serial_comma( $value, array(
4191
				'field'  => $field_name,
4192
				'fields' => $this->fields,
4193
			) );