{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1084","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1084/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1084/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1084","id":166944388,"number":1084,"title":"Add sniff to disallow alternative PHP open tags.","user":{"login":"jrfnl","id":663378,"avatar_url":"https://avatars.githubusercontent.com/u/663378?v=3","gravatar_id":"","url":"https://api.github.com/users/jrfnl","html_url":"https://github.com/jrfnl","followers_url":"https://api.github.com/users/jrfnl/followers","following_url":"https://api.github.com/users/jrfnl/following{/other_user}","gists_url":"https://api.github.com/users/jrfnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jrfnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrfnl/subscriptions","organizations_url":"https://api.github.com/users/jrfnl/orgs","repos_url":"https://api.github.com/users/jrfnl/repos","events_url":"https://api.github.com/users/jrfnl/events{/privacy}","received_events_url":"https://api.github.com/users/jrfnl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/labels/Enhancement","name":"Enhancement","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-22T00:03:12Z","updated_at":"2016-08-02T09:44:20Z","closed_at":"2016-08-02T03:56:50Z","pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1084","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1084","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1084.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1084.patch"},"body":"This sniff checks  for the alternative PHP syntaxes - ASP tags and script tags - which have been removed in PHP7:\r\n```php\r\n<% echo 'content'; %>\r\n<%= 'content'; %>\r\n<script language=\"php\">\r\necho 'content';\r\n</script>\r\n```\r\nRef: http://php.net/manual/en/language.basic-syntax.phptags.php\r\n\r\nIf PHPCS is run on PHP < 7, the `script` tags will be fixable.\r\nIf PHPCS is run on PHP < 7 + `asp_tags` is on, the ASP tags will be fixable.\r\n\r\nFixes #1063\r\n\r\nSimilar to #1069, the `myconfig.ini` file and the adjustment to the `travis` script are needed for the fixer unit tests to pass as when `asp_tags` is set to off, the fixer won't fix it correctly and the tests will fail ;-)\r\n\r\nThe `travis` and `myconfig.ini` changes will conflict with #1069, but depending on whichever PR will get merged first - if any get merged at all -, I will adjust the other one to remove the conflict."},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/236855961","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1084#issuecomment-236855961","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1084","id":236855961,"user":{"login":"jrfnl","id":663378,"avatar_url":"https://avatars.githubusercontent.com/u/663378?v=3","gravatar_id":"","url":"https://api.github.com/users/jrfnl","html_url":"https://github.com/jrfnl","followers_url":"https://api.github.com/users/jrfnl/followers","following_url":"https://api.github.com/users/jrfnl/following{/other_user}","gists_url":"https://api.github.com/users/jrfnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jrfnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrfnl/subscriptions","organizations_url":"https://api.github.com/users/jrfnl/orgs","repos_url":"https://api.github.com/users/jrfnl/repos","events_url":"https://api.github.com/users/jrfnl/events{/privacy}","received_events_url":"https://api.github.com/users/jrfnl/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T09:44:20Z","updated_at":"2016-08-02T09:44:20Z","body":"You're welcome & thanks for merging this. Hope others will find this useful too."}}
{"actor":{"display_login":"jrfnl"}}