source/Core/CreditCardValidator.php
protected function _isValidType($type, $number)
    {
        // testing if card type is known and matches pattern
        if (isset($this->_aCardsInfo[$type])) {
            return preg_match($this->_aCardsInfo[$type], $number);
        }

        return true;
    }
protected function _isValidType($type, $number)
    {
        // testing if card type is known and matches pattern
        if (isset($this->_aCardsInfo[$type])) {
            return preg_match($this->_aCardsInfo[$type], $number);
        }

        return true;
    }
protected function _isValidType ( $ type , $ number ) { // testing if card type is known and matches pattern if ( isset ( $ this -> _aCardsInfo [ $ type ] ) ) { return preg_match ( $ this -> _aCardsInfo [ $ type ] , $ number ) ; } return true ; }
Checks credit card type. Returns TRUE if card is valid

@param string $type   credit card type
@param string $number credit card number

@return bool
Checks credit card type . Returns TRUE if card is valid