{"action":"created","comment":{"url":"https://api.github.com/repos/prettier/plugin-php/pulls/comments/206171673","pull_request_review_id":141570888,"id":206171673,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNjE3MTY3Mw==","diff_hunk":"@@ -1131,6 +1131,8 @@ function printExpression(path, options, print) {\n           ])\n         );\n       }\n+      const isAssociative = !!node.items[0].key;\n+      const shouldBreak = isAssociative && node.loc.source.includes(\"\\n\");","path":"src/printer.js","position":5,"original_position":5,"commit_id":"a9301cbea9c195b936a656b634e6e75fc1707f2e","original_commit_id":"a9301cbea9c195b936a656b634e6e75fc1707f2e","user":{"login":"evilebottnawi","id":4567934,"node_id":"MDQ6VXNlcjQ1Njc5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4567934?v=4","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false},"body":"@czosel let's use `hasNewlineInRange` :+1: ,maybe we should create issue about move this to shared utils in prettier","created_at":"2018-07-30T14:53:56Z","updated_at":"2018-07-30T14:53:56Z","html_url":"https://github.com/prettier/plugin-php/pull/501#discussion_r206171673","pull_request_url":"https://api.github.com/repos/prettier/plugin-php/pulls/501","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/prettier/plugin-php/pulls/comments/206171673"},"html":{"href":"https://github.com/prettier/plugin-php/pull/501#discussion_r206171673"},"pull_request":{"href":"https://api.github.com/repos/prettier/plugin-php/pulls/501"}},"in_reply_to_id":206142447},"pull_request":{"url":"https://api.github.com/repos/prettier/plugin-php/pulls/501","id":204412762,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NDEyNzYy","html_url":"https://github.com/prettier/plugin-php/pull/501","diff_url":"https://github.com/prettier/plugin-php/pull/501.diff","patch_url":"https://github.com/prettier/plugin-php/pull/501.patch","issue_url":"https://api.github.com/repos/prettier/plugin-php/issues/501","number":501,"state":"open","locked":false,"title":"Keep linebreaks in arrays","user":{"login":"czosel","id":7962156,"node_id":"MDQ6VXNlcjc5NjIxNTY=","avatar_url":"https://avatars2.githubusercontent.com/u/7962156?v=4","gravatar_id":"","url":"https://api.github.com/users/czosel","html_url":"https://github.com/czosel","followers_url":"https://api.github.com/users/czosel/followers","following_url":"https://api.github.com/users/czosel/following{/other_user}","gists_url":"https://api.github.com/users/czosel/gists{/gist_id}","starred_url":"https://api.github.com/users/czosel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czosel/subscriptions","organizations_url":"https://api.github.com/users/czosel/orgs","repos_url":"https://api.github.com/users/czosel/repos","events_url":"https://api.github.com/users/czosel/events{/privacy}","received_events_url":"https://api.github.com/users/czosel/received_events","type":"User","site_admin":false},"body":"Fixes #476","created_at":"2018-07-27T12:06:14Z","updated_at":"2018-07-30T14:53:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e947024a101237f8dde1a9ab242c68973945220","assignee":null,"assignees":[],"requested_reviewers":[{"login":"evilebottnawi","id":4567934,"node_id":"MDQ6VXNlcjQ1Njc5MzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4567934?v=4","gravatar_id":"","url":"https://api.github.com/users/evilebottnawi","html_url":"https://github.com/evilebottnawi","followers_url":"https://api.github.com/users/evilebottnawi/followers","following_url":"https://api.github.com/users/evilebottnawi/following{/other_user}","gists_url":"https://api.github.com/users/evilebottnawi/gists{/gist_id}","starred_url":"https://api.github.com/users/evilebottnawi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilebottnawi/subscriptions","organizations_url":"https://api.github.com/users/evilebottnawi/orgs","repos_url":"https://api.github.com/users/evilebottnawi/repos","events_url":"https://api.github.com/users/evilebottnawi/events{/privacy}","received_events_url":"https://api.github.com/users/evilebottnawi/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/prettier/plugin-php/pulls/501/commits","review_comments_url":"https://api.github.com/repos/prettier/plugin-php/pulls/501/comments","review_comment_url":"https://api.github.com/repos/prettier/plugin-php/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prettier/plugin-php/issues/501/comments","statuses_url":"https://api.github.com/repos/prettier/plugin-php/statuses/a9301cbea9c195b936a656b634e6e75fc1707f2e","head":{"label":"prettier:collapse-arrays","ref":"collapse-arrays","sha":"a9301cbea9c195b936a656b634e6e75fc1707f2e","user":{"login":"prettier","id":25822731,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODIyNzMx","avatar_url":"https://avatars2.githubusercontent.com/u/25822731?v=4","gravatar_id":"","url":"https://api.github.com/users/prettier","html_url":"https://github.com/prettier","followers_url":"https://api.github.com/users/prettier/followers","following_url":"https://api.github.com/users/prettier/following{/other_user}","gists_url":"https://api.github.com/users/prettier/gists{/gist_id}","starred_url":"https://api.github.com/users/prettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettier/subscriptions","organizations_url":"https://api.github.com/users/prettier/orgs","repos_url":"https://api.github.com/users/prettier/repos","events_url":"https://api.github.com/users/prettier/events{/privacy}","received_events_url":"https://api.github.com/users/prettier/received_events","type":"Organization","site_admin":false},"repo":{"id":115235915,"node_id":"MDEwOlJlcG9zaXRvcnkxMTUyMzU5MTU=","name":"plugin-php","full_name":"prettier/plugin-php","owner":{"login":"prettier","id":25822731,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODIyNzMx","avatar_url":"https://avatars2.githubusercontent.com/u/25822731?v=4","gravatar_id":"","url":"https://api.github.com/users/prettier","html_url":"https://github.com/prettier","followers_url":"https://api.github.com/users/prettier/followers","following_url":"https://api.github.com/users/prettier/following{/other_user}","gists_url":"https://api.github.com/users/prettier/gists{/gist_id}","starred_url":"https://api.github.com/users/prettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettier/subscriptions","organizations_url":"https://api.github.com/users/prettier/orgs","repos_url":"https://api.github.com/users/prettier/repos","events_url":"https://api.github.com/users/prettier/events{/privacy}","received_events_url":"https://api.github.com/users/prettier/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prettier/plugin-php","description":"Prettier PHP Plugin","fork":false,"url":"https://api.github.com/repos/prettier/plugin-php","forks_url":"https://api.github.com/repos/prettier/plugin-php/forks","keys_url":"https://api.github.com/repos/prettier/plugin-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prettier/plugin-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prettier/plugin-php/teams","hooks_url":"https://api.github.com/repos/prettier/plugin-php/hooks","issue_events_url":"https://api.github.com/repos/prettier/plugin-php/issues/events{/number}","events_url":"https://api.github.com/repos/prettier/plugin-php/events","assignees_url":"https://api.github.com/repos/prettier/plugin-php/assignees{/user}","branches_url":"https://api.github.com/repos/prettier/plugin-php/branches{/branch}","tags_url":"https://api.github.com/repos/prettier/plugin-php/tags","blobs_url":"https://api.github.com/repos/prettier/plugin-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prettier/plugin-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prettier/plugin-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/prettier/plugin-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prettier/plugin-php/statuses/{sha}","languages_url":"https://api.github.com/repos/prettier/plugin-php/languages","stargazers_url":"https://api.github.com/repos/prettier/plugin-php/stargazers","contributors_url":"https://api.github.com/repos/prettier/plugin-php/contributors","subscribers_url":"https://api.github.com/repos/prettier/plugin-php/subscribers","subscription_url":"https://api.github.com/repos/prettier/plugin-php/subscription","commits_url":"https://api.github.com/repos/prettier/plugin-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/prettier/plugin-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/prettier/plugin-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/prettier/plugin-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/prettier/plugin-php/contents/{+path}","compare_url":"https://api.github.com/repos/prettier/plugin-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prettier/plugin-php/merges","archive_url":"https://api.github.com/repos/prettier/plugin-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prettier/plugin-php/downloads","issues_url":"https://api.github.com/repos/prettier/plugin-php/issues{/number}","pulls_url":"https://api.github.com/repos/prettier/plugin-php/pulls{/number}","milestones_url":"https://api.github.com/repos/prettier/plugin-php/milestones{/number}","notifications_url":"https://api.github.com/repos/prettier/plugin-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prettier/plugin-php/labels{/name}","releases_url":"https://api.github.com/repos/prettier/plugin-php/releases{/id}","deployments_url":"https://api.github.com/repos/prettier/plugin-php/deployments","created_at":"2017-12-24T02:56:22Z","updated_at":"2018-07-30T12:50:42Z","pushed_at":"2018-07-29T19:45:04Z","git_url":"git://github.com/prettier/plugin-php.git","ssh_url":"git@github.com:prettier/plugin-php.git","clone_url":"https://github.com/prettier/plugin-php.git","svn_url":"https://github.com/prettier/plugin-php","homepage":null,"size":864,"stargazers_count":397,"watchers_count":397,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":24,"watchers":397,"default_branch":"master"}},"base":{"label":"prettier:master","ref":"master","sha":"de83ee536f3e9c6fd72898e2926e9f932ebe239f","user":{"login":"prettier","id":25822731,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODIyNzMx","avatar_url":"https://avatars2.githubusercontent.com/u/25822731?v=4","gravatar_id":"","url":"https://api.github.com/users/prettier","html_url":"https://github.com/prettier","followers_url":"https://api.github.com/users/prettier/followers","following_url":"https://api.github.com/users/prettier/following{/other_user}","gists_url":"https://api.github.com/users/prettier/gists{/gist_id}","starred_url":"https://api.github.com/users/prettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettier/subscriptions","organizations_url":"https://api.github.com/users/prettier/orgs","repos_url":"https://api.github.com/users/prettier/repos","events_url":"https://api.github.com/users/prettier/events{/privacy}","received_events_url":"https://api.github.com/users/prettier/received_events","type":"Organization","site_admin":false},"repo":{"id":115235915,"node_id":"MDEwOlJlcG9zaXRvcnkxMTUyMzU5MTU=","name":"plugin-php","full_name":"prettier/plugin-php","owner":{"login":"prettier","id":25822731,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1ODIyNzMx","avatar_url":"https://avatars2.githubusercontent.com/u/25822731?v=4","gravatar_id":"","url":"https://api.github.com/users/prettier","html_url":"https://github.com/prettier","followers_url":"https://api.github.com/users/prettier/followers","following_url":"https://api.github.com/users/prettier/following{/other_user}","gists_url":"https://api.github.com/users/prettier/gists{/gist_id}","starred_url":"https://api.github.com/users/prettier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettier/subscriptions","organizations_url":"https://api.github.com/users/prettier/orgs","repos_url":"https://api.github.com/users/prettier/repos","events_url":"https://api.github.com/users/prettier/events{/privacy}","received_events_url":"https://api.github.com/users/prettier/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prettier/plugin-php","description":"Prettier PHP Plugin","fork":false,"url":"https://api.github.com/repos/prettier/plugin-php","forks_url":"https://api.github.com/repos/prettier/plugin-php/forks","keys_url":"https://api.github.com/repos/prettier/plugin-php/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prettier/plugin-php/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prettier/plugin-php/teams","hooks_url":"https://api.github.com/repos/prettier/plugin-php/hooks","issue_events_url":"https://api.github.com/repos/prettier/plugin-php/issues/events{/number}","events_url":"https://api.github.com/repos/prettier/plugin-php/events","assignees_url":"https://api.github.com/repos/prettier/plugin-php/assignees{/user}","branches_url":"https://api.github.com/repos/prettier/plugin-php/branches{/branch}","tags_url":"https://api.github.com/repos/prettier/plugin-php/tags","blobs_url":"https://api.github.com/repos/prettier/plugin-php/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prettier/plugin-php/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prettier/plugin-php/git/refs{/sha}","trees_url":"https://api.github.com/repos/prettier/plugin-php/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prettier/plugin-php/statuses/{sha}","languages_url":"https://api.github.com/repos/prettier/plugin-php/languages","stargazers_url":"https://api.github.com/repos/prettier/plugin-php/stargazers","contributors_url":"https://api.github.com/repos/prettier/plugin-php/contributors","subscribers_url":"https://api.github.com/repos/prettier/plugin-php/subscribers","subscription_url":"https://api.github.com/repos/prettier/plugin-php/subscription","commits_url":"https://api.github.com/repos/prettier/plugin-php/commits{/sha}","git_commits_url":"https://api.github.com/repos/prettier/plugin-php/git/commits{/sha}","comments_url":"https://api.github.com/repos/prettier/plugin-php/comments{/number}","issue_comment_url":"https://api.github.com/repos/prettier/plugin-php/issues/comments{/number}","contents_url":"https://api.github.com/repos/prettier/plugin-php/contents/{+path}","compare_url":"https://api.github.com/repos/prettier/plugin-php/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prettier/plugin-php/merges","archive_url":"https://api.github.com/repos/prettier/plugin-php/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prettier/plugin-php/downloads","issues_url":"https://api.github.com/repos/prettier/plugin-php/issues{/number}","pulls_url":"https://api.github.com/repos/prettier/plugin-php/pulls{/number}","milestones_url":"https://api.github.com/repos/prettier/plugin-php/milestones{/number}","notifications_url":"https://api.github.com/repos/prettier/plugin-php/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prettier/plugin-php/labels{/name}","releases_url":"https://api.github.com/repos/prettier/plugin-php/releases{/id}","deployments_url":"https://api.github.com/repos/prettier/plugin-php/deployments","created_at":"2017-12-24T02:56:22Z","updated_at":"2018-07-30T12:50:42Z","pushed_at":"2018-07-29T19:45:04Z","git_url":"git://github.com/prettier/plugin-php.git","ssh_url":"git@github.com:prettier/plugin-php.git","clone_url":"https://github.com/prettier/plugin-php.git","svn_url":"https://github.com/prettier/plugin-php","homepage":null,"size":864,"stargazers_count":397,"watchers_count":397,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":17,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":17,"open_issues":24,"watchers":397,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prettier/plugin-php/pulls/501"},"html":{"href":"https://github.com/prettier/plugin-php/pull/501"},"issue":{"href":"https://api.github.com/repos/prettier/plugin-php/issues/501"},"comments":{"href":"https://api.github.com/repos/prettier/plugin-php/issues/501/comments"},"review_comments":{"href":"https://api.github.com/repos/prettier/plugin-php/pulls/501/comments"},"review_comment":{"href":"https://api.github.com/repos/prettier/plugin-php/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prettier/plugin-php/pulls/501/commits"},"statuses":{"href":"https://api.github.com/repos/prettier/plugin-php/statuses/a9301cbea9c195b936a656b634e6e75fc1707f2e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"evilebottnawi"}}