{"action":"created","comment":{"url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/comments/48212656","id":48212656,"diff_hunk":"@@ -0,0 +1,82 @@\n+<?php\n+/**\n+ * WordPress plugin post type class.\n+ *\n+ * @package    WordPress\n+ * @subpackage VA WSD the phantom thief\n+ * @author     KUCKLU <kuck1u@visualive.jp>\n+ *             Copyright (C) 2015 KUCKLU and VisuAlive.\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+ *             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+ *             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+ *             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+namespace VAWSDTPT\\Module;\n+\n+use VAWSDTPT\\VAWSDTPT_Singleton;\n+\n+if ( ! defined( 'ABSPATH' ) ) {\n+\texit;\n+}\n+\n+/**\n+ * Class Post type.\n+ *\n+ * @since 1.2.0\n+ */\n+class VAWSDTPT_PostType extends VAWSDTPT_Singleton {\n+\t/**\n+\t * Show in Post type.\n+\t *\n+\t * @var bool\n+\t */\n+\tprivate static $show = false;\n+\n+\t/**\n+\t * This hook is called once any activated plugins have been loaded.\n+\t */\n+\tpublic function __construct() {\n+\t\tif ( current_user_can( 'manage_options' ) ) {\n+\t\t\tself::$show = true;\n+\t\t}\n+\n+\t\tadd_action( 'init', array( &$this, 'register_post_type' ) );\n+\t}\n+\n+\t/**\n+\t * Register post type.\n+\t *\n+\t * @since 1.0.0\n+\t */\n+\tpublic static function register_post_type() {\n+\t\tregister_post_type( self::$post_type, array(\n+\t\t\t'labels'               => array(\n+\t\t\t\t'name'           => __( 'Web Site Data', 'va-wsd-the-phantom-thief' ),","path":"incs/posttype.php","position":64,"original_position":64,"commit_id":"cba287b4f24fcd423e428a06cb11a0750576ffc6","original_commit_id":"cba287b4f24fcd423e428a06cb11a0750576ffc6","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* Multi-line function call not indented correctly; expected 12 spaces but found 16","created_at":"2015-12-22T01:19:58Z","updated_at":"2015-12-22T01:19:58Z","html_url":"https://github.com/visualive/va-wsd-the-phantom-thief/pull/1#discussion_r48212656","pull_request_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/comments/48212656"},"html":{"href":"https://github.com/visualive/va-wsd-the-phantom-thief/pull/1#discussion_r48212656"},"pull_request":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1","id":54322753,"html_url":"https://github.com/visualive/va-wsd-the-phantom-thief/pull/1","diff_url":"https://github.com/visualive/va-wsd-the-phantom-thief/pull/1.diff","patch_url":"https://github.com/visualive/va-wsd-the-phantom-thief/pull/1.patch","issue_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/1","number":1,"state":"open","locked":false,"title":"Feature/add doc comment","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-22T01:19:54Z","updated_at":"2015-12-22T01:19:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5b0545863b10f0dc9e74ce946e9b4f40aef7ae8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1/commits","review_comments_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1/comments","review_comment_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/comments{/number}","comments_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/1/comments","statuses_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/statuses/cba287b4f24fcd423e428a06cb11a0750576ffc6","head":{"label":"visualive:feature/add_doc_comment","ref":"feature/add_doc_comment","sha":"cba287b4f24fcd423e428a06cb11a0750576ffc6","user":{"login":"visualive","id":15933955,"avatar_url":"https://avatars.githubusercontent.com/u/15933955?v=3","gravatar_id":"","url":"https://api.github.com/users/visualive","html_url":"https://github.com/visualive","followers_url":"https://api.github.com/users/visualive/followers","following_url":"https://api.github.com/users/visualive/following{/other_user}","gists_url":"https://api.github.com/users/visualive/gists{/gist_id}","starred_url":"https://api.github.com/users/visualive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualive/subscriptions","organizations_url":"https://api.github.com/users/visualive/orgs","repos_url":"https://api.github.com/users/visualive/repos","events_url":"https://api.github.com/users/visualive/events{/privacy}","received_events_url":"https://api.github.com/users/visualive/received_events","type":"Organization","site_admin":false},"repo":{"id":34668747,"name":"va-wsd-the-phantom-thief","full_name":"visualive/va-wsd-the-phantom-thief","owner":{"login":"visualive","id":15933955,"avatar_url":"https://avatars.githubusercontent.com/u/15933955?v=3","gravatar_id":"","url":"https://api.github.com/users/visualive","html_url":"https://github.com/visualive","followers_url":"https://api.github.com/users/visualive/followers","following_url":"https://api.github.com/users/visualive/following{/other_user}","gists_url":"https://api.github.com/users/visualive/gists{/gist_id}","starred_url":"https://api.github.com/users/visualive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualive/subscriptions","organizations_url":"https://api.github.com/users/visualive/orgs","repos_url":"https://api.github.com/users/visualive/repos","events_url":"https://api.github.com/users/visualive/events{/privacy}","received_events_url":"https://api.github.com/users/visualive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/visualive/va-wsd-the-phantom-thief","description":"This is a WordPress plugin that helps create previews of a url based on the OGP of the page, similar to a url preview in a Facebook post.","fork":false,"url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief","forks_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/forks","keys_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/keys{/key_id}","collaborators_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/teams","hooks_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/hooks","issue_events_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/events{/number}","events_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/events","assignees_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/assignees{/user}","branches_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/branches{/branch}","tags_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/tags","blobs_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/refs{/sha}","trees_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/trees{/sha}","statuses_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/statuses/{sha}","languages_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/languages","stargazers_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/stargazers","contributors_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/contributors","subscribers_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/subscribers","subscription_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/subscription","commits_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/commits{/sha}","git_commits_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/commits{/sha}","comments_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/comments{/number}","issue_comment_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/comments{/number}","contents_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/contents/{+path}","compare_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/compare/{base}...{head}","merges_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/merges","archive_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/downloads","issues_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues{/number}","pulls_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls{/number}","milestones_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/milestones{/number}","notifications_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/labels{/name}","releases_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/releases{/id}","created_at":"2015-04-27T13:36:38Z","updated_at":"2015-12-22T00:08:37Z","pushed_at":"2015-12-22T01:19:54Z","git_url":"git://github.com/visualive/va-wsd-the-phantom-thief.git","ssh_url":"git@github.com:visualive/va-wsd-the-phantom-thief.git","clone_url":"https://github.com/visualive/va-wsd-the-phantom-thief.git","svn_url":"https://github.com/visualive/va-wsd-the-phantom-thief","homepage":"https://wordpress.org/plugins/va-wsd-the-phantom-thief/","size":194,"stargazers_count":1,"watchers_count":1,"language":"PHP","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":1,"default_branch":"master"}},"base":{"label":"visualive:master","ref":"master","sha":"e0e3f503e7a8b5deccfb8574182110dfb1e149e3","user":{"login":"visualive","id":15933955,"avatar_url":"https://avatars.githubusercontent.com/u/15933955?v=3","gravatar_id":"","url":"https://api.github.com/users/visualive","html_url":"https://github.com/visualive","followers_url":"https://api.github.com/users/visualive/followers","following_url":"https://api.github.com/users/visualive/following{/other_user}","gists_url":"https://api.github.com/users/visualive/gists{/gist_id}","starred_url":"https://api.github.com/users/visualive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualive/subscriptions","organizations_url":"https://api.github.com/users/visualive/orgs","repos_url":"https://api.github.com/users/visualive/repos","events_url":"https://api.github.com/users/visualive/events{/privacy}","received_events_url":"https://api.github.com/users/visualive/received_events","type":"Organization","site_admin":false},"repo":{"id":34668747,"name":"va-wsd-the-phantom-thief","full_name":"visualive/va-wsd-the-phantom-thief","owner":{"login":"visualive","id":15933955,"avatar_url":"https://avatars.githubusercontent.com/u/15933955?v=3","gravatar_id":"","url":"https://api.github.com/users/visualive","html_url":"https://github.com/visualive","followers_url":"https://api.github.com/users/visualive/followers","following_url":"https://api.github.com/users/visualive/following{/other_user}","gists_url":"https://api.github.com/users/visualive/gists{/gist_id}","starred_url":"https://api.github.com/users/visualive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/visualive/subscriptions","organizations_url":"https://api.github.com/users/visualive/orgs","repos_url":"https://api.github.com/users/visualive/repos","events_url":"https://api.github.com/users/visualive/events{/privacy}","received_events_url":"https://api.github.com/users/visualive/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/visualive/va-wsd-the-phantom-thief","description":"This is a WordPress plugin that helps create previews of a url based on the OGP of the page, similar to a url preview in a Facebook post.","fork":false,"url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief","forks_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/forks","keys_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/keys{/key_id}","collaborators_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/teams","hooks_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/hooks","issue_events_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/events{/number}","events_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/events","assignees_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/assignees{/user}","branches_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/branches{/branch}","tags_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/tags","blobs_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/refs{/sha}","trees_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/trees{/sha}","statuses_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/statuses/{sha}","languages_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/languages","stargazers_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/stargazers","contributors_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/contributors","subscribers_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/subscribers","subscription_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/subscription","commits_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/commits{/sha}","git_commits_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/git/commits{/sha}","comments_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/comments{/number}","issue_comment_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/comments{/number}","contents_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/contents/{+path}","compare_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/compare/{base}...{head}","merges_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/merges","archive_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/downloads","issues_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues{/number}","pulls_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls{/number}","milestones_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/milestones{/number}","notifications_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/labels{/name}","releases_url":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/releases{/id}","created_at":"2015-04-27T13:36:38Z","updated_at":"2015-12-22T00:08:37Z","pushed_at":"2015-12-22T01:19:54Z","git_url":"git://github.com/visualive/va-wsd-the-phantom-thief.git","ssh_url":"git@github.com:visualive/va-wsd-the-phantom-thief.git","clone_url":"https://github.com/visualive/va-wsd-the-phantom-thief.git","svn_url":"https://github.com/visualive/va-wsd-the-phantom-thief","homepage":"https://wordpress.org/plugins/va-wsd-the-phantom-thief/","size":194,"stargazers_count":1,"watchers_count":1,"language":"PHP","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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1"},"html":{"href":"https://github.com/visualive/va-wsd-the-phantom-thief/pull/1"},"issue":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/1"},"comments":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/visualive/va-wsd-the-phantom-thief/statuses/cba287b4f24fcd423e428a06cb11a0750576ffc6"}}}}