{"action":"created","comment":{"url":"https://api.github.com/repos/Folganoid/FGframe/pulls/comments/106979608","pull_request_review_id":27927279,"id":106979608,"diff_hunk":"@@ -0,0 +1,96 @@\n+<?php\n+\n+namespace Fg\\Frame\\Request;\n+/**\n+ * Class Request - singleton\n+ * @package Fg\\Frame\\Request\n+ */\n+class Request\n+{\n+    private static $request = null;\n+    public static $URI;\n+\n+    /**\n+     * Request constructor.\n+     */\n+    private function __construct()\n+    {\n+        self::$URI = $_SERVER[\"REQUEST_URI\"];\n+    }\n+\n+    /**\n+     * Returns request\n+     *\n+     * @return Request\n+     */\n+    public static function getRequest(): self\n+    {\n+        if (!self::$request) {\n+            self::$request = new self();\n+        }\n+\n+        return self::$request;\n+    }\n+\n+    private function __clone()\n+    {\n+    }\n+\n+    private function __sleep()\n+    {\n+    }\n+\n+    private function __wakeup()\n+    {\n+    }\n+\n+\n+    /**\n+     * Get current URI\n+     *\n+     * @return string\n+     */\n+    public function getUri(): string\n+    {\n+        if ((substr(self::$URI, -1) == \"/\") AND strlen(self::$URI) > 1) {\n+            $result = substr(self::$URI, 0, -1);\n+        } else $result = self::$URI;\n+\n+        if (strpos($result, \"?\")) {\n+            return substr($result, 0, strpos($result, \"?\"));\n+        } else return $result;\n+\n+    }\n+\n+    /**\n+     * Get current request method\n+     *\n+     * @return string\n+     */\n+    public function getMethod(): string\n+    {\n+        return $_SERVER[\"REQUEST_METHOD\"];\n+    }\n+\n+    /**\n+     * Get enhanced params from URI\n+     *\n+     * @return array\n+     */\n+    public function getUriParams(): array\n+    {","path":"src/Request/Request.php","position":81,"original_position":81,"commit_id":"0b13e4bdc7ffc8702c8a46c97985a63abb633726","original_commit_id":"0b13e4bdc7ffc8702c8a46c97985a63abb633726","user":{"login":"Folganoid","id":21035585,"avatar_url":"https://avatars3.githubusercontent.com/u/21035585?v=3","gravatar_id":"","url":"https://api.github.com/users/Folganoid","html_url":"https://github.com/Folganoid","followers_url":"https://api.github.com/users/Folganoid/followers","following_url":"https://api.github.com/users/Folganoid/following{/other_user}","gists_url":"https://api.github.com/users/Folganoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Folganoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Folganoid/subscriptions","organizations_url":"https://api.github.com/users/Folganoid/orgs","repos_url":"https://api.github.com/users/Folganoid/repos","events_url":"https://api.github.com/users/Folganoid/events{/privacy}","received_events_url":"https://api.github.com/users/Folganoid/received_events","type":"User","site_admin":false},"body":"Да, кривовато. Переделаем :)","created_at":"2017-03-20T18:26:07Z","updated_at":"2017-03-20T18:26:07Z","html_url":"https://github.com/Folganoid/FGframe/pull/1#discussion_r106979608","pull_request_url":"https://api.github.com/repos/Folganoid/FGframe/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/Folganoid/FGframe/pulls/comments/106979608"},"html":{"href":"https://github.com/Folganoid/FGframe/pull/1#discussion_r106979608"},"pull_request":{"href":"https://api.github.com/repos/Folganoid/FGframe/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Folganoid/FGframe/pulls/1","id":111447241,"html_url":"https://github.com/Folganoid/FGframe/pull/1","diff_url":"https://github.com/Folganoid/FGframe/pull/1.diff","patch_url":"https://github.com/Folganoid/FGframe/pull/1.patch","issue_url":"https://api.github.com/repos/Folganoid/FGframe/issues/1","number":1,"state":"closed","locked":false,"title":"Waiting for examination","user":{"login":"Folganoid","id":21035585,"avatar_url":"https://avatars3.githubusercontent.com/u/21035585?v=3","gravatar_id":"","url":"https://api.github.com/users/Folganoid","html_url":"https://github.com/Folganoid","followers_url":"https://api.github.com/users/Folganoid/followers","following_url":"https://api.github.com/users/Folganoid/following{/other_user}","gists_url":"https://api.github.com/users/Folganoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Folganoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Folganoid/subscriptions","organizations_url":"https://api.github.com/users/Folganoid/orgs","repos_url":"https://api.github.com/users/Folganoid/repos","events_url":"https://api.github.com/users/Folganoid/events{/privacy}","received_events_url":"https://api.github.com/users/Folganoid/received_events","type":"User","site_admin":false},"body":"-","created_at":"2017-03-19T11:59:55Z","updated_at":"2017-03-20T18:26:07Z","closed_at":"2017-03-20T18:15:19Z","merged_at":"2017-03-20T18:15:19Z","merge_commit_sha":"0b13e4bdc7ffc8702c8a46c97985a63abb633726","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Folganoid/FGframe/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Folganoid/FGframe/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Folganoid/FGframe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Folganoid/FGframe/issues/1/comments","statuses_url":"https://api.github.com/repos/Folganoid/FGframe/statuses/0b13e4bdc7ffc8702c8a46c97985a63abb633726","head":{"label":"Folganoid:dev","ref":"dev","sha":"0b13e4bdc7ffc8702c8a46c97985a63abb633726","user":{"login":"Folganoid","id":21035585,"avatar_url":"https://avatars3.githubusercontent.com/u/21035585?v=3","gravatar_id":"","url":"https://api.github.com/users/Folganoid","html_url":"https://github.com/Folganoid","followers_url":"https://api.github.com/users/Folganoid/followers","following_url":"https://api.github.com/users/Folganoid/following{/other_user}","gists_url":"https://api.github.com/users/Folganoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Folganoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Folganoid/subscriptions","organizations_url":"https://api.github.com/users/Folganoid/orgs","repos_url":"https://api.github.com/users/Folganoid/repos","events_url":"https://api.github.com/users/Folganoid/events{/privacy}","received_events_url":"https://api.github.com/users/Folganoid/received_events","type":"User","site_admin":false},"repo":{"id":84560067,"name":"FGframe","full_name":"Folganoid/FGframe","owner":{"login":"Folganoid","id":21035585,"avatar_url":"https://avatars3.githubusercontent.com/u/21035585?v=3","gravatar_id":"","url":"https://api.github.com/users/Folganoid","html_url":"https://github.com/Folganoid","followers_url":"https://api.github.com/users/Folganoid/followers","following_url":"https://api.github.com/users/Folganoid/following{/other_user}","gists_url":"https://api.github.com/users/Folganoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Folganoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Folganoid/subscriptions","organizations_url":"https://api.github.com/users/Folganoid/orgs","repos_url":"https://api.github.com/users/Folganoid/repos","events_url":"https://api.github.com/users/Folganoid/events{/privacy}","received_events_url":"https://api.github.com/users/Folganoid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Folganoid/FGframe","description":null,"fork":false,"url":"https://api.github.com/repos/Folganoid/FGframe","forks_url":"https://api.github.com/repos/Folganoid/FGframe/forks","keys_url":"https://api.github.com/repos/Folganoid/FGframe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Folganoid/FGframe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Folganoid/FGframe/teams","hooks_url":"https://api.github.com/repos/Folganoid/FGframe/hooks","issue_events_url":"https://api.github.com/repos/Folganoid/FGframe/issues/events{/number}","events_url":"https://api.github.com/repos/Folganoid/FGframe/events","assignees_url":"https://api.github.com/repos/Folganoid/FGframe/assignees{/user}","branches_url":"https://api.github.com/repos/Folganoid/FGframe/branches{/branch}","tags_url":"https://api.github.com/repos/Folganoid/FGframe/tags","blobs_url":"https://api.github.com/repos/Folganoid/FGframe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Folganoid/FGframe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Folganoid/FGframe/git/refs{/sha}","trees_url":"https://api.github.com/repos/Folganoid/FGframe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Folganoid/FGframe/statuses/{sha}","languages_url":"https://api.github.com/repos/Folganoid/FGframe/languages","stargazers_url":"https://api.github.com/repos/Folganoid/FGframe/stargazers","contributors_url":"https://api.github.com/repos/Folganoid/FGframe/contributors","subscribers_url":"https://api.github.com/repos/Folganoid/FGframe/subscribers","subscription_url":"https://api.github.com/repos/Folganoid/FGframe/subscription","commits_url":"https://api.github.com/repos/Folganoid/FGframe/commits{/sha}","git_commits_url":"https://api.github.com/repos/Folganoid/FGframe/git/commits{/sha}","comments_url":"https://api.github.com/repos/Folganoid/FGframe/comments{/number}","issue_comment_url":"https://api.github.com/repos/Folganoid/FGframe/issues/comments{/number}","contents_url":"https://api.github.com/repos/Folganoid/FGframe/contents/{+path}","compare_url":"https://api.github.com/repos/Folganoid/FGframe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Folganoid/FGframe/merges","archive_url":"https://api.github.com/repos/Folganoid/FGframe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Folganoid/FGframe/downloads","issues_url":"https://api.github.com/repos/Folganoid/FGframe/issues{/number}","pulls_url":"https://api.github.com/repos/Folganoid/FGframe/pulls{/number}","milestones_url":"https://api.github.com/repos/Folganoid/FGframe/milestones{/number}","notifications_url":"https://api.github.com/repos/Folganoid/FGframe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Folganoid/FGframe/labels{/name}","releases_url":"https://api.github.com/repos/Folganoid/FGframe/releases{/id}","deployments_url":"https://api.github.com/repos/Folganoid/FGframe/deployments","created_at":"2017-03-10T12:56:46Z","updated_at":"2017-03-10T13:17:52Z","pushed_at":"2017-03-20T18:15:18Z","git_url":"git://github.com/Folganoid/FGframe.git","ssh_url":"git@github.com:Folganoid/FGframe.git","clone_url":"https://github.com/Folganoid/FGframe.git","svn_url":"https://github.com/Folganoid/FGframe","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"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":"Folganoid:master","ref":"master","sha":"2bcae724b28aae2e6f2d5adac2570fdb9872c7ce","user":{"login":"Folganoid","id":21035585,"avatar_url":"https://avatars3.githubusercontent.com/u/21035585?v=3","gravatar_id":"","url":"https://api.github.com/users/Folganoid","html_url":"https://github.com/Folganoid","followers_url":"https://api.github.com/users/Folganoid/followers","following_url":"https://api.github.com/users/Folganoid/following{/other_user}","gists_url":"https://api.github.com/users/Folganoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Folganoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Folganoid/subscriptions","organizations_url":"https://api.github.com/users/Folganoid/orgs","repos_url":"https://api.github.com/users/Folganoid/repos","events_url":"https://api.github.com/users/Folganoid/events{/privacy}","received_events_url":"https://api.github.com/users/Folganoid/received_events","type":"User","site_admin":false},"repo":{"id":84560067,"name":"FGframe","full_name":"Folganoid/FGframe","owner":{"login":"Folganoid","id":21035585,"avatar_url":"https://avatars3.githubusercontent.com/u/21035585?v=3","gravatar_id":"","url":"https://api.github.com/users/Folganoid","html_url":"https://github.com/Folganoid","followers_url":"https://api.github.com/users/Folganoid/followers","following_url":"https://api.github.com/users/Folganoid/following{/other_user}","gists_url":"https://api.github.com/users/Folganoid/gists{/gist_id}","starred_url":"https://api.github.com/users/Folganoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Folganoid/subscriptions","organizations_url":"https://api.github.com/users/Folganoid/orgs","repos_url":"https://api.github.com/users/Folganoid/repos","events_url":"https://api.github.com/users/Folganoid/events{/privacy}","received_events_url":"https://api.github.com/users/Folganoid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Folganoid/FGframe","description":null,"fork":false,"url":"https://api.github.com/repos/Folganoid/FGframe","forks_url":"https://api.github.com/repos/Folganoid/FGframe/forks","keys_url":"https://api.github.com/repos/Folganoid/FGframe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Folganoid/FGframe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Folganoid/FGframe/teams","hooks_url":"https://api.github.com/repos/Folganoid/FGframe/hooks","issue_events_url":"https://api.github.com/repos/Folganoid/FGframe/issues/events{/number}","events_url":"https://api.github.com/repos/Folganoid/FGframe/events","assignees_url":"https://api.github.com/repos/Folganoid/FGframe/assignees{/user}","branches_url":"https://api.github.com/repos/Folganoid/FGframe/branches{/branch}","tags_url":"https://api.github.com/repos/Folganoid/FGframe/tags","blobs_url":"https://api.github.com/repos/Folganoid/FGframe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Folganoid/FGframe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Folganoid/FGframe/git/refs{/sha}","trees_url":"https://api.github.com/repos/Folganoid/FGframe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Folganoid/FGframe/statuses/{sha}","languages_url":"https://api.github.com/repos/Folganoid/FGframe/languages","stargazers_url":"https://api.github.com/repos/Folganoid/FGframe/stargazers","contributors_url":"https://api.github.com/repos/Folganoid/FGframe/contributors","subscribers_url":"https://api.github.com/repos/Folganoid/FGframe/subscribers","subscription_url":"https://api.github.com/repos/Folganoid/FGframe/subscription","commits_url":"https://api.github.com/repos/Folganoid/FGframe/commits{/sha}","git_commits_url":"https://api.github.com/repos/Folganoid/FGframe/git/commits{/sha}","comments_url":"https://api.github.com/repos/Folganoid/FGframe/comments{/number}","issue_comment_url":"https://api.github.com/repos/Folganoid/FGframe/issues/comments{/number}","contents_url":"https://api.github.com/repos/Folganoid/FGframe/contents/{+path}","compare_url":"https://api.github.com/repos/Folganoid/FGframe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Folganoid/FGframe/merges","archive_url":"https://api.github.com/repos/Folganoid/FGframe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Folganoid/FGframe/downloads","issues_url":"https://api.github.com/repos/Folganoid/FGframe/issues{/number}","pulls_url":"https://api.github.com/repos/Folganoid/FGframe/pulls{/number}","milestones_url":"https://api.github.com/repos/Folganoid/FGframe/milestones{/number}","notifications_url":"https://api.github.com/repos/Folganoid/FGframe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Folganoid/FGframe/labels{/name}","releases_url":"https://api.github.com/repos/Folganoid/FGframe/releases{/id}","deployments_url":"https://api.github.com/repos/Folganoid/FGframe/deployments","created_at":"2017-03-10T12:56:46Z","updated_at":"2017-03-10T13:17:52Z","pushed_at":"2017-03-20T18:15:18Z","git_url":"git://github.com/Folganoid/FGframe.git","ssh_url":"git@github.com:Folganoid/FGframe.git","clone_url":"https://github.com/Folganoid/FGframe.git","svn_url":"https://github.com/Folganoid/FGframe","homepage":null,"size":14,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Folganoid/FGframe/pulls/1"},"html":{"href":"https://github.com/Folganoid/FGframe/pull/1"},"issue":{"href":"https://api.github.com/repos/Folganoid/FGframe/issues/1"},"comments":{"href":"https://api.github.com/repos/Folganoid/FGframe/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Folganoid/FGframe/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Folganoid/FGframe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Folganoid/FGframe/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Folganoid/FGframe/statuses/0b13e4bdc7ffc8702c8a46c97985a63abb633726"}}}}
{"actor":{"display_login":"Folganoid"}}