{"action":"created","comment":{"url":"https://api.github.com/repos/igorw/yolo/pulls/comments/25127693","id":25127693,"diff_hunk":"@@ -9,21 +9,22 @@ class YoloException extends \\RuntimeException {}\n \n function yolo(...$args) {\n     static $lo = false;\n-    \n-    if ($lo) {\n-        throw new YoloException(\"YOLO\");\n-    } else {\n-        $lo = true;\n+\n+    if (!$lo) {\n+        goto YOLO;","path":"src/yolo.php","position":11,"original_position":11,"commit_id":"7c5483a516d06c4729502cab45c21f01a968f063","original_commit_id":"7c5483a516d06c4729502cab45c21f01a968f063","user":{"login":"TazeTSchnitzel","id":579774,"avatar_url":"https://avatars.githubusercontent.com/u/579774?v=3","gravatar_id":"","url":"https://api.github.com/users/TazeTSchnitzel","html_url":"https://github.com/TazeTSchnitzel","followers_url":"https://api.github.com/users/TazeTSchnitzel/followers","following_url":"https://api.github.com/users/TazeTSchnitzel/following{/other_user}","gists_url":"https://api.github.com/users/TazeTSchnitzel/gists{/gist_id}","starred_url":"https://api.github.com/users/TazeTSchnitzel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TazeTSchnitzel/subscriptions","organizations_url":"https://api.github.com/users/TazeTSchnitzel/orgs","repos_url":"https://api.github.com/users/TazeTSchnitzel/repos","events_url":"https://api.github.com/users/TazeTSchnitzel/events{/privacy}","received_events_url":"https://api.github.com/users/TazeTSchnitzel/received_events","type":"User","site_admin":false},"body":"as cool as `goto` is it makes the control flow of this function really ugly","created_at":"2015-02-22T00:59:47Z","updated_at":"2015-02-22T00:59:47Z","html_url":"https://github.com/igorw/yolo/pull/37#discussion_r25127693","pull_request_url":"https://api.github.com/repos/igorw/yolo/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/igorw/yolo/pulls/comments/25127693"},"html":{"href":"https://github.com/igorw/yolo/pull/37#discussion_r25127693"},"pull_request":{"href":"https://api.github.com/repos/igorw/yolo/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/igorw/yolo/pulls/37","id":29763267,"html_url":"https://github.com/igorw/yolo/pull/37","diff_url":"https://github.com/igorw/yolo/pull/37.diff","patch_url":"https://github.com/igorw/yolo/pull/37.patch","issue_url":"https://api.github.com/repos/igorw/yolo/issues/37","number":37,"state":"open","locked":false,"title":"more swag","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"body":"![](http://i.giphy.com/wbANIdDaDtpgQ.gif)","created_at":"2015-02-22T00:47:04Z","updated_at":"2015-02-22T00:59:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5dbebea74c76e883d479c3982c8665d246ec4f1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/igorw/yolo/pulls/37/commits","review_comments_url":"https://api.github.com/repos/igorw/yolo/pulls/37/comments","review_comment_url":"https://api.github.com/repos/igorw/yolo/pulls/comments/{number}","comments_url":"https://api.github.com/repos/igorw/yolo/issues/37/comments","statuses_url":"https://api.github.com/repos/igorw/yolo/statuses/7c5483a516d06c4729502cab45c21f01a968f063","head":{"label":"gharlan:more-swag","ref":"more-swag","sha":"7c5483a516d06c4729502cab45c21f01a968f063","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"repo":{"id":31147076,"name":"yolo","full_name":"gharlan/yolo","owner":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gharlan/yolo","description":"The microframework with swag.","fork":true,"url":"https://api.github.com/repos/gharlan/yolo","forks_url":"https://api.github.com/repos/gharlan/yolo/forks","keys_url":"https://api.github.com/repos/gharlan/yolo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gharlan/yolo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gharlan/yolo/teams","hooks_url":"https://api.github.com/repos/gharlan/yolo/hooks","issue_events_url":"https://api.github.com/repos/gharlan/yolo/issues/events{/number}","events_url":"https://api.github.com/repos/gharlan/yolo/events","assignees_url":"https://api.github.com/repos/gharlan/yolo/assignees{/user}","branches_url":"https://api.github.com/repos/gharlan/yolo/branches{/branch}","tags_url":"https://api.github.com/repos/gharlan/yolo/tags","blobs_url":"https://api.github.com/repos/gharlan/yolo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gharlan/yolo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gharlan/yolo/git/refs{/sha}","trees_url":"https://api.github.com/repos/gharlan/yolo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gharlan/yolo/statuses/{sha}","languages_url":"https://api.github.com/repos/gharlan/yolo/languages","stargazers_url":"https://api.github.com/repos/gharlan/yolo/stargazers","contributors_url":"https://api.github.com/repos/gharlan/yolo/contributors","subscribers_url":"https://api.github.com/repos/gharlan/yolo/subscribers","subscription_url":"https://api.github.com/repos/gharlan/yolo/subscription","commits_url":"https://api.github.com/repos/gharlan/yolo/commits{/sha}","git_commits_url":"https://api.github.com/repos/gharlan/yolo/git/commits{/sha}","comments_url":"https://api.github.com/repos/gharlan/yolo/comments{/number}","issue_comment_url":"https://api.github.com/repos/gharlan/yolo/issues/comments{/number}","contents_url":"https://api.github.com/repos/gharlan/yolo/contents/{+path}","compare_url":"https://api.github.com/repos/gharlan/yolo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gharlan/yolo/merges","archive_url":"https://api.github.com/repos/gharlan/yolo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gharlan/yolo/downloads","issues_url":"https://api.github.com/repos/gharlan/yolo/issues{/number}","pulls_url":"https://api.github.com/repos/gharlan/yolo/pulls{/number}","milestones_url":"https://api.github.com/repos/gharlan/yolo/milestones{/number}","notifications_url":"https://api.github.com/repos/gharlan/yolo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gharlan/yolo/labels{/name}","releases_url":"https://api.github.com/repos/gharlan/yolo/releases{/id}","created_at":"2015-02-22T00:34:47Z","updated_at":"2015-02-22T00:34:48Z","pushed_at":"2015-02-22T00:44:09Z","git_url":"git://github.com/gharlan/yolo.git","ssh_url":"git@github.com:gharlan/yolo.git","clone_url":"https://github.com/gharlan/yolo.git","svn_url":"https://github.com/gharlan/yolo","homepage":"yolophp.computer","size":240,"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":"igorw:master","ref":"master","sha":"08bd5f903185b3e741fc06195fa2134d968f7dce","user":{"login":"igorw","id":88061,"avatar_url":"https://avatars.githubusercontent.com/u/88061?v=3","gravatar_id":"","url":"https://api.github.com/users/igorw","html_url":"https://github.com/igorw","followers_url":"https://api.github.com/users/igorw/followers","following_url":"https://api.github.com/users/igorw/following{/other_user}","gists_url":"https://api.github.com/users/igorw/gists{/gist_id}","starred_url":"https://api.github.com/users/igorw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorw/subscriptions","organizations_url":"https://api.github.com/users/igorw/orgs","repos_url":"https://api.github.com/users/igorw/repos","events_url":"https://api.github.com/users/igorw/events{/privacy}","received_events_url":"https://api.github.com/users/igorw/received_events","type":"User","site_admin":false},"repo":{"id":5688270,"name":"yolo","full_name":"igorw/yolo","owner":{"login":"igorw","id":88061,"avatar_url":"https://avatars.githubusercontent.com/u/88061?v=3","gravatar_id":"","url":"https://api.github.com/users/igorw","html_url":"https://github.com/igorw","followers_url":"https://api.github.com/users/igorw/followers","following_url":"https://api.github.com/users/igorw/following{/other_user}","gists_url":"https://api.github.com/users/igorw/gists{/gist_id}","starred_url":"https://api.github.com/users/igorw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorw/subscriptions","organizations_url":"https://api.github.com/users/igorw/orgs","repos_url":"https://api.github.com/users/igorw/repos","events_url":"https://api.github.com/users/igorw/events{/privacy}","received_events_url":"https://api.github.com/users/igorw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/igorw/yolo","description":"The microframework with swag.","fork":false,"url":"https://api.github.com/repos/igorw/yolo","forks_url":"https://api.github.com/repos/igorw/yolo/forks","keys_url":"https://api.github.com/repos/igorw/yolo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/igorw/yolo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/igorw/yolo/teams","hooks_url":"https://api.github.com/repos/igorw/yolo/hooks","issue_events_url":"https://api.github.com/repos/igorw/yolo/issues/events{/number}","events_url":"https://api.github.com/repos/igorw/yolo/events","assignees_url":"https://api.github.com/repos/igorw/yolo/assignees{/user}","branches_url":"https://api.github.com/repos/igorw/yolo/branches{/branch}","tags_url":"https://api.github.com/repos/igorw/yolo/tags","blobs_url":"https://api.github.com/repos/igorw/yolo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/igorw/yolo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/igorw/yolo/git/refs{/sha}","trees_url":"https://api.github.com/repos/igorw/yolo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/igorw/yolo/statuses/{sha}","languages_url":"https://api.github.com/repos/igorw/yolo/languages","stargazers_url":"https://api.github.com/repos/igorw/yolo/stargazers","contributors_url":"https://api.github.com/repos/igorw/yolo/contributors","subscribers_url":"https://api.github.com/repos/igorw/yolo/subscribers","subscription_url":"https://api.github.com/repos/igorw/yolo/subscription","commits_url":"https://api.github.com/repos/igorw/yolo/commits{/sha}","git_commits_url":"https://api.github.com/repos/igorw/yolo/git/commits{/sha}","comments_url":"https://api.github.com/repos/igorw/yolo/comments{/number}","issue_comment_url":"https://api.github.com/repos/igorw/yolo/issues/comments{/number}","contents_url":"https://api.github.com/repos/igorw/yolo/contents/{+path}","compare_url":"https://api.github.com/repos/igorw/yolo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/igorw/yolo/merges","archive_url":"https://api.github.com/repos/igorw/yolo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/igorw/yolo/downloads","issues_url":"https://api.github.com/repos/igorw/yolo/issues{/number}","pulls_url":"https://api.github.com/repos/igorw/yolo/pulls{/number}","milestones_url":"https://api.github.com/repos/igorw/yolo/milestones{/number}","notifications_url":"https://api.github.com/repos/igorw/yolo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/igorw/yolo/labels{/name}","releases_url":"https://api.github.com/repos/igorw/yolo/releases{/id}","created_at":"2012-09-05T14:22:25Z","updated_at":"2015-02-21T09:43:07Z","pushed_at":"2015-01-10T16:45:53Z","git_url":"git://github.com/igorw/yolo.git","ssh_url":"git@github.com:igorw/yolo.git","clone_url":"https://github.com/igorw/yolo.git","svn_url":"https://github.com/igorw/yolo","homepage":"yolophp.computer","size":779,"stargazers_count":147,"watchers_count":147,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":6,"forks":27,"open_issues":6,"watchers":147,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/igorw/yolo/pulls/37"},"html":{"href":"https://github.com/igorw/yolo/pull/37"},"issue":{"href":"https://api.github.com/repos/igorw/yolo/issues/37"},"comments":{"href":"https://api.github.com/repos/igorw/yolo/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/igorw/yolo/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/igorw/yolo/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/igorw/yolo/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/igorw/yolo/statuses/7c5483a516d06c4729502cab45c21f01a968f063"}}}}