GitHub PullRequestReviewCommentEvent at 2014-11-19 21:51:56
Repository: foursquare-api-client
Actor: jcroll
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/comments/20610408","id":20610408,"diff_hunk":"@@ -1,23 +1,35 @@\n <?php\n \n namespace Jcroll\\FoursquareApiClient\\Client;\n+use GuzzleHttp\\Client;\n+use GuzzleHttp\\Collection;\n+use GuzzleHttp\\Command\\Guzzle\\GuzzleClient;\n+use GuzzleHttp\\Command\\Guzzle\\Description;\n+use GuzzleHttp\\Event\\CompleteEvent;\n+use GuzzleHttp\\Event\\ErrorEvent;\n+use GuzzleHttp\\Event\\BeforeEvent;\n+use \\InvalidArgumentException;\n \n-use Guzzle\\Common\\Collection;\n-use Guzzle\\Plugin\\Oauth\\OauthPlugin;\n-use Guzzle\\Service\\Client;\n-use Guzzle\\Service\\Description\\ServiceDescription;\n-use Guzzle\\Service\\Builder\\ServiceBuilder;\n-use Guzzle\\Common\\Exception\\InvalidArgumentException;\n-\n-class FoursquareClient extends Client\n+class FoursquareClient extends GuzzleClient\n {\n+    static $serviceDescription = NULL;\n+    private $httpClient = NULL;\n     public static function factory($config = array())\n     {\n-        $default = array('base_url' => 'https://api.foursquare.com/v2/');\n+        if (static::$serviceDescription == NULL) {\n+            static::$serviceDescription = json_decode(file_get_contents(dirname(__DIR__).'/Resources/config/client.json'), true);\n+        }\n+\n+        $default = array(\n+            'verify' => true,\n+            'event.before' => function(BeforeEvent $e) { },","path":"lib/Jcroll/FoursquareApiClient/Client/FoursquareClient.php","position":34,"original_position":34,"commit_id":"21e9b20909fd293476b8bf3359a690d2acda254b","original_commit_id":"21e9b20909fd293476b8bf3359a690d2acda254b","user":{"login":"jcroll","id":1441013,"avatar_url":"https://avatars.githubusercontent.com/u/1441013?v=3","gravatar_id":"","url":"https://api.github.com/users/jcroll","html_url":"https://github.com/jcroll","followers_url":"https://api.github.com/users/jcroll/followers","following_url":"https://api.github.com/users/jcroll/following{/other_user}","gists_url":"https://api.github.com/users/jcroll/gists{/gist_id}","starred_url":"https://api.github.com/users/jcroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcroll/subscriptions","organizations_url":"https://api.github.com/users/jcroll/orgs","repos_url":"https://api.github.com/users/jcroll/repos","events_url":"https://api.github.com/users/jcroll/events{/privacy}","received_events_url":"https://api.github.com/users/jcroll/received_events","type":"User","site_admin":false},"body":"'event.before' => function(BeforeEvent $e) { return; },","created_at":"2014-11-19T21:51:56Z","updated_at":"2014-11-19T21:51:56Z","html_url":"https://github.com/jcroll/foursquare-api-client/pull/5#discussion_r20610408","pull_request_url":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/comments/20610408"},"html":{"href":"https://github.com/jcroll/foursquare-api-client/pull/5#discussion_r20610408"},"pull_request":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5","id":19323164,"html_url":"https://github.com/jcroll/foursquare-api-client/pull/5","diff_url":"https://github.com/jcroll/foursquare-api-client/pull/5.diff","patch_url":"https://github.com/jcroll/foursquare-api-client/pull/5.patch","issue_url":"https://api.github.com/repos/jcroll/foursquare-api-client/issues/5","number":5,"state":"open","locked":false,"title":"Adding support for Guzzle 4","user":{"login":"sesser","id":632505,"avatar_url":"https://avatars.githubusercontent.com/u/632505?v=3","gravatar_id":"","url":"https://api.github.com/users/sesser","html_url":"https://github.com/sesser","followers_url":"https://api.github.com/users/sesser/followers","following_url":"https://api.github.com/users/sesser/following{/other_user}","gists_url":"https://api.github.com/users/sesser/gists{/gist_id}","starred_url":"https://api.github.com/users/sesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sesser/subscriptions","organizations_url":"https://api.github.com/users/sesser/orgs","repos_url":"https://api.github.com/users/sesser/repos","events_url":"https://api.github.com/users/sesser/events{/privacy}","received_events_url":"https://api.github.com/users/sesser/received_events","type":"User","site_admin":false},"body":"Converted to Guzzle 4. All existing tests pass.\r\n\r\n- Added support for the new Guzzel 4\r\n- Added event config options for the Http Client (Before, Complete and Error)\r\n- Added option to pass the `verify` option to fix issues with PHP 5.5.14+ on Mac OS X (homebrew)","created_at":"2014-08-05T05:30:41Z","updated_at":"2014-11-19T21:51:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6068eb9bba9f9ea6e47c95b67f381213b069404f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5/commits","review_comments_url":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5/comments","review_comment_url":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jcroll/foursquare-api-client/issues/5/comments","statuses_url":"https://api.github.com/repos/jcroll/foursquare-api-client/statuses/21e9b20909fd293476b8bf3359a690d2acda254b","head":{"label":"sesser:master","ref":"master","sha":"21e9b20909fd293476b8bf3359a690d2acda254b","user":{"login":"sesser","id":632505,"avatar_url":"https://avatars.githubusercontent.com/u/632505?v=3","gravatar_id":"","url":"https://api.github.com/users/sesser","html_url":"https://github.com/sesser","followers_url":"https://api.github.com/users/sesser/followers","following_url":"https://api.github.com/users/sesser/following{/other_user}","gists_url":"https://api.github.com/users/sesser/gists{/gist_id}","starred_url":"https://api.github.com/users/sesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sesser/subscriptions","organizations_url":"https://api.github.com/users/sesser/orgs","repos_url":"https://api.github.com/users/sesser/repos","events_url":"https://api.github.com/users/sesser/events{/privacy}","received_events_url":"https://api.github.com/users/sesser/received_events","type":"User","site_admin":false},"repo":{"id":22395487,"name":"foursquare-api-client","full_name":"sesser/foursquare-api-client","owner":{"login":"sesser","id":632505,"avatar_url":"https://avatars.githubusercontent.com/u/632505?v=3","gravatar_id":"","url":"https://api.github.com/users/sesser","html_url":"https://github.com/sesser","followers_url":"https://api.github.com/users/sesser/followers","following_url":"https://api.github.com/users/sesser/following{/other_user}","gists_url":"https://api.github.com/users/sesser/gists{/gist_id}","starred_url":"https://api.github.com/users/sesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sesser/subscriptions","organizations_url":"https://api.github.com/users/sesser/orgs","repos_url":"https://api.github.com/users/sesser/repos","events_url":"https://api.github.com/users/sesser/events{/privacy}","received_events_url":"https://api.github.com/users/sesser/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sesser/foursquare-api-client","description":"A PHP foursquare API HTTP client","fork":true,"url":"https://api.github.com/repos/sesser/foursquare-api-client","forks_url":"https://api.github.com/repos/sesser/foursquare-api-client/forks","keys_url":"https://api.github.com/repos/sesser/foursquare-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sesser/foursquare-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sesser/foursquare-api-client/teams","hooks_url":"https://api.github.com/repos/sesser/foursquare-api-client/hooks","issue_events_url":"https://api.github.com/repos/sesser/foursquare-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/sesser/foursquare-api-client/events","assignees_url":"https://api.github.com/repos/sesser/foursquare-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/sesser/foursquare-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/sesser/foursquare-api-client/tags","blobs_url":"https://api.github.com/repos/sesser/foursquare-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sesser/foursquare-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sesser/foursquare-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/sesser/foursquare-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sesser/foursquare-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/sesser/foursquare-api-client/languages","stargazers_url":"https://api.github.com/repos/sesser/foursquare-api-client/stargazers","contributors_url":"https://api.github.com/repos/sesser/foursquare-api-client/contributors","subscribers_url":"https://api.github.com/repos/sesser/foursquare-api-client/subscribers","subscription_url":"https://api.github.com/repos/sesser/foursquare-api-client/subscription","commits_url":"https://api.github.com/repos/sesser/foursquare-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/sesser/foursquare-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/sesser/foursquare-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/sesser/foursquare-api-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/sesser/foursquare-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/sesser/foursquare-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sesser/foursquare-api-client/merges","archive_url":"https://api.github.com/repos/sesser/foursquare-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sesser/foursquare-api-client/downloads","issues_url":"https://api.github.com/repos/sesser/foursquare-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/sesser/foursquare-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/sesser/foursquare-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/sesser/foursquare-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sesser/foursquare-api-client/labels{/name}","releases_url":"https://api.github.com/repos/sesser/foursquare-api-client/releases{/id}","created_at":"2014-07-29T21:08:49Z","updated_at":"2014-08-02T19:53:35Z","pushed_at":"2014-08-05T12:14:27Z","git_url":"git://github.com/sesser/foursquare-api-client.git","ssh_url":"git@github.com:sesser/foursquare-api-client.git","clone_url":"https://github.com/sesser/foursquare-api-client.git","svn_url":"https://github.com/sesser/foursquare-api-client","homepage":"","size":182,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jcroll:master","ref":"master","sha":"36f308bf538d5cf3e751a2f90c3a1a3078d1f7d9","user":{"login":"jcroll","id":1441013,"avatar_url":"https://avatars.githubusercontent.com/u/1441013?v=3","gravatar_id":"","url":"https://api.github.com/users/jcroll","html_url":"https://github.com/jcroll","followers_url":"https://api.github.com/users/jcroll/followers","following_url":"https://api.github.com/users/jcroll/following{/other_user}","gists_url":"https://api.github.com/users/jcroll/gists{/gist_id}","starred_url":"https://api.github.com/users/jcroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcroll/subscriptions","organizations_url":"https://api.github.com/users/jcroll/orgs","repos_url":"https://api.github.com/users/jcroll/repos","events_url":"https://api.github.com/users/jcroll/events{/privacy}","received_events_url":"https://api.github.com/users/jcroll/received_events","type":"User","site_admin":false},"repo":{"id":11486352,"name":"foursquare-api-client","full_name":"jcroll/foursquare-api-client","owner":{"login":"jcroll","id":1441013,"avatar_url":"https://avatars.githubusercontent.com/u/1441013?v=3","gravatar_id":"","url":"https://api.github.com/users/jcroll","html_url":"https://github.com/jcroll","followers_url":"https://api.github.com/users/jcroll/followers","following_url":"https://api.github.com/users/jcroll/following{/other_user}","gists_url":"https://api.github.com/users/jcroll/gists{/gist_id}","starred_url":"https://api.github.com/users/jcroll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcroll/subscriptions","organizations_url":"https://api.github.com/users/jcroll/orgs","repos_url":"https://api.github.com/users/jcroll/repos","events_url":"https://api.github.com/users/jcroll/events{/privacy}","received_events_url":"https://api.github.com/users/jcroll/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcroll/foursquare-api-client","description":"A PHP foursquare API HTTP client","fork":false,"url":"https://api.github.com/repos/jcroll/foursquare-api-client","forks_url":"https://api.github.com/repos/jcroll/foursquare-api-client/forks","keys_url":"https://api.github.com/repos/jcroll/foursquare-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcroll/foursquare-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcroll/foursquare-api-client/teams","hooks_url":"https://api.github.com/repos/jcroll/foursquare-api-client/hooks","issue_events_url":"https://api.github.com/repos/jcroll/foursquare-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/jcroll/foursquare-api-client/events","assignees_url":"https://api.github.com/repos/jcroll/foursquare-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/jcroll/foursquare-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/jcroll/foursquare-api-client/tags","blobs_url":"https://api.github.com/repos/jcroll/foursquare-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcroll/foursquare-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcroll/foursquare-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcroll/foursquare-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcroll/foursquare-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/jcroll/foursquare-api-client/languages","stargazers_url":"https://api.github.com/repos/jcroll/foursquare-api-client/stargazers","contributors_url":"https://api.github.com/repos/jcroll/foursquare-api-client/contributors","subscribers_url":"https://api.github.com/repos/jcroll/foursquare-api-client/subscribers","subscription_url":"https://api.github.com/repos/jcroll/foursquare-api-client/subscription","commits_url":"https://api.github.com/repos/jcroll/foursquare-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcroll/foursquare-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcroll/foursquare-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcroll/foursquare-api-client/issues/comments/{number}","contents_url":"https://api.github.com/repos/jcroll/foursquare-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/jcroll/foursquare-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcroll/foursquare-api-client/merges","archive_url":"https://api.github.com/repos/jcroll/foursquare-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcroll/foursquare-api-client/downloads","issues_url":"https://api.github.com/repos/jcroll/foursquare-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/jcroll/foursquare-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/jcroll/foursquare-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcroll/foursquare-api-client/labels{/name}","releases_url":"https://api.github.com/repos/jcroll/foursquare-api-client/releases{/id}","created_at":"2013-07-17T20:09:42Z","updated_at":"2014-11-10T20:05:34Z","pushed_at":"2014-07-30T18:05:45Z","git_url":"git://github.com/jcroll/foursquare-api-client.git","ssh_url":"git@github.com:jcroll/foursquare-api-client.git","clone_url":"https://github.com/jcroll/foursquare-api-client.git","svn_url":"https://github.com/jcroll/foursquare-api-client","homepage":"","size":351,"stargazers_count":20,"watchers_count":20,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":1,"forks":8,"open_issues":1,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5"},"html":{"href":"https://github.com/jcroll/foursquare-api-client/pull/5"},"issue":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/issues/5"},"comments":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/jcroll/foursquare-api-client/statuses/21e9b20909fd293476b8bf3359a690d2acda254b"}}}}