{"action":"opened","number":20,"pull_request":{"url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/20","id":115771625,"html_url":"https://github.com/IsraelOrtuno/pipedrive/pull/20","diff_url":"https://github.com/IsraelOrtuno/pipedrive/pull/20.diff","patch_url":"https://github.com/IsraelOrtuno/pipedrive/pull/20.patch","issue_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/20","number":20,"state":"open","locked":false,"title":"Delete empty because logically equivalent","user":{"login":"joshuahiwat","id":12127523,"avatar_url":"https://avatars0.githubusercontent.com/u/12127523?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuahiwat","html_url":"https://github.com/joshuahiwat","followers_url":"https://api.github.com/users/joshuahiwat/followers","following_url":"https://api.github.com/users/joshuahiwat/following{/other_user}","gists_url":"https://api.github.com/users/joshuahiwat/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuahiwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuahiwat/subscriptions","organizations_url":"https://api.github.com/users/joshuahiwat/orgs","repos_url":"https://api.github.com/users/joshuahiwat/repos","events_url":"https://api.github.com/users/joshuahiwat/events{/privacy}","received_events_url":"https://api.github.com/users/joshuahiwat/received_events","type":"User","site_admin":false},"body":"empty() needs to access the value by reference (in order to check whether that reference points to something that exists), and PHP before 5.5 didn't support references to temporary values returned from functions.\r\n\r\nEmpty is just an alias for !isset($thing) || !$thing. When the thing you're checking always exists (in PHP results of function calls always exist), the empty() function is nothing but a negation operator.","created_at":"2017-04-13T14:39:28Z","updated_at":"2017-04-13T14:39:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/20/commits","review_comments_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/20/comments","review_comment_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/20/comments","statuses_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/statuses/92764c5ac35efaca8a85f609adc5bd9f95a695ba","head":{"label":"joshuahiwat:patch-1","ref":"patch-1","sha":"92764c5ac35efaca8a85f609adc5bd9f95a695ba","user":{"login":"joshuahiwat","id":12127523,"avatar_url":"https://avatars0.githubusercontent.com/u/12127523?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuahiwat","html_url":"https://github.com/joshuahiwat","followers_url":"https://api.github.com/users/joshuahiwat/followers","following_url":"https://api.github.com/users/joshuahiwat/following{/other_user}","gists_url":"https://api.github.com/users/joshuahiwat/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuahiwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuahiwat/subscriptions","organizations_url":"https://api.github.com/users/joshuahiwat/orgs","repos_url":"https://api.github.com/users/joshuahiwat/repos","events_url":"https://api.github.com/users/joshuahiwat/events{/privacy}","received_events_url":"https://api.github.com/users/joshuahiwat/received_events","type":"User","site_admin":false},"repo":{"id":88172891,"name":"pipedrive","full_name":"joshuahiwat/pipedrive","owner":{"login":"joshuahiwat","id":12127523,"avatar_url":"https://avatars0.githubusercontent.com/u/12127523?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuahiwat","html_url":"https://github.com/joshuahiwat","followers_url":"https://api.github.com/users/joshuahiwat/followers","following_url":"https://api.github.com/users/joshuahiwat/following{/other_user}","gists_url":"https://api.github.com/users/joshuahiwat/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuahiwat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuahiwat/subscriptions","organizations_url":"https://api.github.com/users/joshuahiwat/orgs","repos_url":"https://api.github.com/users/joshuahiwat/repos","events_url":"https://api.github.com/users/joshuahiwat/events{/privacy}","received_events_url":"https://api.github.com/users/joshuahiwat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshuahiwat/pipedrive","description":"Complete Pipedrive API client for PHP","fork":true,"url":"https://api.github.com/repos/joshuahiwat/pipedrive","forks_url":"https://api.github.com/repos/joshuahiwat/pipedrive/forks","keys_url":"https://api.github.com/repos/joshuahiwat/pipedrive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshuahiwat/pipedrive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshuahiwat/pipedrive/teams","hooks_url":"https://api.github.com/repos/joshuahiwat/pipedrive/hooks","issue_events_url":"https://api.github.com/repos/joshuahiwat/pipedrive/issues/events{/number}","events_url":"https://api.github.com/repos/joshuahiwat/pipedrive/events","assignees_url":"https://api.github.com/repos/joshuahiwat/pipedrive/assignees{/user}","branches_url":"https://api.github.com/repos/joshuahiwat/pipedrive/branches{/branch}","tags_url":"https://api.github.com/repos/joshuahiwat/pipedrive/tags","blobs_url":"https://api.github.com/repos/joshuahiwat/pipedrive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshuahiwat/pipedrive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshuahiwat/pipedrive/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshuahiwat/pipedrive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshuahiwat/pipedrive/statuses/{sha}","languages_url":"https://api.github.com/repos/joshuahiwat/pipedrive/languages","stargazers_url":"https://api.github.com/repos/joshuahiwat/pipedrive/stargazers","contributors_url":"https://api.github.com/repos/joshuahiwat/pipedrive/contributors","subscribers_url":"https://api.github.com/repos/joshuahiwat/pipedrive/subscribers","subscription_url":"https://api.github.com/repos/joshuahiwat/pipedrive/subscription","commits_url":"https://api.github.com/repos/joshuahiwat/pipedrive/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshuahiwat/pipedrive/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshuahiwat/pipedrive/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshuahiwat/pipedrive/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshuahiwat/pipedrive/contents/{+path}","compare_url":"https://api.github.com/repos/joshuahiwat/pipedrive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshuahiwat/pipedrive/merges","archive_url":"https://api.github.com/repos/joshuahiwat/pipedrive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshuahiwat/pipedrive/downloads","issues_url":"https://api.github.com/repos/joshuahiwat/pipedrive/issues{/number}","pulls_url":"https://api.github.com/repos/joshuahiwat/pipedrive/pulls{/number}","milestones_url":"https://api.github.com/repos/joshuahiwat/pipedrive/milestones{/number}","notifications_url":"https://api.github.com/repos/joshuahiwat/pipedrive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshuahiwat/pipedrive/labels{/name}","releases_url":"https://api.github.com/repos/joshuahiwat/pipedrive/releases{/id}","deployments_url":"https://api.github.com/repos/joshuahiwat/pipedrive/deployments","created_at":"2017-04-13T14:20:00Z","updated_at":"2017-04-13T14:20:02Z","pushed_at":"2017-04-13T14:22:14Z","git_url":"git://github.com/joshuahiwat/pipedrive.git","ssh_url":"git@github.com:joshuahiwat/pipedrive.git","clone_url":"https://github.com/joshuahiwat/pipedrive.git","svn_url":"https://github.com/joshuahiwat/pipedrive","homepage":"","size":99,"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,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"IsraelOrtuno:master","ref":"master","sha":"a6ad2fcffa32ffa3fadbb6c7c5907c8d92a475aa","user":{"login":"IsraelOrtuno","id":1769417,"avatar_url":"https://avatars2.githubusercontent.com/u/1769417?v=3","gravatar_id":"","url":"https://api.github.com/users/IsraelOrtuno","html_url":"https://github.com/IsraelOrtuno","followers_url":"https://api.github.com/users/IsraelOrtuno/followers","following_url":"https://api.github.com/users/IsraelOrtuno/following{/other_user}","gists_url":"https://api.github.com/users/IsraelOrtuno/gists{/gist_id}","starred_url":"https://api.github.com/users/IsraelOrtuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsraelOrtuno/subscriptions","organizations_url":"https://api.github.com/users/IsraelOrtuno/orgs","repos_url":"https://api.github.com/users/IsraelOrtuno/repos","events_url":"https://api.github.com/users/IsraelOrtuno/events{/privacy}","received_events_url":"https://api.github.com/users/IsraelOrtuno/received_events","type":"User","site_admin":false},"repo":{"id":47078028,"name":"pipedrive","full_name":"IsraelOrtuno/pipedrive","owner":{"login":"IsraelOrtuno","id":1769417,"avatar_url":"https://avatars2.githubusercontent.com/u/1769417?v=3","gravatar_id":"","url":"https://api.github.com/users/IsraelOrtuno","html_url":"https://github.com/IsraelOrtuno","followers_url":"https://api.github.com/users/IsraelOrtuno/followers","following_url":"https://api.github.com/users/IsraelOrtuno/following{/other_user}","gists_url":"https://api.github.com/users/IsraelOrtuno/gists{/gist_id}","starred_url":"https://api.github.com/users/IsraelOrtuno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IsraelOrtuno/subscriptions","organizations_url":"https://api.github.com/users/IsraelOrtuno/orgs","repos_url":"https://api.github.com/users/IsraelOrtuno/repos","events_url":"https://api.github.com/users/IsraelOrtuno/events{/privacy}","received_events_url":"https://api.github.com/users/IsraelOrtuno/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/IsraelOrtuno/pipedrive","description":"Complete Pipedrive API client for PHP","fork":false,"url":"https://api.github.com/repos/IsraelOrtuno/pipedrive","forks_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/forks","keys_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/teams","hooks_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/hooks","issue_events_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/events{/number}","events_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/events","assignees_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/assignees{/user}","branches_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/branches{/branch}","tags_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/tags","blobs_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/git/refs{/sha}","trees_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/statuses/{sha}","languages_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/languages","stargazers_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/stargazers","contributors_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/contributors","subscribers_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/subscribers","subscription_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/subscription","commits_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/commits{/sha}","git_commits_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/git/commits{/sha}","comments_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/comments{/number}","issue_comment_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/comments{/number}","contents_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/contents/{+path}","compare_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/merges","archive_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/downloads","issues_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues{/number}","pulls_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls{/number}","milestones_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/milestones{/number}","notifications_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/labels{/name}","releases_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/releases{/id}","deployments_url":"https://api.github.com/repos/IsraelOrtuno/pipedrive/deployments","created_at":"2015-11-29T19:59:35Z","updated_at":"2017-03-18T23:25:34Z","pushed_at":"2017-04-12T10:04:42Z","git_url":"git://github.com/IsraelOrtuno/pipedrive.git","ssh_url":"git@github.com:IsraelOrtuno/pipedrive.git","clone_url":"https://github.com/IsraelOrtuno/pipedrive.git","svn_url":"https://github.com/IsraelOrtuno/pipedrive","homepage":"","size":99,"stargazers_count":26,"watchers_count":26,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":1,"forks":10,"open_issues":1,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/20"},"html":{"href":"https://github.com/IsraelOrtuno/pipedrive/pull/20"},"issue":{"href":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/20"},"comments":{"href":"https://api.github.com/repos/IsraelOrtuno/pipedrive/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IsraelOrtuno/pipedrive/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/IsraelOrtuno/pipedrive/statuses/92764c5ac35efaca8a85f609adc5bd9f95a695ba"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"joshuahiwat"}}