{"action":"created","comment":{"url":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/comments/42099538","id":42099538,"diff_hunk":"@@ -175,5 +190,72 @@ private static void appendChild(StringBuilder sb, @Nullable SyntaxToken prevToke\n   private static boolean isSpaceRequired(SyntaxToken prevToken, SyntaxToken token) {\n     return (token.line() > prevToken.line()) || (prevToken.column() + prevToken.text().length() < token.column());\n   }\n+  \n+  public static final  List<Kind> CONTAIN_STATEMENTS = ImmutableList.of(\n+    Kind.SCRIPT,\n+    Kind.BLOCK,\n+    Kind.CASE_CLAUSE,\n+    Kind.DEFAULT_CLAUSE,\n+    Kind.DECLARE_STATEMENT,\n+    Kind.IF_STATEMENT,\n+    Kind.ALTRENATIVE_IF_STATEMENT,","path":"php-checks/src/main/java/org/sonar/php/checks/utils/CheckUtils.java","position":44,"original_position":44,"commit_id":"7a53bf198e782fd28510cc09d0078bd555b82957","original_commit_id":"7a53bf198e782fd28510cc09d0078bd555b82957","user":{"login":"pynicolas","id":6371790,"avatar_url":"https://avatars.githubusercontent.com/u/6371790?v=3","gravatar_id":"","url":"https://api.github.com/users/pynicolas","html_url":"https://github.com/pynicolas","followers_url":"https://api.github.com/users/pynicolas/followers","following_url":"https://api.github.com/users/pynicolas/following{/other_user}","gists_url":"https://api.github.com/users/pynicolas/gists{/gist_id}","starred_url":"https://api.github.com/users/pynicolas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pynicolas/subscriptions","organizations_url":"https://api.github.com/users/pynicolas/orgs","repos_url":"https://api.github.com/users/pynicolas/repos","events_url":"https://api.github.com/users/pynicolas/events{/privacy}","received_events_url":"https://api.github.com/users/pynicolas/received_events","type":"User","site_admin":false},"body":"@vilchik-elena we have to fix that spelling mistake some day...","created_at":"2015-10-15T09:13:25Z","updated_at":"2015-10-15T09:13:25Z","html_url":"https://github.com/SonarCommunity/sonar-php/pull/49#discussion_r42099538","pull_request_url":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/comments/42099538"},"html":{"href":"https://github.com/SonarCommunity/sonar-php/pull/49#discussion_r42099538"},"pull_request":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49","id":47661056,"html_url":"https://github.com/SonarCommunity/sonar-php/pull/49","diff_url":"https://github.com/SonarCommunity/sonar-php/pull/49.diff","patch_url":"https://github.com/SonarCommunity/sonar-php/pull/49.patch","issue_url":"https://api.github.com/repos/SonarCommunity/sonar-php/issues/49","number":49,"state":"open","locked":false,"title":"SONARPHP-539 Migrate ImmediatelyReturnedVariableCheck","user":{"login":"vilchik-elena","id":10108186,"avatar_url":"https://avatars.githubusercontent.com/u/10108186?v=3","gravatar_id":"","url":"https://api.github.com/users/vilchik-elena","html_url":"https://github.com/vilchik-elena","followers_url":"https://api.github.com/users/vilchik-elena/followers","following_url":"https://api.github.com/users/vilchik-elena/following{/other_user}","gists_url":"https://api.github.com/users/vilchik-elena/gists{/gist_id}","starred_url":"https://api.github.com/users/vilchik-elena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilchik-elena/subscriptions","organizations_url":"https://api.github.com/users/vilchik-elena/orgs","repos_url":"https://api.github.com/users/vilchik-elena/repos","events_url":"https://api.github.com/users/vilchik-elena/events{/privacy}","received_events_url":"https://api.github.com/users/vilchik-elena/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-14T13:47:57Z","updated_at":"2015-10-15T09:13:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"585840b03ba512175d985622e2f6c22bdac5c2a2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49/commits","review_comments_url":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49/comments","review_comment_url":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SonarCommunity/sonar-php/issues/49/comments","statuses_url":"https://api.github.com/repos/SonarCommunity/sonar-php/statuses/7a53bf198e782fd28510cc09d0078bd555b82957","head":{"label":"vilchik-elena:SONARPHP-539","ref":"SONARPHP-539","sha":"7a53bf198e782fd28510cc09d0078bd555b82957","user":{"login":"vilchik-elena","id":10108186,"avatar_url":"https://avatars.githubusercontent.com/u/10108186?v=3","gravatar_id":"","url":"https://api.github.com/users/vilchik-elena","html_url":"https://github.com/vilchik-elena","followers_url":"https://api.github.com/users/vilchik-elena/followers","following_url":"https://api.github.com/users/vilchik-elena/following{/other_user}","gists_url":"https://api.github.com/users/vilchik-elena/gists{/gist_id}","starred_url":"https://api.github.com/users/vilchik-elena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilchik-elena/subscriptions","organizations_url":"https://api.github.com/users/vilchik-elena/orgs","repos_url":"https://api.github.com/users/vilchik-elena/repos","events_url":"https://api.github.com/users/vilchik-elena/events{/privacy}","received_events_url":"https://api.github.com/users/vilchik-elena/received_events","type":"User","site_admin":false},"repo":{"id":43553824,"name":"sonar-php","full_name":"vilchik-elena/sonar-php","owner":{"login":"vilchik-elena","id":10108186,"avatar_url":"https://avatars.githubusercontent.com/u/10108186?v=3","gravatar_id":"","url":"https://api.github.com/users/vilchik-elena","html_url":"https://github.com/vilchik-elena","followers_url":"https://api.github.com/users/vilchik-elena/followers","following_url":"https://api.github.com/users/vilchik-elena/following{/other_user}","gists_url":"https://api.github.com/users/vilchik-elena/gists{/gist_id}","starred_url":"https://api.github.com/users/vilchik-elena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilchik-elena/subscriptions","organizations_url":"https://api.github.com/users/vilchik-elena/orgs","repos_url":"https://api.github.com/users/vilchik-elena/repos","events_url":"https://api.github.com/users/vilchik-elena/events{/privacy}","received_events_url":"https://api.github.com/users/vilchik-elena/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vilchik-elena/sonar-php","description":"","fork":true,"url":"https://api.github.com/repos/vilchik-elena/sonar-php","forks_url":"https://api.github.com/repos/vilchik-elena/sonar-php/forks","keys_url":"https://api.github.com/repos/vilchik-elena/sonar-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vilchik-elena/sonar-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vilchik-elena/sonar-php/teams","hooks_url":"https://api.github.com/repos/vilchik-elena/sonar-php/hooks","issue_events_url":"https://api.github.com/repos/vilchik-elena/sonar-php/issues/events{/number}","events_url":"https://api.github.com/repos/vilchik-elena/sonar-php/events","assignees_url":"https://api.github.com/repos/vilchik-elena/sonar-php/assignees{/user}","branches_url":"https://api.github.com/repos/vilchik-elena/sonar-php/branches{/branch}","tags_url":"https://api.github.com/repos/vilchik-elena/sonar-php/tags","blobs_url":"https://api.github.com/repos/vilchik-elena/sonar-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vilchik-elena/sonar-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vilchik-elena/sonar-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/vilchik-elena/sonar-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vilchik-elena/sonar-php/statuses/{sha}","languages_url":"https://api.github.com/repos/vilchik-elena/sonar-php/languages","stargazers_url":"https://api.github.com/repos/vilchik-elena/sonar-php/stargazers","contributors_url":"https://api.github.com/repos/vilchik-elena/sonar-php/contributors","subscribers_url":"https://api.github.com/repos/vilchik-elena/sonar-php/subscribers","subscription_url":"https://api.github.com/repos/vilchik-elena/sonar-php/subscription","commits_url":"https://api.github.com/repos/vilchik-elena/sonar-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/vilchik-elena/sonar-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/vilchik-elena/sonar-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/vilchik-elena/sonar-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/vilchik-elena/sonar-php/contents/{+path}","compare_url":"https://api.github.com/repos/vilchik-elena/sonar-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vilchik-elena/sonar-php/merges","archive_url":"https://api.github.com/repos/vilchik-elena/sonar-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vilchik-elena/sonar-php/downloads","issues_url":"https://api.github.com/repos/vilchik-elena/sonar-php/issues{/number}","pulls_url":"https://api.github.com/repos/vilchik-elena/sonar-php/pulls{/number}","milestones_url":"https://api.github.com/repos/vilchik-elena/sonar-php/milestones{/number}","notifications_url":"https://api.github.com/repos/vilchik-elena/sonar-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vilchik-elena/sonar-php/labels{/name}","releases_url":"https://api.github.com/repos/vilchik-elena/sonar-php/releases{/id}","created_at":"2015-10-02T13:19:13Z","updated_at":"2015-10-02T13:19:17Z","pushed_at":"2015-10-15T09:08:08Z","git_url":"git://github.com/vilchik-elena/sonar-php.git","ssh_url":"git@github.com:vilchik-elena/sonar-php.git","clone_url":"https://github.com/vilchik-elena/sonar-php.git","svn_url":"https://github.com/vilchik-elena/sonar-php","homepage":"http://docs.codehaus.org/display/SONAR/PHP+Plugin","size":10514,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"SonarCommunity:master","ref":"master","sha":"a270085a3674d35ca85ecd5ef7e8ad636e699161","user":{"login":"SonarCommunity","id":1303819,"avatar_url":"https://avatars.githubusercontent.com/u/1303819?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarCommunity","html_url":"https://github.com/SonarCommunity","followers_url":"https://api.github.com/users/SonarCommunity/followers","following_url":"https://api.github.com/users/SonarCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SonarCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarCommunity/subscriptions","organizations_url":"https://api.github.com/users/SonarCommunity/orgs","repos_url":"https://api.github.com/users/SonarCommunity/repos","events_url":"https://api.github.com/users/SonarCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SonarCommunity/received_events","type":"Organization","site_admin":false},"repo":{"id":4544982,"name":"sonar-php","full_name":"SonarCommunity/sonar-php","owner":{"login":"SonarCommunity","id":1303819,"avatar_url":"https://avatars.githubusercontent.com/u/1303819?v=3","gravatar_id":"","url":"https://api.github.com/users/SonarCommunity","html_url":"https://github.com/SonarCommunity","followers_url":"https://api.github.com/users/SonarCommunity/followers","following_url":"https://api.github.com/users/SonarCommunity/following{/other_user}","gists_url":"https://api.github.com/users/SonarCommunity/gists{/gist_id}","starred_url":"https://api.github.com/users/SonarCommunity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SonarCommunity/subscriptions","organizations_url":"https://api.github.com/users/SonarCommunity/orgs","repos_url":"https://api.github.com/users/SonarCommunity/repos","events_url":"https://api.github.com/users/SonarCommunity/events{/privacy}","received_events_url":"https://api.github.com/users/SonarCommunity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SonarCommunity/sonar-php","description":"","fork":false,"url":"https://api.github.com/repos/SonarCommunity/sonar-php","forks_url":"https://api.github.com/repos/SonarCommunity/sonar-php/forks","keys_url":"https://api.github.com/repos/SonarCommunity/sonar-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SonarCommunity/sonar-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SonarCommunity/sonar-php/teams","hooks_url":"https://api.github.com/repos/SonarCommunity/sonar-php/hooks","issue_events_url":"https://api.github.com/repos/SonarCommunity/sonar-php/issues/events{/number}","events_url":"https://api.github.com/repos/SonarCommunity/sonar-php/events","assignees_url":"https://api.github.com/repos/SonarCommunity/sonar-php/assignees{/user}","branches_url":"https://api.github.com/repos/SonarCommunity/sonar-php/branches{/branch}","tags_url":"https://api.github.com/repos/SonarCommunity/sonar-php/tags","blobs_url":"https://api.github.com/repos/SonarCommunity/sonar-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SonarCommunity/sonar-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SonarCommunity/sonar-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/SonarCommunity/sonar-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SonarCommunity/sonar-php/statuses/{sha}","languages_url":"https://api.github.com/repos/SonarCommunity/sonar-php/languages","stargazers_url":"https://api.github.com/repos/SonarCommunity/sonar-php/stargazers","contributors_url":"https://api.github.com/repos/SonarCommunity/sonar-php/contributors","subscribers_url":"https://api.github.com/repos/SonarCommunity/sonar-php/subscribers","subscription_url":"https://api.github.com/repos/SonarCommunity/sonar-php/subscription","commits_url":"https://api.github.com/repos/SonarCommunity/sonar-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/SonarCommunity/sonar-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/SonarCommunity/sonar-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/SonarCommunity/sonar-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/SonarCommunity/sonar-php/contents/{+path}","compare_url":"https://api.github.com/repos/SonarCommunity/sonar-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SonarCommunity/sonar-php/merges","archive_url":"https://api.github.com/repos/SonarCommunity/sonar-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SonarCommunity/sonar-php/downloads","issues_url":"https://api.github.com/repos/SonarCommunity/sonar-php/issues{/number}","pulls_url":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls{/number}","milestones_url":"https://api.github.com/repos/SonarCommunity/sonar-php/milestones{/number}","notifications_url":"https://api.github.com/repos/SonarCommunity/sonar-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SonarCommunity/sonar-php/labels{/name}","releases_url":"https://api.github.com/repos/SonarCommunity/sonar-php/releases{/id}","created_at":"2012-06-04T08:36:12Z","updated_at":"2015-09-24T13:22:53Z","pushed_at":"2015-10-15T09:08:08Z","git_url":"git://github.com/SonarCommunity/sonar-php.git","ssh_url":"git@github.com:SonarCommunity/sonar-php.git","clone_url":"https://github.com/SonarCommunity/sonar-php.git","svn_url":"https://github.com/SonarCommunity/sonar-php","homepage":"http://docs.codehaus.org/display/SONAR/PHP+Plugin","size":14867,"stargazers_count":41,"watchers_count":41,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":16,"forks":31,"open_issues":16,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49"},"html":{"href":"https://github.com/SonarCommunity/sonar-php/pull/49"},"issue":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/issues/49"},"comments":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/SonarCommunity/sonar-php/statuses/7a53bf198e782fd28510cc09d0078bd555b82957"}}}}