Fragen\GitHub_Updater\GitHub_API::ratelimit_reset PHP Метод

ratelimit_reset() защищенный статический Метод

Calculate and store time until rate limit reset.
protected static ratelimit_reset ( $response, $repo )
$response
$repo
    protected static function ratelimit_reset($response, $repo)
    {
        if (isset($response['headers']['x-ratelimit-reset'])) {
            $reset = (int) $response['headers']['x-ratelimit-reset'];
            $wait = date('i', $reset - time());
            parent::$error_code[$repo] = array_merge(parent::$error_code[$repo], array('git' => 'github', 'wait' => $wait));
        }
    }