lib/Braintree/AddressGateway.php
private function _validateCustomerId($id = null)
    {
        if (empty($id) || trim($id) == "") {
            throw new InvalidArgumentException(
            'expected customer id to be set'
            );
        }
        if (!preg_match('/^[0-9A-Za-z_-]+$/', $id)) {
            throw new InvalidArgumentException(
            $id . ' is an invalid customer id.'
            );
        }

    }
private function _validateCustomerId($id = null)
    {
        if (empty($id) || trim($id) == "") {
            throw new InvalidArgumentException(
            'expected customer id to be set'
            );
        }
        if (!preg_match('/^[0-9A-Za-z_-]+$/', $id)) {
            throw new InvalidArgumentException(
            $id . ' is an invalid customer id.'
            );
        }

    }
private function _validateCustomerId ( $ id = null ) { if ( empty ( $ id ) || trim ( $ id ) == "" ) { throw new InvalidArgumentException ( 'expected customer id to be set' ) ; } if ( ! preg_match ( '/^[0-9A-Za-z_-]+$/' , $ id ) ) { throw new InvalidArgumentException ( $ id . ' is an invalid customer id.' ) ; } }
verifies that a valid customer id is being used
@ignore
@param string $id customer id
@throws InvalidArgumentException
verifies that a valid customer id is being used