{"action":"created","comment":{"url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/comments/71893357","id":71893357,"diff_hunk":"@@ -101,7 +101,7 @@ public function getInlineStyles(\\DOMElement $element)\n     protected function createDomDocumentFromHtml($html)\n     {\n         $html = trim($html);\n-        if (strstr('<?xml', $html) !== 0) {\n+        if (strpos('<?xml', $html) !== 0) {","path":"src/CssToInlineStyles.php","position":5,"original_position":5,"commit_id":"6cecffe371a19db1eacfc681508f3ff05ba1f894","original_commit_id":"6cecffe371a19db1eacfc681508f3ff05ba1f894","user":{"login":"techi602","id":1529526,"avatar_url":"https://avatars.githubusercontent.com/u/1529526?v=3","gravatar_id":"","url":"https://api.github.com/users/techi602","html_url":"https://github.com/techi602","followers_url":"https://api.github.com/users/techi602/followers","following_url":"https://api.github.com/users/techi602/following{/other_user}","gists_url":"https://api.github.com/users/techi602/gists{/gist_id}","starred_url":"https://api.github.com/users/techi602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techi602/subscriptions","organizations_url":"https://api.github.com/users/techi602/orgs","repos_url":"https://api.github.com/users/techi602/repos","events_url":"https://api.github.com/users/techi602/events{/privacy}","received_events_url":"https://api.github.com/users/techi602/received_events","type":"User","site_admin":false},"body":"unfortunately it is protected method so adding meaningful test is difficult\r\nInitial test was added in previous PR linked in this PR","created_at":"2016-07-22T15:03:05Z","updated_at":"2016-07-22T15:03:05Z","html_url":"https://github.com/tijsverkoyen/CssToInlineStyles/pull/139#discussion_r71893357","pull_request_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/comments/71893357"},"html":{"href":"https://github.com/tijsverkoyen/CssToInlineStyles/pull/139#discussion_r71893357"},"pull_request":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139","id":69475755,"html_url":"https://github.com/tijsverkoyen/CssToInlineStyles/pull/139","diff_url":"https://github.com/tijsverkoyen/CssToInlineStyles/pull/139.diff","patch_url":"https://github.com/tijsverkoyen/CssToInlineStyles/pull/139.patch","issue_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/139","number":139,"state":"open","locked":false,"title":"Detect XML header CssToInlineStyles::createDomDocumentFromHtml()","user":{"login":"techi602","id":1529526,"avatar_url":"https://avatars.githubusercontent.com/u/1529526?v=3","gravatar_id":"","url":"https://api.github.com/users/techi602","html_url":"https://github.com/techi602","followers_url":"https://api.github.com/users/techi602/followers","following_url":"https://api.github.com/users/techi602/following{/other_user}","gists_url":"https://api.github.com/users/techi602/gists{/gist_id}","starred_url":"https://api.github.com/users/techi602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techi602/subscriptions","organizations_url":"https://api.github.com/users/techi602/orgs","repos_url":"https://api.github.com/users/techi602/repos","events_url":"https://api.github.com/users/techi602/events{/privacy}","received_events_url":"https://api.github.com/users/techi602/received_events","type":"User","site_admin":false},"body":"Solve issue with adding xml header twice into DomDocument in #131 \r\n\r\n(Luckily DomDocument will handle two xml headers anyway)\r\n","created_at":"2016-05-10T09:37:36Z","updated_at":"2016-07-22T15:03:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3f036a00eb46804938ba8930cb073706e3641e3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139/commits","review_comments_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139/comments","review_comment_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/139/comments","statuses_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/statuses/6cecffe371a19db1eacfc681508f3ff05ba1f894","head":{"label":"techi602:detect-xml-header-issue","ref":"detect-xml-header-issue","sha":"6cecffe371a19db1eacfc681508f3ff05ba1f894","user":{"login":"techi602","id":1529526,"avatar_url":"https://avatars.githubusercontent.com/u/1529526?v=3","gravatar_id":"","url":"https://api.github.com/users/techi602","html_url":"https://github.com/techi602","followers_url":"https://api.github.com/users/techi602/followers","following_url":"https://api.github.com/users/techi602/following{/other_user}","gists_url":"https://api.github.com/users/techi602/gists{/gist_id}","starred_url":"https://api.github.com/users/techi602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techi602/subscriptions","organizations_url":"https://api.github.com/users/techi602/orgs","repos_url":"https://api.github.com/users/techi602/repos","events_url":"https://api.github.com/users/techi602/events{/privacy}","received_events_url":"https://api.github.com/users/techi602/received_events","type":"User","site_admin":false},"repo":{"id":55076462,"name":"CssToInlineStyles","full_name":"techi602/CssToInlineStyles","owner":{"login":"techi602","id":1529526,"avatar_url":"https://avatars.githubusercontent.com/u/1529526?v=3","gravatar_id":"","url":"https://api.github.com/users/techi602","html_url":"https://github.com/techi602","followers_url":"https://api.github.com/users/techi602/followers","following_url":"https://api.github.com/users/techi602/following{/other_user}","gists_url":"https://api.github.com/users/techi602/gists{/gist_id}","starred_url":"https://api.github.com/users/techi602/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techi602/subscriptions","organizations_url":"https://api.github.com/users/techi602/orgs","repos_url":"https://api.github.com/users/techi602/repos","events_url":"https://api.github.com/users/techi602/events{/privacy}","received_events_url":"https://api.github.com/users/techi602/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techi602/CssToInlineStyles","description":"CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails.","fork":true,"url":"https://api.github.com/repos/techi602/CssToInlineStyles","forks_url":"https://api.github.com/repos/techi602/CssToInlineStyles/forks","keys_url":"https://api.github.com/repos/techi602/CssToInlineStyles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techi602/CssToInlineStyles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techi602/CssToInlineStyles/teams","hooks_url":"https://api.github.com/repos/techi602/CssToInlineStyles/hooks","issue_events_url":"https://api.github.com/repos/techi602/CssToInlineStyles/issues/events{/number}","events_url":"https://api.github.com/repos/techi602/CssToInlineStyles/events","assignees_url":"https://api.github.com/repos/techi602/CssToInlineStyles/assignees{/user}","branches_url":"https://api.github.com/repos/techi602/CssToInlineStyles/branches{/branch}","tags_url":"https://api.github.com/repos/techi602/CssToInlineStyles/tags","blobs_url":"https://api.github.com/repos/techi602/CssToInlineStyles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techi602/CssToInlineStyles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techi602/CssToInlineStyles/git/refs{/sha}","trees_url":"https://api.github.com/repos/techi602/CssToInlineStyles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techi602/CssToInlineStyles/statuses/{sha}","languages_url":"https://api.github.com/repos/techi602/CssToInlineStyles/languages","stargazers_url":"https://api.github.com/repos/techi602/CssToInlineStyles/stargazers","contributors_url":"https://api.github.com/repos/techi602/CssToInlineStyles/contributors","subscribers_url":"https://api.github.com/repos/techi602/CssToInlineStyles/subscribers","subscription_url":"https://api.github.com/repos/techi602/CssToInlineStyles/subscription","commits_url":"https://api.github.com/repos/techi602/CssToInlineStyles/commits{/sha}","git_commits_url":"https://api.github.com/repos/techi602/CssToInlineStyles/git/commits{/sha}","comments_url":"https://api.github.com/repos/techi602/CssToInlineStyles/comments{/number}","issue_comment_url":"https://api.github.com/repos/techi602/CssToInlineStyles/issues/comments{/number}","contents_url":"https://api.github.com/repos/techi602/CssToInlineStyles/contents/{+path}","compare_url":"https://api.github.com/repos/techi602/CssToInlineStyles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techi602/CssToInlineStyles/merges","archive_url":"https://api.github.com/repos/techi602/CssToInlineStyles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techi602/CssToInlineStyles/downloads","issues_url":"https://api.github.com/repos/techi602/CssToInlineStyles/issues{/number}","pulls_url":"https://api.github.com/repos/techi602/CssToInlineStyles/pulls{/number}","milestones_url":"https://api.github.com/repos/techi602/CssToInlineStyles/milestones{/number}","notifications_url":"https://api.github.com/repos/techi602/CssToInlineStyles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techi602/CssToInlineStyles/labels{/name}","releases_url":"https://api.github.com/repos/techi602/CssToInlineStyles/releases{/id}","deployments_url":"https://api.github.com/repos/techi602/CssToInlineStyles/deployments","created_at":"2016-03-30T15:52:32Z","updated_at":"2016-03-30T15:52:33Z","pushed_at":"2016-07-22T14:53:14Z","git_url":"git://github.com/techi602/CssToInlineStyles.git","ssh_url":"git@github.com:techi602/CssToInlineStyles.git","clone_url":"https://github.com/techi602/CssToInlineStyles.git","svn_url":"https://github.com/techi602/CssToInlineStyles","homepage":"","size":144,"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":"tijsverkoyen:master","ref":"master","sha":"2ebaccb969012fd8c8966b74d3716b9a44917119","user":{"login":"tijsverkoyen","id":250042,"avatar_url":"https://avatars.githubusercontent.com/u/250042?v=3","gravatar_id":"","url":"https://api.github.com/users/tijsverkoyen","html_url":"https://github.com/tijsverkoyen","followers_url":"https://api.github.com/users/tijsverkoyen/followers","following_url":"https://api.github.com/users/tijsverkoyen/following{/other_user}","gists_url":"https://api.github.com/users/tijsverkoyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tijsverkoyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijsverkoyen/subscriptions","organizations_url":"https://api.github.com/users/tijsverkoyen/orgs","repos_url":"https://api.github.com/users/tijsverkoyen/repos","events_url":"https://api.github.com/users/tijsverkoyen/events{/privacy}","received_events_url":"https://api.github.com/users/tijsverkoyen/received_events","type":"User","site_admin":false},"repo":{"id":1023607,"name":"CssToInlineStyles","full_name":"tijsverkoyen/CssToInlineStyles","owner":{"login":"tijsverkoyen","id":250042,"avatar_url":"https://avatars.githubusercontent.com/u/250042?v=3","gravatar_id":"","url":"https://api.github.com/users/tijsverkoyen","html_url":"https://github.com/tijsverkoyen","followers_url":"https://api.github.com/users/tijsverkoyen/followers","following_url":"https://api.github.com/users/tijsverkoyen/following{/other_user}","gists_url":"https://api.github.com/users/tijsverkoyen/gists{/gist_id}","starred_url":"https://api.github.com/users/tijsverkoyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijsverkoyen/subscriptions","organizations_url":"https://api.github.com/users/tijsverkoyen/orgs","repos_url":"https://api.github.com/users/tijsverkoyen/repos","events_url":"https://api.github.com/users/tijsverkoyen/events{/privacy}","received_events_url":"https://api.github.com/users/tijsverkoyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tijsverkoyen/CssToInlineStyles","description":"CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails.","fork":false,"url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles","forks_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/forks","keys_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/teams","hooks_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/hooks","issue_events_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/events{/number}","events_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/events","assignees_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/assignees{/user}","branches_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/branches{/branch}","tags_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/tags","blobs_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/git/refs{/sha}","trees_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/statuses/{sha}","languages_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/languages","stargazers_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/stargazers","contributors_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/contributors","subscribers_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/subscribers","subscription_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/subscription","commits_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/commits{/sha}","git_commits_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/git/commits{/sha}","comments_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/comments{/number}","issue_comment_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/comments{/number}","contents_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/contents/{+path}","compare_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/merges","archive_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/downloads","issues_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues{/number}","pulls_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls{/number}","milestones_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/milestones{/number}","notifications_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/labels{/name}","releases_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/releases{/id}","deployments_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/deployments","created_at":"2010-10-25T21:12:37Z","updated_at":"2016-07-22T14:01:02Z","pushed_at":"2016-07-22T14:53:14Z","git_url":"git://github.com/tijsverkoyen/CssToInlineStyles.git","ssh_url":"git@github.com:tijsverkoyen/CssToInlineStyles.git","clone_url":"https://github.com/tijsverkoyen/CssToInlineStyles.git","svn_url":"https://github.com/tijsverkoyen/CssToInlineStyles","homepage":"","size":329,"stargazers_count":655,"watchers_count":655,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":null,"open_issues_count":17,"forks":115,"open_issues":17,"watchers":655,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139"},"html":{"href":"https://github.com/tijsverkoyen/CssToInlineStyles/pull/139"},"issue":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/139"},"comments":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/statuses/6cecffe371a19db1eacfc681508f3ff05ba1f894"}}}}
{"actor":{"display_login":"techi602"}}