{"action":"created","comment":{"url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/comments/46953954","id":46953954,"diff_hunk":"@@ -32,7 +33,7 @@ public static function extractReplyEml($path)\n \n       $extractor = self::getExtractorEml(self::detectMailer(self::getHeadersRelevantForMailerDetectionEml($parser)), $parser);\n \n-      return (string) $extractor->body;\n+      return (string) trim($extractor->body);","path":"src/ActiveCollab/EmailReplyExtractor.php","position":20,"original_position":20,"commit_id":"e9bd9fe800e72a61bf9460aabbff10bb008eb489","original_commit_id":"e9bd9fe800e72a61bf9460aabbff10bb008eb489","user":{"login":"ilijastuden","id":729914,"avatar_url":"https://avatars.githubusercontent.com/u/729914?v=3","gravatar_id":"","url":"https://api.github.com/users/ilijastuden","html_url":"https://github.com/ilijastuden","followers_url":"https://api.github.com/users/ilijastuden/followers","following_url":"https://api.github.com/users/ilijastuden/following{/other_user}","gists_url":"https://api.github.com/users/ilijastuden/gists{/gist_id}","starred_url":"https://api.github.com/users/ilijastuden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilijastuden/subscriptions","organizations_url":"https://api.github.com/users/ilijastuden/orgs","repos_url":"https://api.github.com/users/ilijastuden/repos","events_url":"https://api.github.com/users/ilijastuden/events{/privacy}","received_events_url":"https://api.github.com/users/ilijastuden/received_events","type":"User","site_admin":false},"body":"`trim()` always returns string. If you are going to cast the value, cast it before it enters `trim()`.","created_at":"2015-12-08T13:47:32Z","updated_at":"2015-12-08T13:47:32Z","html_url":"https://github.com/activecollab/EmailReplyExtractor/pull/2#discussion_r46953954","pull_request_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/comments/46953954"},"html":{"href":"https://github.com/activecollab/EmailReplyExtractor/pull/2#discussion_r46953954"},"pull_request":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2","id":52981738,"html_url":"https://github.com/activecollab/EmailReplyExtractor/pull/2","diff_url":"https://github.com/activecollab/EmailReplyExtractor/pull/2.diff","patch_url":"https://github.com/activecollab/EmailReplyExtractor/pull/2.patch","issue_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/issues/2","number":2,"state":"open","locked":false,"title":"Fixes and new parser for old email (eml)  sources.","user":{"login":"srdjanmarjanovic","id":2436525,"avatar_url":"https://avatars.githubusercontent.com/u/2436525?v=3","gravatar_id":"","url":"https://api.github.com/users/srdjanmarjanovic","html_url":"https://github.com/srdjanmarjanovic","followers_url":"https://api.github.com/users/srdjanmarjanovic/followers","following_url":"https://api.github.com/users/srdjanmarjanovic/following{/other_user}","gists_url":"https://api.github.com/users/srdjanmarjanovic/gists{/gist_id}","starred_url":"https://api.github.com/users/srdjanmarjanovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srdjanmarjanovic/subscriptions","organizations_url":"https://api.github.com/users/srdjanmarjanovic/orgs","repos_url":"https://api.github.com/users/srdjanmarjanovic/repos","events_url":"https://api.github.com/users/srdjanmarjanovic/events{/privacy}","received_events_url":"https://api.github.com/users/srdjanmarjanovic/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-08T13:44:18Z","updated_at":"2015-12-08T13:47:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f2679c3a4a4dc97bdba16eb6e39830cef266ca6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2/commits","review_comments_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2/comments","review_comment_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/issues/2/comments","statuses_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/statuses/e9bd9fe800e72a61bf9460aabbff10bb008eb489","head":{"label":"srdjanmarjanovic:impromevent/parsers-and-cleaners-improved","ref":"impromevent/parsers-and-cleaners-improved","sha":"e9bd9fe800e72a61bf9460aabbff10bb008eb489","user":{"login":"srdjanmarjanovic","id":2436525,"avatar_url":"https://avatars.githubusercontent.com/u/2436525?v=3","gravatar_id":"","url":"https://api.github.com/users/srdjanmarjanovic","html_url":"https://github.com/srdjanmarjanovic","followers_url":"https://api.github.com/users/srdjanmarjanovic/followers","following_url":"https://api.github.com/users/srdjanmarjanovic/following{/other_user}","gists_url":"https://api.github.com/users/srdjanmarjanovic/gists{/gist_id}","starred_url":"https://api.github.com/users/srdjanmarjanovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srdjanmarjanovic/subscriptions","organizations_url":"https://api.github.com/users/srdjanmarjanovic/orgs","repos_url":"https://api.github.com/users/srdjanmarjanovic/repos","events_url":"https://api.github.com/users/srdjanmarjanovic/events{/privacy}","received_events_url":"https://api.github.com/users/srdjanmarjanovic/received_events","type":"User","site_admin":false},"repo":{"id":45247270,"name":"EmailReplyExtractor","full_name":"srdjanmarjanovic/EmailReplyExtractor","owner":{"login":"srdjanmarjanovic","id":2436525,"avatar_url":"https://avatars.githubusercontent.com/u/2436525?v=3","gravatar_id":"","url":"https://api.github.com/users/srdjanmarjanovic","html_url":"https://github.com/srdjanmarjanovic","followers_url":"https://api.github.com/users/srdjanmarjanovic/followers","following_url":"https://api.github.com/users/srdjanmarjanovic/following{/other_user}","gists_url":"https://api.github.com/users/srdjanmarjanovic/gists{/gist_id}","starred_url":"https://api.github.com/users/srdjanmarjanovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srdjanmarjanovic/subscriptions","organizations_url":"https://api.github.com/users/srdjanmarjanovic/orgs","repos_url":"https://api.github.com/users/srdjanmarjanovic/repos","events_url":"https://api.github.com/users/srdjanmarjanovic/events{/privacy}","received_events_url":"https://api.github.com/users/srdjanmarjanovic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srdjanmarjanovic/EmailReplyExtractor","description":"Extract reply from email messages","fork":true,"url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor","forks_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/forks","keys_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/teams","hooks_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/hooks","issue_events_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/issues/events{/number}","events_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/events","assignees_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/assignees{/user}","branches_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/branches{/branch}","tags_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/tags","blobs_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/git/refs{/sha}","trees_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/statuses/{sha}","languages_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/languages","stargazers_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/stargazers","contributors_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/contributors","subscribers_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/subscribers","subscription_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/subscription","commits_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/commits{/sha}","git_commits_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/git/commits{/sha}","comments_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/comments{/number}","issue_comment_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/issues/comments{/number}","contents_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/contents/{+path}","compare_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/merges","archive_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/downloads","issues_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/issues{/number}","pulls_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/pulls{/number}","milestones_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/milestones{/number}","notifications_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/labels{/name}","releases_url":"https://api.github.com/repos/srdjanmarjanovic/EmailReplyExtractor/releases{/id}","created_at":"2015-10-30T11:30:13Z","updated_at":"2015-10-30T11:30:14Z","pushed_at":"2015-12-08T12:50:18Z","git_url":"git://github.com/srdjanmarjanovic/EmailReplyExtractor.git","ssh_url":"git@github.com:srdjanmarjanovic/EmailReplyExtractor.git","clone_url":"https://github.com/srdjanmarjanovic/EmailReplyExtractor.git","svn_url":"https://github.com/srdjanmarjanovic/EmailReplyExtractor","homepage":null,"size":37,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"activecollab:master","ref":"master","sha":"5ac0f0bef5604f4b9d6390dc1ce8eba09a0ce2b5","user":{"login":"activecollab","id":2611666,"avatar_url":"https://avatars.githubusercontent.com/u/2611666?v=3","gravatar_id":"","url":"https://api.github.com/users/activecollab","html_url":"https://github.com/activecollab","followers_url":"https://api.github.com/users/activecollab/followers","following_url":"https://api.github.com/users/activecollab/following{/other_user}","gists_url":"https://api.github.com/users/activecollab/gists{/gist_id}","starred_url":"https://api.github.com/users/activecollab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activecollab/subscriptions","organizations_url":"https://api.github.com/users/activecollab/orgs","repos_url":"https://api.github.com/users/activecollab/repos","events_url":"https://api.github.com/users/activecollab/events{/privacy}","received_events_url":"https://api.github.com/users/activecollab/received_events","type":"Organization","site_admin":false},"repo":{"id":34307567,"name":"EmailReplyExtractor","full_name":"activecollab/EmailReplyExtractor","owner":{"login":"activecollab","id":2611666,"avatar_url":"https://avatars.githubusercontent.com/u/2611666?v=3","gravatar_id":"","url":"https://api.github.com/users/activecollab","html_url":"https://github.com/activecollab","followers_url":"https://api.github.com/users/activecollab/followers","following_url":"https://api.github.com/users/activecollab/following{/other_user}","gists_url":"https://api.github.com/users/activecollab/gists{/gist_id}","starred_url":"https://api.github.com/users/activecollab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activecollab/subscriptions","organizations_url":"https://api.github.com/users/activecollab/orgs","repos_url":"https://api.github.com/users/activecollab/repos","events_url":"https://api.github.com/users/activecollab/events{/privacy}","received_events_url":"https://api.github.com/users/activecollab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activecollab/EmailReplyExtractor","description":"Extract reply from email messages","fork":false,"url":"https://api.github.com/repos/activecollab/EmailReplyExtractor","forks_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/forks","keys_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/teams","hooks_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/hooks","issue_events_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/issues/events{/number}","events_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/events","assignees_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/assignees{/user}","branches_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/branches{/branch}","tags_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/tags","blobs_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/git/refs{/sha}","trees_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/statuses/{sha}","languages_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/languages","stargazers_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/stargazers","contributors_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/contributors","subscribers_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/subscribers","subscription_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/subscription","commits_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/commits{/sha}","git_commits_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/git/commits{/sha}","comments_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/comments{/number}","issue_comment_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/issues/comments{/number}","contents_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/contents/{+path}","compare_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/merges","archive_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/downloads","issues_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/issues{/number}","pulls_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls{/number}","milestones_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/milestones{/number}","notifications_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/labels{/name}","releases_url":"https://api.github.com/repos/activecollab/EmailReplyExtractor/releases{/id}","created_at":"2015-04-21T06:00:19Z","updated_at":"2015-11-03T05:24:59Z","pushed_at":"2015-12-08T13:44:19Z","git_url":"git://github.com/activecollab/EmailReplyExtractor.git","ssh_url":"git@github.com:activecollab/EmailReplyExtractor.git","clone_url":"https://github.com/activecollab/EmailReplyExtractor.git","svn_url":"https://github.com/activecollab/EmailReplyExtractor","homepage":null,"size":194,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2"},"html":{"href":"https://github.com/activecollab/EmailReplyExtractor/pull/2"},"issue":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/issues/2"},"comments":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/activecollab/EmailReplyExtractor/statuses/e9bd9fe800e72a61bf9460aabbff10bb008eb489"}}}}