{"action":"closed","number":1104,"pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1104","id":80297524,"html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1104","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1104.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1104.patch","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1104","number":1104,"state":"closed","locked":false,"title":"add --platform and <platform> to override PHP_VERSION_ID","user":{"login":"ofbeaton","id":1781089,"avatar_url":"https://avatars.githubusercontent.com/u/1781089?v=3","gravatar_id":"","url":"https://api.github.com/users/ofbeaton","html_url":"https://github.com/ofbeaton","followers_url":"https://api.github.com/users/ofbeaton/followers","following_url":"https://api.github.com/users/ofbeaton/following{/other_user}","gists_url":"https://api.github.com/users/ofbeaton/gists{/gist_id}","starred_url":"https://api.github.com/users/ofbeaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofbeaton/subscriptions","organizations_url":"https://api.github.com/users/ofbeaton/orgs","repos_url":"https://api.github.com/users/ofbeaton/repos","events_url":"https://api.github.com/users/ofbeaton/events{/privacy}","received_events_url":"https://api.github.com/users/ofbeaton/received_events","type":"User","site_admin":false},"body":"Provides enhancement requested in #1103, allows your phpcs to target a specific php version since some sniffs (three currently) provide different checks based on php version.\r\n\r\nAllows user to specify `--platform=PHP_VERSION_ID` on command line, or `<platform>` in `phpcs.xml`. Can be used for both phpcs and phpcbf. Modified the Squiz Function Comment to use it if present.\r\n\r\nDefaults to current PHP_VERSION_ID.\r\n\r\nDocumentation updates cannot be made in a PR.\r\n\r\nThis is similar to the composer config setting `platform` https://getcomposer.org/doc/06-config.md#platform but for phpcs.\r\n\r\nI almost exclusively live on an intranet with SVN, so this is my first PR, sorry if I did anything wrong.\r\n\r\nRan codestyle and phpunit before submitting. Not sure if I need to also provide a test.","created_at":"2016-08-05T19:50:08Z","updated_at":"2016-08-08T15:29:10Z","closed_at":"2016-08-08T15:29:10Z","merged_at":null,"merge_commit_sha":"764d4e97fb3811a2dca03c05de97e89d391d5d3f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1104/commits","review_comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1104/comments","review_comment_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1104/comments","statuses_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/ac47d2536975484abe3dff630e4b965702d5102d","head":{"label":"ofbeaton:master","ref":"master","sha":"ac47d2536975484abe3dff630e4b965702d5102d","user":{"login":"ofbeaton","id":1781089,"avatar_url":"https://avatars.githubusercontent.com/u/1781089?v=3","gravatar_id":"","url":"https://api.github.com/users/ofbeaton","html_url":"https://github.com/ofbeaton","followers_url":"https://api.github.com/users/ofbeaton/followers","following_url":"https://api.github.com/users/ofbeaton/following{/other_user}","gists_url":"https://api.github.com/users/ofbeaton/gists{/gist_id}","starred_url":"https://api.github.com/users/ofbeaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofbeaton/subscriptions","organizations_url":"https://api.github.com/users/ofbeaton/orgs","repos_url":"https://api.github.com/users/ofbeaton/repos","events_url":"https://api.github.com/users/ofbeaton/events{/privacy}","received_events_url":"https://api.github.com/users/ofbeaton/received_events","type":"User","site_admin":false},"repo":{"id":65044642,"name":"PHP_CodeSniffer","full_name":"ofbeaton/PHP_CodeSniffer","owner":{"login":"ofbeaton","id":1781089,"avatar_url":"https://avatars.githubusercontent.com/u/1781089?v=3","gravatar_id":"","url":"https://api.github.com/users/ofbeaton","html_url":"https://github.com/ofbeaton","followers_url":"https://api.github.com/users/ofbeaton/followers","following_url":"https://api.github.com/users/ofbeaton/following{/other_user}","gists_url":"https://api.github.com/users/ofbeaton/gists{/gist_id}","starred_url":"https://api.github.com/users/ofbeaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofbeaton/subscriptions","organizations_url":"https://api.github.com/users/ofbeaton/orgs","repos_url":"https://api.github.com/users/ofbeaton/repos","events_url":"https://api.github.com/users/ofbeaton/events{/privacy}","received_events_url":"https://api.github.com/users/ofbeaton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ofbeaton/PHP_CodeSniffer","description":"PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.","fork":true,"url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer","forks_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/forks","keys_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/teams","hooks_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/hooks","issue_events_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/issues/events{/number}","events_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/events","assignees_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/assignees{/user}","branches_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/branches{/branch}","tags_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/tags","blobs_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/statuses/{sha}","languages_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/languages","stargazers_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/stargazers","contributors_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/contributors","subscribers_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/subscribers","subscription_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/subscription","commits_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/contents/{+path}","compare_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/merges","archive_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/downloads","issues_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/issues{/number}","pulls_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/pulls{/number}","milestones_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/milestones{/number}","notifications_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/labels{/name}","releases_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/releases{/id}","deployments_url":"https://api.github.com/repos/ofbeaton/PHP_CodeSniffer/deployments","created_at":"2016-08-05T19:43:06Z","updated_at":"2016-08-05T19:43:10Z","pushed_at":"2016-08-08T15:29:09Z","git_url":"git://github.com/ofbeaton/PHP_CodeSniffer.git","ssh_url":"git@github.com:ofbeaton/PHP_CodeSniffer.git","clone_url":"https://github.com/ofbeaton/PHP_CodeSniffer.git","svn_url":"https://github.com/ofbeaton/PHP_CodeSniffer","homepage":"http://pear.php.net/package/PHP_CodeSniffer","size":126129,"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":"squizlabs:master","ref":"master","sha":"ac47d2536975484abe3dff630e4b965702d5102d","user":{"login":"squizlabs","id":997547,"avatar_url":"https://avatars.githubusercontent.com/u/997547?v=3","gravatar_id":"","url":"https://api.github.com/users/squizlabs","html_url":"https://github.com/squizlabs","followers_url":"https://api.github.com/users/squizlabs/followers","following_url":"https://api.github.com/users/squizlabs/following{/other_user}","gists_url":"https://api.github.com/users/squizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/squizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squizlabs/subscriptions","organizations_url":"https://api.github.com/users/squizlabs/orgs","repos_url":"https://api.github.com/users/squizlabs/repos","events_url":"https://api.github.com/users/squizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/squizlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":2699935,"name":"PHP_CodeSniffer","full_name":"squizlabs/PHP_CodeSniffer","owner":{"login":"squizlabs","id":997547,"avatar_url":"https://avatars.githubusercontent.com/u/997547?v=3","gravatar_id":"","url":"https://api.github.com/users/squizlabs","html_url":"https://github.com/squizlabs","followers_url":"https://api.github.com/users/squizlabs/followers","following_url":"https://api.github.com/users/squizlabs/following{/other_user}","gists_url":"https://api.github.com/users/squizlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/squizlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squizlabs/subscriptions","organizations_url":"https://api.github.com/users/squizlabs/orgs","repos_url":"https://api.github.com/users/squizlabs/repos","events_url":"https://api.github.com/users/squizlabs/events{/privacy}","received_events_url":"https://api.github.com/users/squizlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/squizlabs/PHP_CodeSniffer","description":"PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.","fork":false,"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","forks_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/forks","keys_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/teams","hooks_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/hooks","issue_events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/events{/number}","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/events","assignees_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/assignees{/user}","branches_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/branches{/branch}","tags_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/tags","blobs_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/refs{/sha}","trees_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/{sha}","languages_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/languages","stargazers_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/stargazers","contributors_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/contributors","subscribers_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/subscribers","subscription_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/subscription","commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/commits{/sha}","git_commits_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/git/commits{/sha}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/comments{/number}","issue_comment_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments{/number}","contents_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/contents/{+path}","compare_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/merges","archive_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/downloads","issues_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues{/number}","pulls_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls{/number}","milestones_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/milestones{/number}","notifications_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels{/name}","releases_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/releases{/id}","deployments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/deployments","created_at":"2011-11-03T04:06:24Z","updated_at":"2016-08-08T13:24:17Z","pushed_at":"2016-08-08T15:02:10Z","git_url":"git://github.com/squizlabs/PHP_CodeSniffer.git","ssh_url":"git@github.com:squizlabs/PHP_CodeSniffer.git","clone_url":"https://github.com/squizlabs/PHP_CodeSniffer.git","svn_url":"https://github.com/squizlabs/PHP_CodeSniffer","homepage":"http://pear.php.net/package/PHP_CodeSniffer","size":129804,"stargazers_count":2591,"watchers_count":2591,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":613,"mirror_url":null,"open_issues_count":65,"forks":613,"open_issues":65,"watchers":2591,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1104"},"html":{"href":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1104"},"issue":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1104"},"comments":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1104/comments"},"review_comments":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1104/comments"},"review_comment":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1104/commits"},"statuses":{"href":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/statuses/ac47d2536975484abe3dff630e4b965702d5102d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":6,"commits":0,"additions":0,"deletions":0,"changed_files":0}}
{"actor":{"display_login":"ofbeaton"}}