{"action":"created","comment":{"url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/comments/47441114","id":47441114,"diff_hunk":"@@ -0,0 +1,58 @@\n+<?php\n+if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly\n+/**\n+ * WordPress theme singleton class.\n+ *\n+ * @package WordPress\n+ * @subpackage VisuAlive\n+ * @author KUCKLU <kuck1u@visualive.jp>\n+ *\n+ *\n+ * Copyright (C) 2015  KUCKLU and VisuAlive.\n+ *\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation; either version 2 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License along\n+ * with this program; if not, write to the Free Software Foundation, Inc.,\n+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n+ *\n+ * It is also available through the world-wide-web at this URL:\n+ * http://www.gnu.org/licenses/gpl-2.0.txt\n+ */\n+\n+abstract class VISUALIVE_SINGLETON {\n+\t/**\n+\t * Holds the singleton instance of this class\n+\t *\n+\t * @var array\n+\t */\n+\tprivate static $instances = array();\n+\n+\t/**\n+\t * Instance\n+\t *\n+\t * @param  array $settings\n+\t * @return self\n+\t */\n+\tpublic static function instance( $settings = array() ){\n+\t\t$class_name = get_called_class();\n+\t\tif( !isset( self::$instances[$class_name] ) ) {\n+\t\t\tself::$instances[$class_name] = new $class_name( $settings );\n+\t\t}\n+\n+\t\treturn self::$instances[$class_name];\n+\t}\n+\n+\t/**","path":"inc/class-singleton.php","position":54,"original_position":54,"commit_id":"a0ccd011d0c59bd7761d688d5d727b18e211c0fc","original_commit_id":"a0ccd011d0c59bd7761d688d5d727b18e211c0fc","user":{"login":"kuck1u","id":7222225,"avatar_url":"https://avatars.githubusercontent.com/u/7222225?v=3","gravatar_id":"","url":"https://api.github.com/users/kuck1u","html_url":"https://github.com/kuck1u","followers_url":"https://api.github.com/users/kuck1u/followers","following_url":"https://api.github.com/users/kuck1u/following{/other_user}","gists_url":"https://api.github.com/users/kuck1u/gists{/gist_id}","starred_url":"https://api.github.com/users/kuck1u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuck1u/subscriptions","organizations_url":"https://api.github.com/users/kuck1u/orgs","repos_url":"https://api.github.com/users/kuck1u/repos","events_url":"https://api.github.com/users/kuck1u/events{/privacy}","received_events_url":"https://api.github.com/users/kuck1u/received_events","type":"User","site_admin":false},"body":"__[code_sniffer]__\n* Doc comment for parameter \"$settings\" missing","created_at":"2015-12-13T06:39:03Z","updated_at":"2015-12-13T06:39:03Z","html_url":"https://github.com/kuck1u/cherryblossom/pull/1#discussion_r47441114","pull_request_url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/comments/47441114"},"html":{"href":"https://github.com/kuck1u/cherryblossom/pull/1#discussion_r47441114"},"pull_request":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1","id":53494034,"html_url":"https://github.com/kuck1u/cherryblossom/pull/1","diff_url":"https://github.com/kuck1u/cherryblossom/pull/1.diff","patch_url":"https://github.com/kuck1u/cherryblossom/pull/1.patch","issue_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues/1","number":1,"state":"open","locked":false,"title":"First commit.","user":{"login":"kuck1u","id":7222225,"avatar_url":"https://avatars.githubusercontent.com/u/7222225?v=3","gravatar_id":"","url":"https://api.github.com/users/kuck1u","html_url":"https://github.com/kuck1u","followers_url":"https://api.github.com/users/kuck1u/followers","following_url":"https://api.github.com/users/kuck1u/following{/other_user}","gists_url":"https://api.github.com/users/kuck1u/gists{/gist_id}","starred_url":"https://api.github.com/users/kuck1u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuck1u/subscriptions","organizations_url":"https://api.github.com/users/kuck1u/orgs","repos_url":"https://api.github.com/users/kuck1u/repos","events_url":"https://api.github.com/users/kuck1u/events{/privacy}","received_events_url":"https://api.github.com/users/kuck1u/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-13T06:35:05Z","updated_at":"2015-12-13T06:39:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0df8ab95de4b4b6a51c2181922b9ad03e5344b19","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues/1/comments","statuses_url":"https://api.github.com/repos/kuck1u/cherryblossom/statuses/a0ccd011d0c59bd7761d688d5d727b18e211c0fc","head":{"label":"kuck1u:feature/first_commit","ref":"feature/first_commit","sha":"a0ccd011d0c59bd7761d688d5d727b18e211c0fc","user":{"login":"kuck1u","id":7222225,"avatar_url":"https://avatars.githubusercontent.com/u/7222225?v=3","gravatar_id":"","url":"https://api.github.com/users/kuck1u","html_url":"https://github.com/kuck1u","followers_url":"https://api.github.com/users/kuck1u/followers","following_url":"https://api.github.com/users/kuck1u/following{/other_user}","gists_url":"https://api.github.com/users/kuck1u/gists{/gist_id}","starred_url":"https://api.github.com/users/kuck1u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuck1u/subscriptions","organizations_url":"https://api.github.com/users/kuck1u/orgs","repos_url":"https://api.github.com/users/kuck1u/repos","events_url":"https://api.github.com/users/kuck1u/events{/privacy}","received_events_url":"https://api.github.com/users/kuck1u/received_events","type":"User","site_admin":false},"repo":{"id":47908066,"name":"cherryblossom","full_name":"kuck1u/cherryblossom","owner":{"login":"kuck1u","id":7222225,"avatar_url":"https://avatars.githubusercontent.com/u/7222225?v=3","gravatar_id":"","url":"https://api.github.com/users/kuck1u","html_url":"https://github.com/kuck1u","followers_url":"https://api.github.com/users/kuck1u/followers","following_url":"https://api.github.com/users/kuck1u/following{/other_user}","gists_url":"https://api.github.com/users/kuck1u/gists{/gist_id}","starred_url":"https://api.github.com/users/kuck1u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuck1u/subscriptions","organizations_url":"https://api.github.com/users/kuck1u/orgs","repos_url":"https://api.github.com/users/kuck1u/repos","events_url":"https://api.github.com/users/kuck1u/events{/privacy}","received_events_url":"https://api.github.com/users/kuck1u/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kuck1u/cherryblossom","description":"WordPress Theme.","fork":false,"url":"https://api.github.com/repos/kuck1u/cherryblossom","forks_url":"https://api.github.com/repos/kuck1u/cherryblossom/forks","keys_url":"https://api.github.com/repos/kuck1u/cherryblossom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuck1u/cherryblossom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuck1u/cherryblossom/teams","hooks_url":"https://api.github.com/repos/kuck1u/cherryblossom/hooks","issue_events_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues/events{/number}","events_url":"https://api.github.com/repos/kuck1u/cherryblossom/events","assignees_url":"https://api.github.com/repos/kuck1u/cherryblossom/assignees{/user}","branches_url":"https://api.github.com/repos/kuck1u/cherryblossom/branches{/branch}","tags_url":"https://api.github.com/repos/kuck1u/cherryblossom/tags","blobs_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuck1u/cherryblossom/statuses/{sha}","languages_url":"https://api.github.com/repos/kuck1u/cherryblossom/languages","stargazers_url":"https://api.github.com/repos/kuck1u/cherryblossom/stargazers","contributors_url":"https://api.github.com/repos/kuck1u/cherryblossom/contributors","subscribers_url":"https://api.github.com/repos/kuck1u/cherryblossom/subscribers","subscription_url":"https://api.github.com/repos/kuck1u/cherryblossom/subscription","commits_url":"https://api.github.com/repos/kuck1u/cherryblossom/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuck1u/cherryblossom/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuck1u/cherryblossom/contents/{+path}","compare_url":"https://api.github.com/repos/kuck1u/cherryblossom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuck1u/cherryblossom/merges","archive_url":"https://api.github.com/repos/kuck1u/cherryblossom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuck1u/cherryblossom/downloads","issues_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues{/number}","pulls_url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls{/number}","milestones_url":"https://api.github.com/repos/kuck1u/cherryblossom/milestones{/number}","notifications_url":"https://api.github.com/repos/kuck1u/cherryblossom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuck1u/cherryblossom/labels{/name}","releases_url":"https://api.github.com/repos/kuck1u/cherryblossom/releases{/id}","created_at":"2015-12-13T05:57:45Z","updated_at":"2015-12-13T05:57:45Z","pushed_at":"2015-12-13T06:35:06Z","git_url":"git://github.com/kuck1u/cherryblossom.git","ssh_url":"git@github.com:kuck1u/cherryblossom.git","clone_url":"https://github.com/kuck1u/cherryblossom.git","svn_url":"https://github.com/kuck1u/cherryblossom","homepage":null,"size":193,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"kuck1u:master","ref":"master","sha":"b052ea3958922536c206ca21724df86d60998092","user":{"login":"kuck1u","id":7222225,"avatar_url":"https://avatars.githubusercontent.com/u/7222225?v=3","gravatar_id":"","url":"https://api.github.com/users/kuck1u","html_url":"https://github.com/kuck1u","followers_url":"https://api.github.com/users/kuck1u/followers","following_url":"https://api.github.com/users/kuck1u/following{/other_user}","gists_url":"https://api.github.com/users/kuck1u/gists{/gist_id}","starred_url":"https://api.github.com/users/kuck1u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuck1u/subscriptions","organizations_url":"https://api.github.com/users/kuck1u/orgs","repos_url":"https://api.github.com/users/kuck1u/repos","events_url":"https://api.github.com/users/kuck1u/events{/privacy}","received_events_url":"https://api.github.com/users/kuck1u/received_events","type":"User","site_admin":false},"repo":{"id":47908066,"name":"cherryblossom","full_name":"kuck1u/cherryblossom","owner":{"login":"kuck1u","id":7222225,"avatar_url":"https://avatars.githubusercontent.com/u/7222225?v=3","gravatar_id":"","url":"https://api.github.com/users/kuck1u","html_url":"https://github.com/kuck1u","followers_url":"https://api.github.com/users/kuck1u/followers","following_url":"https://api.github.com/users/kuck1u/following{/other_user}","gists_url":"https://api.github.com/users/kuck1u/gists{/gist_id}","starred_url":"https://api.github.com/users/kuck1u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuck1u/subscriptions","organizations_url":"https://api.github.com/users/kuck1u/orgs","repos_url":"https://api.github.com/users/kuck1u/repos","events_url":"https://api.github.com/users/kuck1u/events{/privacy}","received_events_url":"https://api.github.com/users/kuck1u/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kuck1u/cherryblossom","description":"WordPress Theme.","fork":false,"url":"https://api.github.com/repos/kuck1u/cherryblossom","forks_url":"https://api.github.com/repos/kuck1u/cherryblossom/forks","keys_url":"https://api.github.com/repos/kuck1u/cherryblossom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuck1u/cherryblossom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuck1u/cherryblossom/teams","hooks_url":"https://api.github.com/repos/kuck1u/cherryblossom/hooks","issue_events_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues/events{/number}","events_url":"https://api.github.com/repos/kuck1u/cherryblossom/events","assignees_url":"https://api.github.com/repos/kuck1u/cherryblossom/assignees{/user}","branches_url":"https://api.github.com/repos/kuck1u/cherryblossom/branches{/branch}","tags_url":"https://api.github.com/repos/kuck1u/cherryblossom/tags","blobs_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuck1u/cherryblossom/statuses/{sha}","languages_url":"https://api.github.com/repos/kuck1u/cherryblossom/languages","stargazers_url":"https://api.github.com/repos/kuck1u/cherryblossom/stargazers","contributors_url":"https://api.github.com/repos/kuck1u/cherryblossom/contributors","subscribers_url":"https://api.github.com/repos/kuck1u/cherryblossom/subscribers","subscription_url":"https://api.github.com/repos/kuck1u/cherryblossom/subscription","commits_url":"https://api.github.com/repos/kuck1u/cherryblossom/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuck1u/cherryblossom/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuck1u/cherryblossom/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuck1u/cherryblossom/contents/{+path}","compare_url":"https://api.github.com/repos/kuck1u/cherryblossom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuck1u/cherryblossom/merges","archive_url":"https://api.github.com/repos/kuck1u/cherryblossom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuck1u/cherryblossom/downloads","issues_url":"https://api.github.com/repos/kuck1u/cherryblossom/issues{/number}","pulls_url":"https://api.github.com/repos/kuck1u/cherryblossom/pulls{/number}","milestones_url":"https://api.github.com/repos/kuck1u/cherryblossom/milestones{/number}","notifications_url":"https://api.github.com/repos/kuck1u/cherryblossom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuck1u/cherryblossom/labels{/name}","releases_url":"https://api.github.com/repos/kuck1u/cherryblossom/releases{/id}","created_at":"2015-12-13T05:57:45Z","updated_at":"2015-12-13T05:57:45Z","pushed_at":"2015-12-13T06:35:06Z","git_url":"git://github.com/kuck1u/cherryblossom.git","ssh_url":"git@github.com:kuck1u/cherryblossom.git","clone_url":"https://github.com/kuck1u/cherryblossom.git","svn_url":"https://github.com/kuck1u/cherryblossom","homepage":null,"size":193,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1"},"html":{"href":"https://github.com/kuck1u/cherryblossom/pull/1"},"issue":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/issues/1"},"comments":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kuck1u/cherryblossom/statuses/a0ccd011d0c59bd7761d688d5d727b18e211c0fc"}}}}