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

@@ 4149-4150 (lines=2) @@
4146
		 */
4147
		$value = apply_filters( 'pods_do_magic_tags', $value, $field_name, $helper_name, $before, $after );
4148
4149
		if ( is_array( $value ) ) {
4150
			$value = pods_serial_comma( $value, array( 'field' => $field_name, 'fields' => $this->fields ) );
4151
		}
4152
4153
		if ( null !== $value && false !== $value ) {