{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/comments/140282603","pull_request_review_id":64332685,"id":140282603,"diff_hunk":"@@ -0,0 +1,24 @@\n+<?php\n+    function renderTemplate($path, $data) {\n+        $path = $_SERVER['DOCUMENT_ROOT'] . $path;\n+        if (!file_exists( $path )) {\n+            return '';\n+        }\n+        ob_start;","path":"functions.php","position":7,"original_position":7,"commit_id":"9f3f118e79116a4982110a2f31c23e1783ad7b9e","original_commit_id":"e76c4994feff934735adf2446f8112f6c6001ebf","user":{"login":"zakirovir6","id":23662798,"avatar_url":"https://avatars1.githubusercontent.com/u/23662798?v=4","gravatar_id":"","url":"https://api.github.com/users/zakirovir6","html_url":"https://github.com/zakirovir6","followers_url":"https://api.github.com/users/zakirovir6/followers","following_url":"https://api.github.com/users/zakirovir6/following{/other_user}","gists_url":"https://api.github.com/users/zakirovir6/gists{/gist_id}","starred_url":"https://api.github.com/users/zakirovir6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakirovir6/subscriptions","organizations_url":"https://api.github.com/users/zakirovir6/orgs","repos_url":"https://api.github.com/users/zakirovir6/repos","events_url":"https://api.github.com/users/zakirovir6/events{/privacy}","received_events_url":"https://api.github.com/users/zakirovir6/received_events","type":"User","site_admin":false},"body":"ob_start - это функция, надо скобки после нее поставить","created_at":"2017-09-21T15:50:05Z","updated_at":"2017-09-21T15:50:05Z","html_url":"https://github.com/htmlacademy-php/211177-doingsdone/pull/8#discussion_r140282603","pull_request_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/comments/140282603"},"html":{"href":"https://github.com/htmlacademy-php/211177-doingsdone/pull/8#discussion_r140282603"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8","id":141715459,"html_url":"https://github.com/htmlacademy-php/211177-doingsdone/pull/8","diff_url":"https://github.com/htmlacademy-php/211177-doingsdone/pull/8.diff","patch_url":"https://github.com/htmlacademy-php/211177-doingsdone/pull/8.patch","issue_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/issues/8","number":8,"state":"open","locked":false,"title":"Шаблонизация проекта","user":{"login":"alisa-pogarskaya","id":20754253,"avatar_url":"https://avatars1.githubusercontent.com/u/20754253?v=4","gravatar_id":"","url":"https://api.github.com/users/alisa-pogarskaya","html_url":"https://github.com/alisa-pogarskaya","followers_url":"https://api.github.com/users/alisa-pogarskaya/followers","following_url":"https://api.github.com/users/alisa-pogarskaya/following{/other_user}","gists_url":"https://api.github.com/users/alisa-pogarskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/alisa-pogarskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisa-pogarskaya/subscriptions","organizations_url":"https://api.github.com/users/alisa-pogarskaya/orgs","repos_url":"https://api.github.com/users/alisa-pogarskaya/repos","events_url":"https://api.github.com/users/alisa-pogarskaya/events{/privacy}","received_events_url":"https://api.github.com/users/alisa-pogarskaya/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Шаблонизация проекта](https://up.htmlacademy.ru/php/2/user/211177/tasks/10)","created_at":"2017-09-18T22:06:06Z","updated_at":"2017-09-21T15:50:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26f61e321837f3968a631f7f645f8e72b4f50536","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/issues/8/comments","statuses_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/statuses/9f3f118e79116a4982110a2f31c23e1783ad7b9e","head":{"label":"alisa-pogarskaya:module3-task1","ref":"module3-task1","sha":"9f3f118e79116a4982110a2f31c23e1783ad7b9e","user":{"login":"alisa-pogarskaya","id":20754253,"avatar_url":"https://avatars1.githubusercontent.com/u/20754253?v=4","gravatar_id":"","url":"https://api.github.com/users/alisa-pogarskaya","html_url":"https://github.com/alisa-pogarskaya","followers_url":"https://api.github.com/users/alisa-pogarskaya/followers","following_url":"https://api.github.com/users/alisa-pogarskaya/following{/other_user}","gists_url":"https://api.github.com/users/alisa-pogarskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/alisa-pogarskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisa-pogarskaya/subscriptions","organizations_url":"https://api.github.com/users/alisa-pogarskaya/orgs","repos_url":"https://api.github.com/users/alisa-pogarskaya/repos","events_url":"https://api.github.com/users/alisa-pogarskaya/events{/privacy}","received_events_url":"https://api.github.com/users/alisa-pogarskaya/received_events","type":"User","site_admin":false},"repo":{"id":101224054,"name":"211177-doingsdone","full_name":"alisa-pogarskaya/211177-doingsdone","owner":{"login":"alisa-pogarskaya","id":20754253,"avatar_url":"https://avatars1.githubusercontent.com/u/20754253?v=4","gravatar_id":"","url":"https://api.github.com/users/alisa-pogarskaya","html_url":"https://github.com/alisa-pogarskaya","followers_url":"https://api.github.com/users/alisa-pogarskaya/followers","following_url":"https://api.github.com/users/alisa-pogarskaya/following{/other_user}","gists_url":"https://api.github.com/users/alisa-pogarskaya/gists{/gist_id}","starred_url":"https://api.github.com/users/alisa-pogarskaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisa-pogarskaya/subscriptions","organizations_url":"https://api.github.com/users/alisa-pogarskaya/orgs","repos_url":"https://api.github.com/users/alisa-pogarskaya/repos","events_url":"https://api.github.com/users/alisa-pogarskaya/events{/privacy}","received_events_url":"https://api.github.com/users/alisa-pogarskaya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alisa-pogarskaya/211177-doingsdone","description":"Алиса Погарская","fork":true,"url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone","forks_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/forks","keys_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/teams","hooks_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/hooks","issue_events_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/issues/events{/number}","events_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/events","assignees_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/assignees{/user}","branches_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/branches{/branch}","tags_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/tags","blobs_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/git/refs{/sha}","trees_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/statuses/{sha}","languages_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/languages","stargazers_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/stargazers","contributors_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/contributors","subscribers_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/subscribers","subscription_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/subscription","commits_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/commits{/sha}","git_commits_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/git/commits{/sha}","comments_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/comments{/number}","issue_comment_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/issues/comments{/number}","contents_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/contents/{+path}","compare_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/merges","archive_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/downloads","issues_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/issues{/number}","pulls_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/pulls{/number}","milestones_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/milestones{/number}","notifications_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/labels{/name}","releases_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/releases{/id}","deployments_url":"https://api.github.com/repos/alisa-pogarskaya/211177-doingsdone/deployments","created_at":"2017-08-23T20:52:36Z","updated_at":"2017-08-23T20:52:37Z","pushed_at":"2017-09-21T15:36:07Z","git_url":"git://github.com/alisa-pogarskaya/211177-doingsdone.git","ssh_url":"git@github.com:alisa-pogarskaya/211177-doingsdone.git","clone_url":"https://github.com/alisa-pogarskaya/211177-doingsdone.git","svn_url":"https://github.com/alisa-pogarskaya/211177-doingsdone","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"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":"htmlacademy-php:master","ref":"master","sha":"2c6c94474557bb89891e91e8db1d48b22195e35d","user":{"login":"htmlacademy-php","id":27206120,"avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"repo":{"id":101095755,"name":"211177-doingsdone","full_name":"htmlacademy-php/211177-doingsdone","owner":{"login":"htmlacademy-php","id":27206120,"avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-php/211177-doingsdone","description":"Алиса Погарская","fork":false,"url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone","forks_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/forks","keys_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/teams","hooks_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/events","assignees_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/tags","blobs_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/subscription","commits_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/merges","archive_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/downloads","issues_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/deployments","created_at":"2017-08-22T18:38:09Z","updated_at":"2017-08-25T19:18:47Z","pushed_at":"2017-09-21T15:36:08Z","git_url":"git://github.com/htmlacademy-php/211177-doingsdone.git","ssh_url":"git@github.com:htmlacademy-php/211177-doingsdone.git","clone_url":"https://github.com/htmlacademy-php/211177-doingsdone.git","svn_url":"https://github.com/htmlacademy-php/211177-doingsdone","homepage":"https://github.com/alisa-pogarskaya/211177-doingsdone","size":142,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8"},"html":{"href":"https://github.com/htmlacademy-php/211177-doingsdone/pull/8"},"issue":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/issues/8"},"comments":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-php/211177-doingsdone/statuses/9f3f118e79116a4982110a2f31c23e1783ad7b9e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zakirovir6"}}