{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/comments/138592117","pull_request_review_id":62404354,"id":138592117,"diff_hunk":"@@ -0,0 +1,10 @@\n+<?php\n+\n+function renderTemplate($path, $dateArray = array()) {\n+    if (file_exists('templates/' . $path . '.php')) {\n+        ob_start();\n+        extract($dateArray);\n+        require 'templates/' . $path . '.php';\n+        return ob_get_clean();\n+    }","path":"functions.php","position":9,"original_position":9,"commit_id":"233573c27c4e1ae9963d06e8937df3389642524e","original_commit_id":"233573c27c4e1ae9963d06e8937df3389642524e","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":"если файл не найден, надо возвращать пустую строчку","created_at":"2017-09-13T11:25:23Z","updated_at":"2017-09-13T11:44:48Z","html_url":"https://github.com/htmlacademy-php/49571-doingsdone/pull/6#discussion_r138592117","pull_request_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/comments/138592117"},"html":{"href":"https://github.com/htmlacademy-php/49571-doingsdone/pull/6#discussion_r138592117"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6","id":140797573,"html_url":"https://github.com/htmlacademy-php/49571-doingsdone/pull/6","diff_url":"https://github.com/htmlacademy-php/49571-doingsdone/pull/6.diff","patch_url":"https://github.com/htmlacademy-php/49571-doingsdone/pull/6.patch","issue_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/issues/6","number":6,"state":"open","locked":false,"title":"Шаблонизация","user":{"login":"Leuchtkafer","id":13857900,"avatar_url":"https://avatars3.githubusercontent.com/u/13857900?v=4","gravatar_id":"","url":"https://api.github.com/users/Leuchtkafer","html_url":"https://github.com/Leuchtkafer","followers_url":"https://api.github.com/users/Leuchtkafer/followers","following_url":"https://api.github.com/users/Leuchtkafer/following{/other_user}","gists_url":"https://api.github.com/users/Leuchtkafer/gists{/gist_id}","starred_url":"https://api.github.com/users/Leuchtkafer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leuchtkafer/subscriptions","organizations_url":"https://api.github.com/users/Leuchtkafer/orgs","repos_url":"https://api.github.com/users/Leuchtkafer/repos","events_url":"https://api.github.com/users/Leuchtkafer/events{/privacy}","received_events_url":"https://api.github.com/users/Leuchtkafer/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-13T11:17:27Z","updated_at":"2017-09-13T11:44:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ed07827e05da35f1a61d1e4d29d8279c9456739","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/issues/6/comments","statuses_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/statuses/233573c27c4e1ae9963d06e8937df3389642524e","head":{"label":"Leuchtkafer:module3-task1","ref":"module3-task1","sha":"233573c27c4e1ae9963d06e8937df3389642524e","user":{"login":"Leuchtkafer","id":13857900,"avatar_url":"https://avatars3.githubusercontent.com/u/13857900?v=4","gravatar_id":"","url":"https://api.github.com/users/Leuchtkafer","html_url":"https://github.com/Leuchtkafer","followers_url":"https://api.github.com/users/Leuchtkafer/followers","following_url":"https://api.github.com/users/Leuchtkafer/following{/other_user}","gists_url":"https://api.github.com/users/Leuchtkafer/gists{/gist_id}","starred_url":"https://api.github.com/users/Leuchtkafer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leuchtkafer/subscriptions","organizations_url":"https://api.github.com/users/Leuchtkafer/orgs","repos_url":"https://api.github.com/users/Leuchtkafer/repos","events_url":"https://api.github.com/users/Leuchtkafer/events{/privacy}","received_events_url":"https://api.github.com/users/Leuchtkafer/received_events","type":"User","site_admin":false},"repo":{"id":101560551,"name":"49571-doingsdone","full_name":"Leuchtkafer/49571-doingsdone","owner":{"login":"Leuchtkafer","id":13857900,"avatar_url":"https://avatars3.githubusercontent.com/u/13857900?v=4","gravatar_id":"","url":"https://api.github.com/users/Leuchtkafer","html_url":"https://github.com/Leuchtkafer","followers_url":"https://api.github.com/users/Leuchtkafer/followers","following_url":"https://api.github.com/users/Leuchtkafer/following{/other_user}","gists_url":"https://api.github.com/users/Leuchtkafer/gists{/gist_id}","starred_url":"https://api.github.com/users/Leuchtkafer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Leuchtkafer/subscriptions","organizations_url":"https://api.github.com/users/Leuchtkafer/orgs","repos_url":"https://api.github.com/users/Leuchtkafer/repos","events_url":"https://api.github.com/users/Leuchtkafer/events{/privacy}","received_events_url":"https://api.github.com/users/Leuchtkafer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Leuchtkafer/49571-doingsdone","description":"Mariya Chernova","fork":true,"url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone","forks_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/forks","keys_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/teams","hooks_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/hooks","issue_events_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/issues/events{/number}","events_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/events","assignees_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/assignees{/user}","branches_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/branches{/branch}","tags_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/tags","blobs_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/statuses/{sha}","languages_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/languages","stargazers_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/stargazers","contributors_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/contributors","subscribers_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/subscribers","subscription_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/subscription","commits_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/contents/{+path}","compare_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/merges","archive_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/downloads","issues_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/issues{/number}","pulls_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/pulls{/number}","milestones_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/milestones{/number}","notifications_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/labels{/name}","releases_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/releases{/id}","deployments_url":"https://api.github.com/repos/Leuchtkafer/49571-doingsdone/deployments","created_at":"2017-08-27T15:10:47Z","updated_at":"2017-08-27T15:10:48Z","pushed_at":"2017-09-13T11:11:46Z","git_url":"git://github.com/Leuchtkafer/49571-doingsdone.git","ssh_url":"git@github.com:Leuchtkafer/49571-doingsdone.git","clone_url":"https://github.com/Leuchtkafer/49571-doingsdone.git","svn_url":"https://github.com/Leuchtkafer/49571-doingsdone","homepage":null,"size":173,"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":"b14ee84961c023f27702273c048645327f946a6a","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":101223312,"name":"49571-doingsdone","full_name":"htmlacademy-php/49571-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/49571-doingsdone","description":"Mariya Chernova","fork":false,"url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone","forks_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/forks","keys_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/teams","hooks_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/events","assignees_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/tags","blobs_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/subscription","commits_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/merges","archive_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/downloads","issues_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/deployments","created_at":"2017-08-23T20:43:22Z","updated_at":"2017-08-27T19:18:23Z","pushed_at":"2017-09-13T11:17:27Z","git_url":"git://github.com/htmlacademy-php/49571-doingsdone.git","ssh_url":"git@github.com:htmlacademy-php/49571-doingsdone.git","clone_url":"https://github.com/htmlacademy-php/49571-doingsdone.git","svn_url":"https://github.com/htmlacademy-php/49571-doingsdone","homepage":"https://github.com/Leuchtkafer/49571-doingsdone","size":173,"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":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6"},"html":{"href":"https://github.com/htmlacademy-php/49571-doingsdone/pull/6"},"issue":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/issues/6"},"comments":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-php/49571-doingsdone/statuses/233573c27c4e1ae9963d06e8937df3389642524e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zakirovir6"}}