{"action":"created","comment":{"url":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/comments/25341842","id":25341842,"diff_hunk":"@@ -96,7 +96,7 @@ protected function delete($path)\n      */\n     protected function isNotNull($var)\n     {\n-        return !is_null($var);\n+        return !(is_null($var) || $var === false || $var === \"\" || ((is_array($var) || is_object($var)) && empty($var)));","path":"lib/Redmine/Api/AbstractApi.php","position":5,"original_position":5,"commit_id":"638d7c64a1b4024f6c773ade33164a818ced12e7","original_commit_id":"638d7c64a1b4024f6c773ade33164a818ced12e7","user":{"login":"kbsali","id":53676,"avatar_url":"https://avatars.githubusercontent.com/u/53676?v=3","gravatar_id":"","url":"https://api.github.com/users/kbsali","html_url":"https://github.com/kbsali","followers_url":"https://api.github.com/users/kbsali/followers","following_url":"https://api.github.com/users/kbsali/following{/other_user}","gists_url":"https://api.github.com/users/kbsali/gists{/gist_id}","starred_url":"https://api.github.com/users/kbsali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbsali/subscriptions","organizations_url":"https://api.github.com/users/kbsali/orgs","repos_url":"https://api.github.com/users/kbsali/repos","events_url":"https://api.github.com/users/kbsali/events{/privacy}","received_events_url":"https://api.github.com/users/kbsali/received_events","type":"User","site_admin":false},"body":"is that not the same as testing !empty($var) ?","created_at":"2015-02-25T14:14:20Z","updated_at":"2015-02-25T14:14:20Z","html_url":"https://github.com/kbsali/php-redmine-api/pull/113#discussion_r25341842","pull_request_url":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113","_links":{"self":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/comments/25341842"},"html":{"href":"https://github.com/kbsali/php-redmine-api/pull/113#discussion_r25341842"},"pull_request":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113","id":29524230,"html_url":"https://github.com/kbsali/php-redmine-api/pull/113","diff_url":"https://github.com/kbsali/php-redmine-api/pull/113.diff","patch_url":"https://github.com/kbsali/php-redmine-api/pull/113.patch","issue_url":"https://api.github.com/repos/kbsali/php-redmine-api/issues/113","number":113,"state":"open","locked":false,"title":"Solved a bug with the filtering of parameters. Now it accepts 0 as a non...","user":{"login":"Halmaethor","id":185904,"avatar_url":"https://avatars.githubusercontent.com/u/185904?v=3","gravatar_id":"","url":"https://api.github.com/users/Halmaethor","html_url":"https://github.com/Halmaethor","followers_url":"https://api.github.com/users/Halmaethor/followers","following_url":"https://api.github.com/users/Halmaethor/following{/other_user}","gists_url":"https://api.github.com/users/Halmaethor/gists{/gist_id}","starred_url":"https://api.github.com/users/Halmaethor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halmaethor/subscriptions","organizations_url":"https://api.github.com/users/Halmaethor/orgs","repos_url":"https://api.github.com/users/Halmaethor/repos","events_url":"https://api.github.com/users/Halmaethor/events{/privacy}","received_events_url":"https://api.github.com/users/Halmaethor/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-18T13:18:16Z","updated_at":"2015-02-25T14:14:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f83850847780a341c39fa74335b230cd8720b43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113/commits","review_comments_url":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113/comments","review_comment_url":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kbsali/php-redmine-api/issues/113/comments","statuses_url":"https://api.github.com/repos/kbsali/php-redmine-api/statuses/638d7c64a1b4024f6c773ade33164a818ced12e7","head":{"label":"Halmaethor:issue_112","ref":"issue_112","sha":"638d7c64a1b4024f6c773ade33164a818ced12e7","user":{"login":"Halmaethor","id":185904,"avatar_url":"https://avatars.githubusercontent.com/u/185904?v=3","gravatar_id":"","url":"https://api.github.com/users/Halmaethor","html_url":"https://github.com/Halmaethor","followers_url":"https://api.github.com/users/Halmaethor/followers","following_url":"https://api.github.com/users/Halmaethor/following{/other_user}","gists_url":"https://api.github.com/users/Halmaethor/gists{/gist_id}","starred_url":"https://api.github.com/users/Halmaethor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halmaethor/subscriptions","organizations_url":"https://api.github.com/users/Halmaethor/orgs","repos_url":"https://api.github.com/users/Halmaethor/repos","events_url":"https://api.github.com/users/Halmaethor/events{/privacy}","received_events_url":"https://api.github.com/users/Halmaethor/received_events","type":"User","site_admin":false},"repo":{"id":30965005,"name":"php-redmine-api","full_name":"Halmaethor/php-redmine-api","owner":{"login":"Halmaethor","id":185904,"avatar_url":"https://avatars.githubusercontent.com/u/185904?v=3","gravatar_id":"","url":"https://api.github.com/users/Halmaethor","html_url":"https://github.com/Halmaethor","followers_url":"https://api.github.com/users/Halmaethor/followers","following_url":"https://api.github.com/users/Halmaethor/following{/other_user}","gists_url":"https://api.github.com/users/Halmaethor/gists{/gist_id}","starred_url":"https://api.github.com/users/Halmaethor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Halmaethor/subscriptions","organizations_url":"https://api.github.com/users/Halmaethor/orgs","repos_url":"https://api.github.com/users/Halmaethor/repos","events_url":"https://api.github.com/users/Halmaethor/events{/privacy}","received_events_url":"https://api.github.com/users/Halmaethor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Halmaethor/php-redmine-api","description":"A simple PHP Redmine API client, Object Oriented","fork":true,"url":"https://api.github.com/repos/Halmaethor/php-redmine-api","forks_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/forks","keys_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/teams","hooks_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/hooks","issue_events_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/issues/events{/number}","events_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/events","assignees_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/assignees{/user}","branches_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/branches{/branch}","tags_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/tags","blobs_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/statuses/{sha}","languages_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/languages","stargazers_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/stargazers","contributors_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/contributors","subscribers_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/subscribers","subscription_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/subscription","commits_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/contents/{+path}","compare_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/merges","archive_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/downloads","issues_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/issues{/number}","pulls_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/pulls{/number}","milestones_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/milestones{/number}","notifications_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/labels{/name}","releases_url":"https://api.github.com/repos/Halmaethor/php-redmine-api/releases{/id}","created_at":"2015-02-18T12:39:47Z","updated_at":"2015-02-18T12:39:47Z","pushed_at":"2015-02-18T13:10:16Z","git_url":"git://github.com/Halmaethor/php-redmine-api.git","ssh_url":"git@github.com:Halmaethor/php-redmine-api.git","clone_url":"https://github.com/Halmaethor/php-redmine-api.git","svn_url":"https://github.com/Halmaethor/php-redmine-api","homepage":null,"size":465,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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":"kbsali:master","ref":"master","sha":"8ef5bbdc3739a4fd25a6fa2686db05ffc31bdaf4","user":{"login":"kbsali","id":53676,"avatar_url":"https://avatars.githubusercontent.com/u/53676?v=3","gravatar_id":"","url":"https://api.github.com/users/kbsali","html_url":"https://github.com/kbsali","followers_url":"https://api.github.com/users/kbsali/followers","following_url":"https://api.github.com/users/kbsali/following{/other_user}","gists_url":"https://api.github.com/users/kbsali/gists{/gist_id}","starred_url":"https://api.github.com/users/kbsali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbsali/subscriptions","organizations_url":"https://api.github.com/users/kbsali/orgs","repos_url":"https://api.github.com/users/kbsali/repos","events_url":"https://api.github.com/users/kbsali/events{/privacy}","received_events_url":"https://api.github.com/users/kbsali/received_events","type":"User","site_admin":false},"repo":{"id":5999131,"name":"php-redmine-api","full_name":"kbsali/php-redmine-api","owner":{"login":"kbsali","id":53676,"avatar_url":"https://avatars.githubusercontent.com/u/53676?v=3","gravatar_id":"","url":"https://api.github.com/users/kbsali","html_url":"https://github.com/kbsali","followers_url":"https://api.github.com/users/kbsali/followers","following_url":"https://api.github.com/users/kbsali/following{/other_user}","gists_url":"https://api.github.com/users/kbsali/gists{/gist_id}","starred_url":"https://api.github.com/users/kbsali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbsali/subscriptions","organizations_url":"https://api.github.com/users/kbsali/orgs","repos_url":"https://api.github.com/users/kbsali/repos","events_url":"https://api.github.com/users/kbsali/events{/privacy}","received_events_url":"https://api.github.com/users/kbsali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kbsali/php-redmine-api","description":"A simple PHP Redmine API client, Object Oriented","fork":false,"url":"https://api.github.com/repos/kbsali/php-redmine-api","forks_url":"https://api.github.com/repos/kbsali/php-redmine-api/forks","keys_url":"https://api.github.com/repos/kbsali/php-redmine-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbsali/php-redmine-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbsali/php-redmine-api/teams","hooks_url":"https://api.github.com/repos/kbsali/php-redmine-api/hooks","issue_events_url":"https://api.github.com/repos/kbsali/php-redmine-api/issues/events{/number}","events_url":"https://api.github.com/repos/kbsali/php-redmine-api/events","assignees_url":"https://api.github.com/repos/kbsali/php-redmine-api/assignees{/user}","branches_url":"https://api.github.com/repos/kbsali/php-redmine-api/branches{/branch}","tags_url":"https://api.github.com/repos/kbsali/php-redmine-api/tags","blobs_url":"https://api.github.com/repos/kbsali/php-redmine-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbsali/php-redmine-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbsali/php-redmine-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbsali/php-redmine-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbsali/php-redmine-api/statuses/{sha}","languages_url":"https://api.github.com/repos/kbsali/php-redmine-api/languages","stargazers_url":"https://api.github.com/repos/kbsali/php-redmine-api/stargazers","contributors_url":"https://api.github.com/repos/kbsali/php-redmine-api/contributors","subscribers_url":"https://api.github.com/repos/kbsali/php-redmine-api/subscribers","subscription_url":"https://api.github.com/repos/kbsali/php-redmine-api/subscription","commits_url":"https://api.github.com/repos/kbsali/php-redmine-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbsali/php-redmine-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbsali/php-redmine-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbsali/php-redmine-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbsali/php-redmine-api/contents/{+path}","compare_url":"https://api.github.com/repos/kbsali/php-redmine-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbsali/php-redmine-api/merges","archive_url":"https://api.github.com/repos/kbsali/php-redmine-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbsali/php-redmine-api/downloads","issues_url":"https://api.github.com/repos/kbsali/php-redmine-api/issues{/number}","pulls_url":"https://api.github.com/repos/kbsali/php-redmine-api/pulls{/number}","milestones_url":"https://api.github.com/repos/kbsali/php-redmine-api/milestones{/number}","notifications_url":"https://api.github.com/repos/kbsali/php-redmine-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbsali/php-redmine-api/labels{/name}","releases_url":"https://api.github.com/repos/kbsali/php-redmine-api/releases{/id}","created_at":"2012-09-28T15:23:10Z","updated_at":"2015-02-15T14:38:55Z","pushed_at":"2015-01-28T22:21:39Z","git_url":"git://github.com/kbsali/php-redmine-api.git","ssh_url":"git@github.com:kbsali/php-redmine-api.git","clone_url":"https://github.com/kbsali/php-redmine-api.git","svn_url":"https://github.com/kbsali/php-redmine-api","homepage":null,"size":1111,"stargazers_count":161,"watchers_count":161,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":12,"forks":80,"open_issues":12,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113"},"html":{"href":"https://github.com/kbsali/php-redmine-api/pull/113"},"issue":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/issues/113"},"comments":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/kbsali/php-redmine-api/statuses/638d7c64a1b4024f6c773ade33164a818ced12e7"}}}}