{"action":"created","comment":{"url":"https://api.github.com/repos/digitaledgeit/php-console/pulls/comments/39569323","id":39569323,"diff_hunk":"@@ -163,21 +163,27 @@ public function removeOption($option) {\n \t */\n \tpublic function validate(Event $event) {\n \n-\t\tforeach ($this->getOptions() as $option) {\n+\t    $event_options = $event->getOptions();\n \n+\t\tforeach ($this->getOptions() as $option) {\n \t\t\tif ($event->hasOption($option->getNames())) {\n-\n+\t            if (array_key_exists($option->getShortName(), $event_options)) {","path":"src/deit/console/definition/Definition.php","position":10,"original_position":10,"commit_id":"d857fabddce1a9d95d9a2707033688927a8b2775","original_commit_id":"d857fabddce1a9d95d9a2707033688927a8b2775","user":{"login":"jameslnewell","id":2237996,"avatar_url":"https://avatars.githubusercontent.com/u/2237996?v=3","gravatar_id":"","url":"https://api.github.com/users/jameslnewell","html_url":"https://github.com/jameslnewell","followers_url":"https://api.github.com/users/jameslnewell/followers","following_url":"https://api.github.com/users/jameslnewell/following{/other_user}","gists_url":"https://api.github.com/users/jameslnewell/gists{/gist_id}","starred_url":"https://api.github.com/users/jameslnewell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameslnewell/subscriptions","organizations_url":"https://api.github.com/users/jameslnewell/orgs","repos_url":"https://api.github.com/users/jameslnewell/repos","events_url":"https://api.github.com/users/jameslnewell/events{/privacy}","received_events_url":"https://api.github.com/users/jameslnewell/received_events","type":"User","site_admin":false},"body":"Github shows this block is using spaces not tabs","created_at":"2015-09-15T21:41:27Z","updated_at":"2015-09-15T21:41:27Z","html_url":"https://github.com/digitaledgeit/php-console/pull/1#discussion_r39569323","pull_request_url":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/digitaledgeit/php-console/pulls/comments/39569323"},"html":{"href":"https://github.com/digitaledgeit/php-console/pull/1#discussion_r39569323"},"pull_request":{"href":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1","id":42418859,"html_url":"https://github.com/digitaledgeit/php-console/pull/1","diff_url":"https://github.com/digitaledgeit/php-console/pull/1.diff","patch_url":"https://github.com/digitaledgeit/php-console/pull/1.patch","issue_url":"https://api.github.com/repos/digitaledgeit/php-console/issues/1","number":1,"state":"open","locked":false,"title":"Fixup tests, add ability to catch unexpected arguments.","user":{"login":"gbell12","id":3937658,"avatar_url":"https://avatars.githubusercontent.com/u/3937658?v=3","gravatar_id":"","url":"https://api.github.com/users/gbell12","html_url":"https://github.com/gbell12","followers_url":"https://api.github.com/users/gbell12/followers","following_url":"https://api.github.com/users/gbell12/following{/other_user}","gists_url":"https://api.github.com/users/gbell12/gists{/gist_id}","starred_url":"https://api.github.com/users/gbell12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbell12/subscriptions","organizations_url":"https://api.github.com/users/gbell12/orgs","repos_url":"https://api.github.com/users/gbell12/repos","events_url":"https://api.github.com/users/gbell12/events{/privacy}","received_events_url":"https://api.github.com/users/gbell12/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-14T02:20:24Z","updated_at":"2015-09-15T21:41:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eba9f263161c38ec3cd5a63d18786eeebc8d406c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1/commits","review_comments_url":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1/comments","review_comment_url":"https://api.github.com/repos/digitaledgeit/php-console/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitaledgeit/php-console/issues/1/comments","statuses_url":"https://api.github.com/repos/digitaledgeit/php-console/statuses/d857fabddce1a9d95d9a2707033688927a8b2775","head":{"label":"gbell12:fixup_tests","ref":"fixup_tests","sha":"d857fabddce1a9d95d9a2707033688927a8b2775","user":{"login":"gbell12","id":3937658,"avatar_url":"https://avatars.githubusercontent.com/u/3937658?v=3","gravatar_id":"","url":"https://api.github.com/users/gbell12","html_url":"https://github.com/gbell12","followers_url":"https://api.github.com/users/gbell12/followers","following_url":"https://api.github.com/users/gbell12/following{/other_user}","gists_url":"https://api.github.com/users/gbell12/gists{/gist_id}","starred_url":"https://api.github.com/users/gbell12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbell12/subscriptions","organizations_url":"https://api.github.com/users/gbell12/orgs","repos_url":"https://api.github.com/users/gbell12/repos","events_url":"https://api.github.com/users/gbell12/events{/privacy}","received_events_url":"https://api.github.com/users/gbell12/received_events","type":"User","site_admin":false},"repo":{"id":40653982,"name":"php-console","full_name":"gbell12/php-console","owner":{"login":"gbell12","id":3937658,"avatar_url":"https://avatars.githubusercontent.com/u/3937658?v=3","gravatar_id":"","url":"https://api.github.com/users/gbell12","html_url":"https://github.com/gbell12","followers_url":"https://api.github.com/users/gbell12/followers","following_url":"https://api.github.com/users/gbell12/following{/other_user}","gists_url":"https://api.github.com/users/gbell12/gists{/gist_id}","starred_url":"https://api.github.com/users/gbell12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbell12/subscriptions","organizations_url":"https://api.github.com/users/gbell12/orgs","repos_url":"https://api.github.com/users/gbell12/repos","events_url":"https://api.github.com/users/gbell12/events{/privacy}","received_events_url":"https://api.github.com/users/gbell12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gbell12/php-console","description":"Library for the console","fork":true,"url":"https://api.github.com/repos/gbell12/php-console","forks_url":"https://api.github.com/repos/gbell12/php-console/forks","keys_url":"https://api.github.com/repos/gbell12/php-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gbell12/php-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gbell12/php-console/teams","hooks_url":"https://api.github.com/repos/gbell12/php-console/hooks","issue_events_url":"https://api.github.com/repos/gbell12/php-console/issues/events{/number}","events_url":"https://api.github.com/repos/gbell12/php-console/events","assignees_url":"https://api.github.com/repos/gbell12/php-console/assignees{/user}","branches_url":"https://api.github.com/repos/gbell12/php-console/branches{/branch}","tags_url":"https://api.github.com/repos/gbell12/php-console/tags","blobs_url":"https://api.github.com/repos/gbell12/php-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gbell12/php-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gbell12/php-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/gbell12/php-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gbell12/php-console/statuses/{sha}","languages_url":"https://api.github.com/repos/gbell12/php-console/languages","stargazers_url":"https://api.github.com/repos/gbell12/php-console/stargazers","contributors_url":"https://api.github.com/repos/gbell12/php-console/contributors","subscribers_url":"https://api.github.com/repos/gbell12/php-console/subscribers","subscription_url":"https://api.github.com/repos/gbell12/php-console/subscription","commits_url":"https://api.github.com/repos/gbell12/php-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/gbell12/php-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/gbell12/php-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/gbell12/php-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/gbell12/php-console/contents/{+path}","compare_url":"https://api.github.com/repos/gbell12/php-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gbell12/php-console/merges","archive_url":"https://api.github.com/repos/gbell12/php-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gbell12/php-console/downloads","issues_url":"https://api.github.com/repos/gbell12/php-console/issues{/number}","pulls_url":"https://api.github.com/repos/gbell12/php-console/pulls{/number}","milestones_url":"https://api.github.com/repos/gbell12/php-console/milestones{/number}","notifications_url":"https://api.github.com/repos/gbell12/php-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gbell12/php-console/labels{/name}","releases_url":"https://api.github.com/repos/gbell12/php-console/releases{/id}","created_at":"2015-08-13T10:57:12Z","updated_at":"2015-08-13T10:57:13Z","pushed_at":"2015-08-16T02:47:27Z","git_url":"git://github.com/gbell12/php-console.git","ssh_url":"git@github.com:gbell12/php-console.git","clone_url":"https://github.com/gbell12/php-console.git","svn_url":"https://github.com/gbell12/php-console","homepage":null,"size":116,"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":"digitaledgeit:master","ref":"master","sha":"c00dcd285e4e0148abc49001c4cc44dc3ff18f78","user":{"login":"digitaledgeit","id":2238064,"avatar_url":"https://avatars.githubusercontent.com/u/2238064?v=3","gravatar_id":"","url":"https://api.github.com/users/digitaledgeit","html_url":"https://github.com/digitaledgeit","followers_url":"https://api.github.com/users/digitaledgeit/followers","following_url":"https://api.github.com/users/digitaledgeit/following{/other_user}","gists_url":"https://api.github.com/users/digitaledgeit/gists{/gist_id}","starred_url":"https://api.github.com/users/digitaledgeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitaledgeit/subscriptions","organizations_url":"https://api.github.com/users/digitaledgeit/orgs","repos_url":"https://api.github.com/users/digitaledgeit/repos","events_url":"https://api.github.com/users/digitaledgeit/events{/privacy}","received_events_url":"https://api.github.com/users/digitaledgeit/received_events","type":"Organization","site_admin":false},"repo":{"id":14768017,"name":"php-console","full_name":"digitaledgeit/php-console","owner":{"login":"digitaledgeit","id":2238064,"avatar_url":"https://avatars.githubusercontent.com/u/2238064?v=3","gravatar_id":"","url":"https://api.github.com/users/digitaledgeit","html_url":"https://github.com/digitaledgeit","followers_url":"https://api.github.com/users/digitaledgeit/followers","following_url":"https://api.github.com/users/digitaledgeit/following{/other_user}","gists_url":"https://api.github.com/users/digitaledgeit/gists{/gist_id}","starred_url":"https://api.github.com/users/digitaledgeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitaledgeit/subscriptions","organizations_url":"https://api.github.com/users/digitaledgeit/orgs","repos_url":"https://api.github.com/users/digitaledgeit/repos","events_url":"https://api.github.com/users/digitaledgeit/events{/privacy}","received_events_url":"https://api.github.com/users/digitaledgeit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitaledgeit/php-console","description":"Library for the console","fork":false,"url":"https://api.github.com/repos/digitaledgeit/php-console","forks_url":"https://api.github.com/repos/digitaledgeit/php-console/forks","keys_url":"https://api.github.com/repos/digitaledgeit/php-console/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitaledgeit/php-console/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitaledgeit/php-console/teams","hooks_url":"https://api.github.com/repos/digitaledgeit/php-console/hooks","issue_events_url":"https://api.github.com/repos/digitaledgeit/php-console/issues/events{/number}","events_url":"https://api.github.com/repos/digitaledgeit/php-console/events","assignees_url":"https://api.github.com/repos/digitaledgeit/php-console/assignees{/user}","branches_url":"https://api.github.com/repos/digitaledgeit/php-console/branches{/branch}","tags_url":"https://api.github.com/repos/digitaledgeit/php-console/tags","blobs_url":"https://api.github.com/repos/digitaledgeit/php-console/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitaledgeit/php-console/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitaledgeit/php-console/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitaledgeit/php-console/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitaledgeit/php-console/statuses/{sha}","languages_url":"https://api.github.com/repos/digitaledgeit/php-console/languages","stargazers_url":"https://api.github.com/repos/digitaledgeit/php-console/stargazers","contributors_url":"https://api.github.com/repos/digitaledgeit/php-console/contributors","subscribers_url":"https://api.github.com/repos/digitaledgeit/php-console/subscribers","subscription_url":"https://api.github.com/repos/digitaledgeit/php-console/subscription","commits_url":"https://api.github.com/repos/digitaledgeit/php-console/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitaledgeit/php-console/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitaledgeit/php-console/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitaledgeit/php-console/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitaledgeit/php-console/contents/{+path}","compare_url":"https://api.github.com/repos/digitaledgeit/php-console/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitaledgeit/php-console/merges","archive_url":"https://api.github.com/repos/digitaledgeit/php-console/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitaledgeit/php-console/downloads","issues_url":"https://api.github.com/repos/digitaledgeit/php-console/issues{/number}","pulls_url":"https://api.github.com/repos/digitaledgeit/php-console/pulls{/number}","milestones_url":"https://api.github.com/repos/digitaledgeit/php-console/milestones{/number}","notifications_url":"https://api.github.com/repos/digitaledgeit/php-console/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitaledgeit/php-console/labels{/name}","releases_url":"https://api.github.com/repos/digitaledgeit/php-console/releases{/id}","created_at":"2013-11-28T04:47:46Z","updated_at":"2014-10-30T15:16:04Z","pushed_at":"2015-08-16T02:47:27Z","git_url":"git://github.com/digitaledgeit/php-console.git","ssh_url":"git@github.com:digitaledgeit/php-console.git","clone_url":"https://github.com/digitaledgeit/php-console.git","svn_url":"https://github.com/digitaledgeit/php-console","homepage":null,"size":275,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1"},"html":{"href":"https://github.com/digitaledgeit/php-console/pull/1"},"issue":{"href":"https://api.github.com/repos/digitaledgeit/php-console/issues/1"},"comments":{"href":"https://api.github.com/repos/digitaledgeit/php-console/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/digitaledgeit/php-console/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitaledgeit/php-console/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/digitaledgeit/php-console/statuses/d857fabddce1a9d95d9a2707033688927a8b2775"}}}}