Code Duplication    Length = 2-2 lines in 2 locations

classes/fields/pick.php 2 locations

@@ 1956-1957 (lines=2) @@
1953
            pods_error( __( 'Invalid field request', 'pods' ), PodsInit::$admin );
1954
        elseif ( 'pick' != $field[ 'type' ] || empty( $field[ 'table_info' ] ) )
1955
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1956
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1957
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1958
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1959
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1960
@@ 1958-1959 (lines=2) @@
1955
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1956
        elseif ( 'single' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_single', $field ) )
1957
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1958
        elseif ( 'multi' == pods_var( self::$type . '_format_type', $field ) && 'autocomplete' == pods_var( self::$type . '_format_multi', $field ) )
1959
            pods_error( __( 'Invalid field', 'pods' ), PodsInit::$admin );
1960
1961
        $object_params = array(
1962
            'name' => $field[ 'name' ], // The name of the field