lib/BlockCypher/Handler/TokenRestHandler.php
private function urlContainsToken($url)
    {
        // TODO: add test for this method.

        $query = parse_url($url, PHP_URL_QUERY);
        parse_str($query, $params);
        if (isset($params["token"])) {
            return true;
        } else {
            return false;
        }
    }
private function urlContainsToken($url)
    {
        // TODO: add test for this method.

        $query = parse_url($url, PHP_URL_QUERY);
        parse_str($query, $params);
        if (isset($params["token"])) {
            return true;
        } else {
            return false;
        }
    }
private function urlContainsToken ( $ url ) { // TODO: add test for this method. $ query = parse_url ( $ url , PHP_URL_QUERY ) ; parse_str ( $ query , $ params ) ; if ( isset ( $ params [ "token" ] ) ) { return true ; } else { return false ; } }
Return true if the given url contains a parameter called 'token'.

@param $url
@return bool
Return true if the given url contains a parameter called token .