Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

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