Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

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