src/Webservice/GitHubWebservice.php
protected function _parseLinks($links)
    {
        $links = array_map(function ($value) {
            $matches = [];
            preg_match('/\<(?P<link>.*)\>\; rel\=\"(?P<rel>.*)\"/', $value, $matches);

            return $matches;
        }, explode(', ', $links));

        return Hash::combine($links, '{n}.rel', '{n}.link');
    }
protected function _parseLinks($links)
    {
        $links = array_map(function ($value) {
            $matches = [];
            preg_match('/\<(?P<link>.*)\>\; rel\=\"(?P<rel>.*)\"/', $value, $matches);

            return $matches;
        }, explode(', ', $links));

        return Hash::combine($links, '{n}.rel', '{n}.link');
    }
protected function _parseLinks ( $ links ) { $ links = array_map ( function ( $ value ) { $ matches = [ ] ; preg_match ( '/\<(?P<link>.*)\>\; rel\=\"(?P<rel>.*)\"/' , $ value , $ matches ) ; return $ matches ; } , explode ( ', ' , $ links ) ) ; return Hash :: combine ( $ links , '{n}.rel' , '{n}.link' ) ; }
Parse Link headers from response.

@param array|null $links List of Link headers
@return array
Parse Link headers from response .