{"action":"opened","number":20097,"pull_request":{"url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20097","id":188361733,"html_url":"https://github.com/woocommerce/woocommerce/pull/20097","diff_url":"https://github.com/woocommerce/woocommerce/pull/20097.diff","patch_url":"https://github.com/woocommerce/woocommerce/pull/20097.patch","issue_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/20097","number":20097,"state":"open","locked":false,"title":"Conditions To Multiple Lines","user":{"login":"rnaby","id":6243408,"avatar_url":"https://avatars0.githubusercontent.com/u/6243408?v=4","gravatar_id":"","url":"https://api.github.com/users/rnaby","html_url":"https://github.com/rnaby","followers_url":"https://api.github.com/users/rnaby/followers","following_url":"https://api.github.com/users/rnaby/following{/other_user}","gists_url":"https://api.github.com/users/rnaby/gists{/gist_id}","starred_url":"https://api.github.com/users/rnaby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnaby/subscriptions","organizations_url":"https://api.github.com/users/rnaby/orgs","repos_url":"https://api.github.com/users/rnaby/repos","events_url":"https://api.github.com/users/rnaby/events{/privacy}","received_events_url":"https://api.github.com/users/rnaby/received_events","type":"User","site_admin":false},"body":"Long lines of conditions makes it messy to read as well as understand. At least to me it was very hard to read and understand. So, here I'm proposing to break the long lines of conditions to multiple lines in order to make it easy to read and understand. \r\n\r\n> Besides, I think if there are more than two conditions and they are exceeding _120 columns_ then they should be broken down to multiple lines. It makes the code more easy to read as well as understand.","created_at":"2018-05-16T08:56:16Z","updated_at":"2018-05-16T08:56:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20097/commits","review_comments_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20097/comments","review_comment_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/20097/comments","statuses_url":"https://api.github.com/repos/woocommerce/woocommerce/statuses/f661b28a63f47a4638b7acd9487793d5e4330214","head":{"label":"rnaby:160518-144732","ref":"160518-144732","sha":"f661b28a63f47a4638b7acd9487793d5e4330214","user":{"login":"rnaby","id":6243408,"avatar_url":"https://avatars0.githubusercontent.com/u/6243408?v=4","gravatar_id":"","url":"https://api.github.com/users/rnaby","html_url":"https://github.com/rnaby","followers_url":"https://api.github.com/users/rnaby/followers","following_url":"https://api.github.com/users/rnaby/following{/other_user}","gists_url":"https://api.github.com/users/rnaby/gists{/gist_id}","starred_url":"https://api.github.com/users/rnaby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnaby/subscriptions","organizations_url":"https://api.github.com/users/rnaby/orgs","repos_url":"https://api.github.com/users/rnaby/repos","events_url":"https://api.github.com/users/rnaby/events{/privacy}","received_events_url":"https://api.github.com/users/rnaby/received_events","type":"User","site_admin":false},"repo":{"id":79583875,"name":"woocommerce","full_name":"rnaby/woocommerce","owner":{"login":"rnaby","id":6243408,"avatar_url":"https://avatars0.githubusercontent.com/u/6243408?v=4","gravatar_id":"","url":"https://api.github.com/users/rnaby","html_url":"https://github.com/rnaby","followers_url":"https://api.github.com/users/rnaby/followers","following_url":"https://api.github.com/users/rnaby/following{/other_user}","gists_url":"https://api.github.com/users/rnaby/gists{/gist_id}","starred_url":"https://api.github.com/users/rnaby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rnaby/subscriptions","organizations_url":"https://api.github.com/users/rnaby/orgs","repos_url":"https://api.github.com/users/rnaby/repos","events_url":"https://api.github.com/users/rnaby/events{/privacy}","received_events_url":"https://api.github.com/users/rnaby/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rnaby/woocommerce","description":"An open source eCommerce plugin for WordPress.","fork":true,"url":"https://api.github.com/repos/rnaby/woocommerce","forks_url":"https://api.github.com/repos/rnaby/woocommerce/forks","keys_url":"https://api.github.com/repos/rnaby/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rnaby/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rnaby/woocommerce/teams","hooks_url":"https://api.github.com/repos/rnaby/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/rnaby/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/rnaby/woocommerce/events","assignees_url":"https://api.github.com/repos/rnaby/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/rnaby/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/rnaby/woocommerce/tags","blobs_url":"https://api.github.com/repos/rnaby/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rnaby/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rnaby/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/rnaby/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rnaby/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/rnaby/woocommerce/languages","stargazers_url":"https://api.github.com/repos/rnaby/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/rnaby/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/rnaby/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/rnaby/woocommerce/subscription","commits_url":"https://api.github.com/repos/rnaby/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/rnaby/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/rnaby/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/rnaby/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/rnaby/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/rnaby/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rnaby/woocommerce/merges","archive_url":"https://api.github.com/repos/rnaby/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rnaby/woocommerce/downloads","issues_url":"https://api.github.com/repos/rnaby/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/rnaby/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/rnaby/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/rnaby/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rnaby/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/rnaby/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/rnaby/woocommerce/deployments","created_at":"2017-01-20T18:07:25Z","updated_at":"2018-05-16T02:52:40Z","pushed_at":"2018-05-16T08:49:25Z","git_url":"git://github.com/rnaby/woocommerce.git","ssh_url":"git@github.com:rnaby/woocommerce.git","clone_url":"https://github.com/rnaby/woocommerce.git","svn_url":"https://github.com/rnaby/woocommerce","homepage":"http://www.woocommerce.com/","size":142829,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"woocommerce:master","ref":"master","sha":"a14ad889df7f9bdd75821f03266d243fe252a99a","user":{"login":"woocommerce","id":473596,"avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"repo":{"id":2179920,"name":"woocommerce","full_name":"woocommerce/woocommerce","owner":{"login":"woocommerce","id":473596,"avatar_url":"https://avatars0.githubusercontent.com/u/473596?v=4","gravatar_id":"","url":"https://api.github.com/users/woocommerce","html_url":"https://github.com/woocommerce","followers_url":"https://api.github.com/users/woocommerce/followers","following_url":"https://api.github.com/users/woocommerce/following{/other_user}","gists_url":"https://api.github.com/users/woocommerce/gists{/gist_id}","starred_url":"https://api.github.com/users/woocommerce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woocommerce/subscriptions","organizations_url":"https://api.github.com/users/woocommerce/orgs","repos_url":"https://api.github.com/users/woocommerce/repos","events_url":"https://api.github.com/users/woocommerce/events{/privacy}","received_events_url":"https://api.github.com/users/woocommerce/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/woocommerce/woocommerce","description":"An open source eCommerce plugin for WordPress.","fork":false,"url":"https://api.github.com/repos/woocommerce/woocommerce","forks_url":"https://api.github.com/repos/woocommerce/woocommerce/forks","keys_url":"https://api.github.com/repos/woocommerce/woocommerce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/woocommerce/woocommerce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/woocommerce/woocommerce/teams","hooks_url":"https://api.github.com/repos/woocommerce/woocommerce/hooks","issue_events_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/events{/number}","events_url":"https://api.github.com/repos/woocommerce/woocommerce/events","assignees_url":"https://api.github.com/repos/woocommerce/woocommerce/assignees{/user}","branches_url":"https://api.github.com/repos/woocommerce/woocommerce/branches{/branch}","tags_url":"https://api.github.com/repos/woocommerce/woocommerce/tags","blobs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/woocommerce/woocommerce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/woocommerce/woocommerce/git/refs{/sha}","trees_url":"https://api.github.com/repos/woocommerce/woocommerce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/woocommerce/woocommerce/statuses/{sha}","languages_url":"https://api.github.com/repos/woocommerce/woocommerce/languages","stargazers_url":"https://api.github.com/repos/woocommerce/woocommerce/stargazers","contributors_url":"https://api.github.com/repos/woocommerce/woocommerce/contributors","subscribers_url":"https://api.github.com/repos/woocommerce/woocommerce/subscribers","subscription_url":"https://api.github.com/repos/woocommerce/woocommerce/subscription","commits_url":"https://api.github.com/repos/woocommerce/woocommerce/commits{/sha}","git_commits_url":"https://api.github.com/repos/woocommerce/woocommerce/git/commits{/sha}","comments_url":"https://api.github.com/repos/woocommerce/woocommerce/comments{/number}","issue_comment_url":"https://api.github.com/repos/woocommerce/woocommerce/issues/comments{/number}","contents_url":"https://api.github.com/repos/woocommerce/woocommerce/contents/{+path}","compare_url":"https://api.github.com/repos/woocommerce/woocommerce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/woocommerce/woocommerce/merges","archive_url":"https://api.github.com/repos/woocommerce/woocommerce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/woocommerce/woocommerce/downloads","issues_url":"https://api.github.com/repos/woocommerce/woocommerce/issues{/number}","pulls_url":"https://api.github.com/repos/woocommerce/woocommerce/pulls{/number}","milestones_url":"https://api.github.com/repos/woocommerce/woocommerce/milestones{/number}","notifications_url":"https://api.github.com/repos/woocommerce/woocommerce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/woocommerce/woocommerce/labels{/name}","releases_url":"https://api.github.com/repos/woocommerce/woocommerce/releases{/id}","deployments_url":"https://api.github.com/repos/woocommerce/woocommerce/deployments","created_at":"2011-08-09T15:12:11Z","updated_at":"2018-05-16T07:36:28Z","pushed_at":"2018-05-16T07:59:23Z","git_url":"git://github.com/woocommerce/woocommerce.git","ssh_url":"git@github.com:woocommerce/woocommerce.git","clone_url":"https://github.com/woocommerce/woocommerce.git","svn_url":"https://github.com/woocommerce/woocommerce","homepage":"http://www.woocommerce.com/","size":146179,"stargazers_count":4411,"watchers_count":4411,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4037,"mirror_url":null,"archived":false,"open_issues_count":55,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":4037,"open_issues":55,"watchers":4411,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20097"},"html":{"href":"https://github.com/woocommerce/woocommerce/pull/20097"},"issue":{"href":"https://api.github.com/repos/woocommerce/woocommerce/issues/20097"},"comments":{"href":"https://api.github.com/repos/woocommerce/woocommerce/issues/20097/comments"},"review_comments":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20097/comments"},"review_comment":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/woocommerce/woocommerce/pulls/20097/commits"},"statuses":{"href":"https://api.github.com/repos/woocommerce/woocommerce/statuses/f661b28a63f47a4638b7acd9487793d5e4330214"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":24,"deletions":9,"changed_files":1}}
{"actor":{"display_login":"rnaby"}}