{"action":"created","issue":{"url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/136","repository_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles","labels_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/136/comments","events_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/136/events","html_url":"https://github.com/tijsverkoyen/CssToInlineStyles/issues/136","id":148721132,"number":136,"title":"Documentation mistake","user":{"login":"malakana","id":8103223,"avatar_url":"https://avatars.githubusercontent.com/u/8103223?v=3","gravatar_id":"","url":"https://api.github.com/users/malakana","html_url":"https://github.com/malakana","followers_url":"https://api.github.com/users/malakana/followers","following_url":"https://api.github.com/users/malakana/following{/other_user}","gists_url":"https://api.github.com/users/malakana/gists{/gist_id}","starred_url":"https://api.github.com/users/malakana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malakana/subscriptions","organizations_url":"https://api.github.com/users/malakana/orgs","repos_url":"https://api.github.com/users/malakana/repos","events_url":"https://api.github.com/users/malakana/events{/privacy}","received_events_url":"https://api.github.com/users/malakana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-15T17:34:19Z","updated_at":"2016-04-22T10:01:45Z","closed_at":null,"body":"In the example given, $html and $css are parameters in the convert method not in the construct method"},"comment":{"url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/comments/213364927","html_url":"https://github.com/tijsverkoyen/CssToInlineStyles/issues/136#issuecomment-213364927","issue_url":"https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/issues/136","id":213364927,"user":{"login":"TomCorvus","id":3451011,"avatar_url":"https://avatars.githubusercontent.com/u/3451011?v=3","gravatar_id":"","url":"https://api.github.com/users/TomCorvus","html_url":"https://github.com/TomCorvus","followers_url":"https://api.github.com/users/TomCorvus/followers","following_url":"https://api.github.com/users/TomCorvus/following{/other_user}","gists_url":"https://api.github.com/users/TomCorvus/gists{/gist_id}","starred_url":"https://api.github.com/users/TomCorvus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomCorvus/subscriptions","organizations_url":"https://api.github.com/users/TomCorvus/orgs","repos_url":"https://api.github.com/users/TomCorvus/repos","events_url":"https://api.github.com/users/TomCorvus/events{/privacy}","received_events_url":"https://api.github.com/users/TomCorvus/received_events","type":"User","site_admin":false},"created_at":"2016-04-22T10:01:45Z","updated_at":"2016-04-22T10:01:45Z","body":"It should look like this:\r\n\r\n`use TijsVerkoyen\\CssToInlineStyles\\CssToInlineStyles;\r\n\r\n$html = file_get_contents(__DIR__ . '/examples/sumo/index.htm');\r\n$css = file_get_contents(__DIR__ . '/examples/sumo/style.css');\r\n\r\n// create instance\r\n$cssToInlineStyles = new CssToInlineStyles($html, $css);\r\n\r\n// output\r\necho $cssToInlineStyles->convert();`"}}