lib/Imgur/Middleware/ErrorMiddleware.php
private function checkUserRateLimit(ResponseInterface $response)
    {
        $userRemaining = $response->getHeaderLine('X-RateLimit-UserRemaining');
        $userLimit = $response->getHeaderLine('X-RateLimit-UserLimit');

        if ('' !== $userRemaining && $userRemaining < 1) {
            throw new RateLimitException('No user credits available. The limit is ' . $userLimit);
        }
    }
private function checkUserRateLimit(ResponseInterface $response)
    {
        $userRemaining = $response->getHeaderLine('X-RateLimit-UserRemaining');
        $userLimit = $response->getHeaderLine('X-RateLimit-UserLimit');

        if ('' !== $userRemaining && $userRemaining < 1) {
            throw new RateLimitException('No user credits available. The limit is ' . $userLimit);
        }
    }
private function checkUserRateLimit ( ResponseInterface $ response ) { $ userRemaining = $ response -> getHeaderLine ( 'X-RateLimit-UserRemaining' ) ; $ userLimit = $ response -> getHeaderLine ( 'X-RateLimit-UserLimit' ) ; if ( '' !== $ userRemaining && $ userRemaining < 1 ) { throw new RateLimitException ( 'No user credits available. The limit is ' . $ userLimit ) ; } }
Check if user hit limit.

@param ResponseInterface $response
Check if user hit limit .