{"action":"created","comment":{"url":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/comments/51256485","id":51256485,"diff_hunk":"@@ -0,0 +1,54 @@\n+<?php\n+\n+namespace PrestaShop\\PrestaShop\\Core\\Module;\n+\n+class HookConfigurator\n+{\n+    private $hookRepository;\n+\n+    public function __construct(HookRepository $hookRepository)\n+    {\n+        $this->hookRepository = $hookRepository;\n+    }\n+\n+\n+    /**\n+     * $hooks is a hook configuration description\n+     * as found in theme.yml,\n+     * it has a format like:\n+     * [\n+     * \t\t\"someHookName\" => [\n+     * \t\t\tnull,\n+     * \t\t\t\"blockstuff\",\n+     * \t\t\t\"othermodule\"\n+     * \t\t],\n+     * \t\t\"someOtherHookName\" => [\n+     * \t\t\tnull,\n+     * \t\t\t\"blockmenu\" => [\n+     * \t\t\t\t\"except_pages\" => [\"category\", \"product\"]\n+     * \t\t\t]\n+     * \t\t],","path":"src/Core/Module/HookConfigurator.php","position":30,"original_position":30,"commit_id":"5b6902c12bf65ee2289e918b62c57f247d3d8987","original_commit_id":"5b6902c12bf65ee2289e918b62c57f247d3d8987","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars.githubusercontent.com/u/12626182?v=3","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"Spaces must be used for alignment; tabs are not allowed","created_at":"2016-01-29T12:43:14Z","updated_at":"2016-01-29T12:43:14Z","html_url":"https://github.com/julienbourdeau/PrestaShop/pull/6#discussion_r51256485","pull_request_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/comments/51256485"},"html":{"href":"https://github.com/julienbourdeau/PrestaShop/pull/6#discussion_r51256485"},"pull_request":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6","id":57635182,"html_url":"https://github.com/julienbourdeau/PrestaShop/pull/6","diff_url":"https://github.com/julienbourdeau/PrestaShop/pull/6.diff","patch_url":"https://github.com/julienbourdeau/PrestaShop/pull/6.patch","issue_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/issues/6","number":6,"state":"open","locked":false,"title":"First test case for HookConfigurator","user":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-01-29T11:18:57Z","updated_at":"2016-01-29T12:43:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fbbfb571ce8e7b2ef3f823ec4efe7925c9abe06","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6/commits","review_comments_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6/comments","review_comment_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/issues/6/comments","statuses_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/statuses/5b6902c12bf65ee2289e918b62c57f247d3d8987","head":{"label":"djfm:starter-theme/feat/theme-management","ref":"starter-theme/feat/theme-management","sha":"5b6902c12bf65ee2289e918b62c57f247d3d8987","user":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"repo":{"id":8723586,"name":"PrestaShop","full_name":"djfm/PrestaShop","owner":{"login":"djfm","id":1460499,"avatar_url":"https://avatars.githubusercontent.com/u/1460499?v=3","gravatar_id":"","url":"https://api.github.com/users/djfm","html_url":"https://github.com/djfm","followers_url":"https://api.github.com/users/djfm/followers","following_url":"https://api.github.com/users/djfm/following{/other_user}","gists_url":"https://api.github.com/users/djfm/gists{/gist_id}","starred_url":"https://api.github.com/users/djfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfm/subscriptions","organizations_url":"https://api.github.com/users/djfm/orgs","repos_url":"https://api.github.com/users/djfm/repos","events_url":"https://api.github.com/users/djfm/events{/privacy}","received_events_url":"https://api.github.com/users/djfm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djfm/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open-source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/djfm/PrestaShop","forks_url":"https://api.github.com/repos/djfm/PrestaShop/forks","keys_url":"https://api.github.com/repos/djfm/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djfm/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djfm/PrestaShop/teams","hooks_url":"https://api.github.com/repos/djfm/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/djfm/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/djfm/PrestaShop/events","assignees_url":"https://api.github.com/repos/djfm/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/djfm/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/djfm/PrestaShop/tags","blobs_url":"https://api.github.com/repos/djfm/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djfm/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djfm/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/djfm/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djfm/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/djfm/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/djfm/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/djfm/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/djfm/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/djfm/PrestaShop/subscription","commits_url":"https://api.github.com/repos/djfm/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/djfm/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/djfm/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/djfm/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/djfm/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/djfm/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djfm/PrestaShop/merges","archive_url":"https://api.github.com/repos/djfm/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djfm/PrestaShop/downloads","issues_url":"https://api.github.com/repos/djfm/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/djfm/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/djfm/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/djfm/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djfm/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/djfm/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/djfm/PrestaShop/deployments","created_at":"2013-03-12T08:49:03Z","updated_at":"2015-09-23T13:49:20Z","pushed_at":"2016-01-29T12:43:08Z","git_url":"git://github.com/djfm/PrestaShop.git","ssh_url":"git@github.com:djfm/PrestaShop.git","clone_url":"https://github.com/djfm/PrestaShop.git","svn_url":"https://github.com/djfm/PrestaShop","homepage":"http://www.prestashop.com/","size":242561,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"feat/starter-theme"}},"base":{"label":"julienbourdeau:starter-theme/feat/theme-management","ref":"starter-theme/feat/theme-management","sha":"2e558c41f8ea9775fdb2a0ef5905272f00739cbd","user":{"login":"julienbourdeau","id":1525636,"avatar_url":"https://avatars.githubusercontent.com/u/1525636?v=3","gravatar_id":"","url":"https://api.github.com/users/julienbourdeau","html_url":"https://github.com/julienbourdeau","followers_url":"https://api.github.com/users/julienbourdeau/followers","following_url":"https://api.github.com/users/julienbourdeau/following{/other_user}","gists_url":"https://api.github.com/users/julienbourdeau/gists{/gist_id}","starred_url":"https://api.github.com/users/julienbourdeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienbourdeau/subscriptions","organizations_url":"https://api.github.com/users/julienbourdeau/orgs","repos_url":"https://api.github.com/users/julienbourdeau/repos","events_url":"https://api.github.com/users/julienbourdeau/events{/privacy}","received_events_url":"https://api.github.com/users/julienbourdeau/received_events","type":"User","site_admin":false},"repo":{"id":41730310,"name":"PrestaShop","full_name":"julienbourdeau/PrestaShop","owner":{"login":"julienbourdeau","id":1525636,"avatar_url":"https://avatars.githubusercontent.com/u/1525636?v=3","gravatar_id":"","url":"https://api.github.com/users/julienbourdeau","html_url":"https://github.com/julienbourdeau","followers_url":"https://api.github.com/users/julienbourdeau/followers","following_url":"https://api.github.com/users/julienbourdeau/following{/other_user}","gists_url":"https://api.github.com/users/julienbourdeau/gists{/gist_id}","starred_url":"https://api.github.com/users/julienbourdeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienbourdeau/subscriptions","organizations_url":"https://api.github.com/users/julienbourdeau/orgs","repos_url":"https://api.github.com/users/julienbourdeau/repos","events_url":"https://api.github.com/users/julienbourdeau/events{/privacy}","received_events_url":"https://api.github.com/users/julienbourdeau/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/julienbourdeau/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open-source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/julienbourdeau/PrestaShop","forks_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/forks","keys_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/teams","hooks_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/events","assignees_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/tags","blobs_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/subscription","commits_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/merges","archive_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/downloads","issues_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/julienbourdeau/PrestaShop/deployments","created_at":"2015-09-01T09:45:04Z","updated_at":"2016-01-11T17:39:51Z","pushed_at":"2016-01-29T12:43:08Z","git_url":"git://github.com/julienbourdeau/PrestaShop.git","ssh_url":"git@github.com:julienbourdeau/PrestaShop.git","clone_url":"https://github.com/julienbourdeau/PrestaShop.git","svn_url":"https://github.com/julienbourdeau/PrestaShop","homepage":"http://www.prestashop.com/","size":225375,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6"},"html":{"href":"https://github.com/julienbourdeau/PrestaShop/pull/6"},"issue":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/issues/6"},"comments":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/julienbourdeau/PrestaShop/statuses/5b6902c12bf65ee2289e918b62c57f247d3d8987"}}}}