src/Provider/AbstractProvider.php
protected function verifyGrant($grant)
    {
        if (is_string($grant)) {
            return $this->grantFactory->getGrant($grant);
        }

        $this->grantFactory->checkGrant($grant);
        return $grant;
    }
protected function verifyGrant($grant)
    {
        if (is_string($grant)) {
            return $this->grantFactory->getGrant($grant);
        }

        $this->grantFactory->checkGrant($grant);
        return $grant;
    }
protected function verifyGrant ( $ grant ) { if ( is_string ( $ grant ) ) { return $ this -> grantFactory -> getGrant ( $ grant ) ; } $ this -> grantFactory -> checkGrant ( $ grant ) ; return $ grant ; }
Checks that a provided grant is valid, or attempts to produce one if the
provided grant is a string.

@param  AbstractGrant|string $grant
@return AbstractGrant
Checks that a provided grant is valid or attempts to produce one if the provided grant is a string .