Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 1877-1878 (lines=2) @@
1874
            pods_error( __( 'Invalid field request', 'pods' ), PodsInit::$admin );
1875
        elseif ( 'pick' != $field[ 'type' ] || empty( $field[ 'table_info' ] ) )
1876
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1877
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1878
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1879
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1880
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1881
@@ 1879-1880 (lines=2) @@
1876
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1877
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1878
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1879
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1880
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1881
1882
        $object_params = array(
1883
            'name' => $field[ 'name' ], // The name of the field