Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 2622-2623 (lines=2) @@
2619
                    if ( $old_name != $field[ 'name' ] || $old_simple != $simple ) {
2620
                        $test = false;
2621
2622
                        if ( 0 < strlen( $old_definition ) )
2623
                            $test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `{$old_name}` {$definition}", false );
2624
2625
                        // If the old field doesn't exist, continue to add a new field
2626
                        if ( false === $test )
@@ 2641-2642 (lines=2) @@
2638
            elseif ( 0 < strlen( $definition ) ) {
2639
                $test = false;
2640
2641
                if ( 0 < strlen( $old_definition ) )
2642
                    $test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `" . $field[ 'name' ] . "` {$definition}", false );
2643
2644
                // If the old field doesn't exist, continue to add a new field
2645
                if ( false === $test )