{"action":"created","issue":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1431","repository_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer","labels_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1431/labels{/name}","comments_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1431/comments","events_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1431/events","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1431","id":223985455,"number":1431,"title":"Avoid creating invalid open tags when replacing short open tags","user":{"login":"ghunti","id":392038,"avatar_url":"https://avatars2.githubusercontent.com/u/392038?v=3","gravatar_id":"","url":"https://api.github.com/users/ghunti","html_url":"https://github.com/ghunti","followers_url":"https://api.github.com/users/ghunti/followers","following_url":"https://api.github.com/users/ghunti/following{/other_user}","gists_url":"https://api.github.com/users/ghunti/gists{/gist_id}","starred_url":"https://api.github.com/users/ghunti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghunti/subscriptions","organizations_url":"https://api.github.com/users/ghunti/orgs","repos_url":"https://api.github.com/users/ghunti/repos","events_url":"https://api.github.com/users/ghunti/events{/privacy}","received_events_url":"https://api.github.com/users/ghunti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-25T00:16:30Z","updated_at":"2017-04-25T07:32:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/pulls/1431","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1431","diff_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1431.diff","patch_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1431.patch"},"body":"I was using `phpcbf` to fix some legacy files that contained short opening tags without an empty space between them and the content: `<?echo` (this is valid to the PHP engine)\r\nThe problem is that `phpcbf` was replacing the short opening tag with a huge string like `<?phpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpphpecho`\r\n\r\nI've added a test that shows the failure + the fix that I found for the problem.\r\nKeep up the good work.\r\nCheers"},"comment":{"url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/comments/296941662","html_url":"https://github.com/squizlabs/PHP_CodeSniffer/pull/1431#issuecomment-296941662","issue_url":"https://api.github.com/repos/squizlabs/PHP_CodeSniffer/issues/1431","id":296941662,"user":{"login":"jrfnl","id":663378,"avatar_url":"https://avatars2.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":"2017-04-25T07:32:39Z","updated_at":"2017-04-25T07:32:39Z","body":"> Travis is failing with my commit, was it caused by some problem in my code?\r\n\r\n@ghunti Still a few more small code style issues to fix, nothing major - see the [travis build details](https://travis-ci.org/squizlabs/PHP_CodeSniffer/jobs/225501180#L219) for pointers."}}
{"actor":{"display_login":"jrfnl"}}