lib/Github/Api/RateLimit.php
protected function fetchLimits()
    {
        $result = $this->get('/rate_limit') ?: [];

        // Assemble Limit instances
        foreach ($result['resources'] as $resourceName => $resource) {
            $this->resources[$resourceName] = new RateLimitResource($resourceName, $resource);
        }

        return $result;
    }
protected function fetchLimits()
    {
        $result = $this->get('/rate_limit') ?: [];

        // Assemble Limit instances
        foreach ($result['resources'] as $resourceName => $resource) {
            $this->resources[$resourceName] = new RateLimitResource($resourceName, $resource);
        }

        return $result;
    }
protected function fetchLimits ( ) { $ result = $ this -> get ( '/rate_limit' ) ? : [ ] ; // Assemble Limit instances foreach ( $ result [ 'resources' ] as $ resourceName => $ resource ) { $ this -> resources [ $ resourceName ] = new RateLimitResource ( $ resourceName , $ resource ) ; } return $ result ; }
Returns the data directly from the GitHub API endpoint.

@return array
Returns the data directly from the GitHub API endpoint .