Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 2641-2642 (lines=2) @@
2638
                    if ( $old_name != $field[ 'name' ] || $old_simple != $simple ) {
2639
                        $test = false;
2640
2641
                        if ( 0 < strlen( $old_definition ) )
2642
                            $test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `{$old_name}` {$definition}", false );
2643
2644
                        // If the old field doesn't exist, continue to add a new field
2645
                        if ( false === $test )
@@ 2660-2661 (lines=2) @@
2657
            elseif ( 0 < strlen( $definition ) ) {
2658
                $test = false;
2659
2660
                if ( 0 < strlen( $old_definition ) )
2661
                    $test = pods_query( "ALTER TABLE `@wp_pods_{$params->pod}` CHANGE `" . $field[ 'name' ] . "` {$definition}", false );
2662
2663
                // If the old field doesn't exist, continue to add a new field
2664
                if ( false === $test )