{"action":"created","comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/142415971","pull_request_review_id":66773026,"id":142415971,"diff_hunk":"@@ -0,0 +1,175 @@\n+<?php\n+/*\n+ * 2007-2017 PrestaShop\n+ * \n+ * NOTICE OF LICENSE\n+ * \n+ * This source file is subject to the Open Software License (OSL 3.0)\n+ * that is bundled with this package in the file LICENSE.txt.\n+ * It is also available through the world-wide-web at this URL:\n+ * http://opensource.org/licenses/osl-3.0.php\n+ * If you did not receive a copy of the license and are unable to\n+ * obtain it through the world-wide-web, please send an email\n+ * to license@prestashop.com so we can send you a copy immediately.\n+ * \n+ * DISCLAIMER\n+ * \n+ * Do not edit or add to this file if you wish to upgrade PrestaShop to newer\n+ * versions in the future. If you wish to customize PrestaShop for your\n+ * needs please refer to http://www.prestashop.com for more information.\n+ * \n+ *  @author PrestaShop SA <contact@prestashop.com>\n+ *  @copyright  2007-2017 PrestaShop SA\n+ *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)\n+ *  International Registered Trademark & Property of PrestaShop SA\n+ */\n+\n+namespace PrestaShop\\PrestaShop\\Adapter\\Module\\PrestaTrust;\n+\n+use Doctrine\\Common\\Cache\\Cache;\n+use PrestaShop\\PrestaShop\\Adapter\\Module\\Module;\n+use Symfony\\Component\\Finder\\Finder;\n+\n+class PrestaTrustChecker\n+{\n+    protected $checked_extensions = array('php', 'js', 'css', 'tpl');\n+\n+    const CHECKS_ALL_OK = 'Module authenticated.';\n+    const CHECKS_INTEGRITY_NOK = 'Warning, the module has been modified since its purchase from the Marketplace';\n+    const CHECKS_PROPERTY_NOK = 'Warning, the purchase proof is not found. This license has already been used on another shop.';\n+    const CHECKS_ALL_NOK = 'Warning, the module has been modified and its purchase proof is not found.';","path":"src/Adapter/Module/PrestaTrust/PrestaTrustChecker.php","position":40,"original_position":40,"commit_id":"386a3bddc1e1947b6851319509ff8332f2fd4578","original_commit_id":"a1520901945243e09aeda9c0570e644b3798a6da","user":{"login":"Quetzacoalt91","id":6768917,"avatar_url":"https://avatars0.githubusercontent.com/u/6768917?v=4","gravatar_id":"","url":"https://api.github.com/users/Quetzacoalt91","html_url":"https://github.com/Quetzacoalt91","followers_url":"https://api.github.com/users/Quetzacoalt91/followers","following_url":"https://api.github.com/users/Quetzacoalt91/following{/other_user}","gists_url":"https://api.github.com/users/Quetzacoalt91/gists{/gist_id}","starred_url":"https://api.github.com/users/Quetzacoalt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quetzacoalt91/subscriptions","organizations_url":"https://api.github.com/users/Quetzacoalt91/orgs","repos_url":"https://api.github.com/users/Quetzacoalt91/repos","events_url":"https://api.github.com/users/Quetzacoalt91/events{/privacy}","received_events_url":"https://api.github.com/users/Quetzacoalt91/received_events","type":"User","site_admin":false},"body":"Thanks @xBorderie! Your review will be useful for the definitive version of the wording. :)","created_at":"2017-10-03T14:20:10Z","updated_at":"2017-10-03T14:20:11Z","html_url":"https://github.com/PrestaShop/PrestaShop/pull/8378#discussion_r142415971","pull_request_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments/142415971"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/8378#discussion_r142415971"},"pull_request":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378"}},"in_reply_to_id":142409133},"pull_request":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378","id":143699919,"html_url":"https://github.com/PrestaShop/PrestaShop/pull/8378","diff_url":"https://github.com/PrestaShop/PrestaShop/pull/8378.diff","patch_url":"https://github.com/PrestaShop/PrestaShop/pull/8378.patch","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8378","number":8378,"state":"open","locked":false,"title":"WIP - Integration of PrestaTrust in module management","user":{"login":"Quetzacoalt91","id":6768917,"avatar_url":"https://avatars0.githubusercontent.com/u/6768917?v=4","gravatar_id":"","url":"https://api.github.com/users/Quetzacoalt91","html_url":"https://github.com/Quetzacoalt91","followers_url":"https://api.github.com/users/Quetzacoalt91/followers","following_url":"https://api.github.com/users/Quetzacoalt91/following{/other_user}","gists_url":"https://api.github.com/users/Quetzacoalt91/gists{/gist_id}","starred_url":"https://api.github.com/users/Quetzacoalt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quetzacoalt91/subscriptions","organizations_url":"https://api.github.com/users/Quetzacoalt91/orgs","repos_url":"https://api.github.com/users/Quetzacoalt91/repos","events_url":"https://api.github.com/users/Quetzacoalt91/events{/privacy}","received_events_url":"https://api.github.com/users/Quetzacoalt91/received_events","type":"User","site_admin":false},"body":"| Questions     | Answers\r\n| ------------- | -------------------------------------------------------\r\n| Branch?       | develop\r\n| Description?  | This PR adds PrestaTrust on the module page, which checks & informs the merchant about the property and the integrity of the module uploaded on the shop.\r\n| Type?         | new feature\r\n| Category?     | BO\r\n| BC breaks?    | Nope\r\n| Deprecations? | Nope\r\n| Fixed ticket? | <ul><li>http://forge.prestashop.com/browse/FF-115</li><li>http://forge.prestashop.com/browse/FF-116</li><li>http://forge.prestashop.com/browse/FF-117</li></li>\r\n| How to test?  | Install a module. As the API is not ready yet, a modal is displayed on every module installation to ask for a confirmation.\r\n\r\n![capture du 2017-09-28 15-33-44](https://user-images.githubusercontent.com/6768917/30979188-cff587ec-a474-11e7-8d99-3b6eeddcd5af.png)\r\n","created_at":"2017-09-28T16:44:34Z","updated_at":"2017-10-03T14:20:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f88a4a62fd4f6c03bd440423fe17ed5c78568e11","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378/commits","review_comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378/comments","review_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8378/comments","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/386a3bddc1e1947b6851319509ff8332f2fd4578","head":{"label":"Quetzacoalt91:feat-prestatrust","ref":"feat-prestatrust","sha":"386a3bddc1e1947b6851319509ff8332f2fd4578","user":{"login":"Quetzacoalt91","id":6768917,"avatar_url":"https://avatars0.githubusercontent.com/u/6768917?v=4","gravatar_id":"","url":"https://api.github.com/users/Quetzacoalt91","html_url":"https://github.com/Quetzacoalt91","followers_url":"https://api.github.com/users/Quetzacoalt91/followers","following_url":"https://api.github.com/users/Quetzacoalt91/following{/other_user}","gists_url":"https://api.github.com/users/Quetzacoalt91/gists{/gist_id}","starred_url":"https://api.github.com/users/Quetzacoalt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quetzacoalt91/subscriptions","organizations_url":"https://api.github.com/users/Quetzacoalt91/orgs","repos_url":"https://api.github.com/users/Quetzacoalt91/repos","events_url":"https://api.github.com/users/Quetzacoalt91/events{/privacy}","received_events_url":"https://api.github.com/users/Quetzacoalt91/received_events","type":"User","site_admin":false},"repo":{"id":34853736,"name":"PrestaShop","full_name":"Quetzacoalt91/PrestaShop","owner":{"login":"Quetzacoalt91","id":6768917,"avatar_url":"https://avatars0.githubusercontent.com/u/6768917?v=4","gravatar_id":"","url":"https://api.github.com/users/Quetzacoalt91","html_url":"https://github.com/Quetzacoalt91","followers_url":"https://api.github.com/users/Quetzacoalt91/followers","following_url":"https://api.github.com/users/Quetzacoalt91/following{/other_user}","gists_url":"https://api.github.com/users/Quetzacoalt91/gists{/gist_id}","starred_url":"https://api.github.com/users/Quetzacoalt91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quetzacoalt91/subscriptions","organizations_url":"https://api.github.com/users/Quetzacoalt91/orgs","repos_url":"https://api.github.com/users/Quetzacoalt91/repos","events_url":"https://api.github.com/users/Quetzacoalt91/events{/privacy}","received_events_url":"https://api.github.com/users/Quetzacoalt91/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Quetzacoalt91/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open-source e-commerce solution.","fork":true,"url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop","forks_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/forks","keys_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/teams","hooks_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/events","assignees_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/tags","blobs_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/subscription","commits_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/merges","archive_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/downloads","issues_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/Quetzacoalt91/PrestaShop/deployments","created_at":"2015-04-30T12:40:13Z","updated_at":"2016-05-18T15:15:04Z","pushed_at":"2017-10-03T14:15:59Z","git_url":"git://github.com/Quetzacoalt91/PrestaShop.git","ssh_url":"git@github.com:Quetzacoalt91/PrestaShop.git","clone_url":"https://github.com/Quetzacoalt91/PrestaShop.git","svn_url":"https://github.com/Quetzacoalt91/PrestaShop","homepage":"http://www.prestashop.com/","size":297058,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"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":"1.6"}},"base":{"label":"PrestaShop:develop","ref":"develop","sha":"63278ca795a1162bab1b031ece8a189323e46369","user":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars3.githubusercontent.com/u/2815696?v=4","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"repo":{"id":6763587,"name":"PrestaShop","full_name":"PrestaShop/PrestaShop","owner":{"login":"PrestaShop","id":2815696,"avatar_url":"https://avatars3.githubusercontent.com/u/2815696?v=4","gravatar_id":"","url":"https://api.github.com/users/PrestaShop","html_url":"https://github.com/PrestaShop","followers_url":"https://api.github.com/users/PrestaShop/followers","following_url":"https://api.github.com/users/PrestaShop/following{/other_user}","gists_url":"https://api.github.com/users/PrestaShop/gists{/gist_id}","starred_url":"https://api.github.com/users/PrestaShop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PrestaShop/subscriptions","organizations_url":"https://api.github.com/users/PrestaShop/orgs","repos_url":"https://api.github.com/users/PrestaShop/repos","events_url":"https://api.github.com/users/PrestaShop/events{/privacy}","received_events_url":"https://api.github.com/users/PrestaShop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PrestaShop/PrestaShop","description":"PrestaShop offers a free, fully scalable, Open Source e-commerce solution.","fork":false,"url":"https://api.github.com/repos/PrestaShop/PrestaShop","forks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/forks","keys_url":"https://api.github.com/repos/PrestaShop/PrestaShop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PrestaShop/PrestaShop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PrestaShop/PrestaShop/teams","hooks_url":"https://api.github.com/repos/PrestaShop/PrestaShop/hooks","issue_events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/events{/number}","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/events","assignees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/assignees{/user}","branches_url":"https://api.github.com/repos/PrestaShop/PrestaShop/branches{/branch}","tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/tags","blobs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/refs{/sha}","trees_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/{sha}","languages_url":"https://api.github.com/repos/PrestaShop/PrestaShop/languages","stargazers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/stargazers","contributors_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contributors","subscribers_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscribers","subscription_url":"https://api.github.com/repos/PrestaShop/PrestaShop/subscription","commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/commits{/sha}","git_commits_url":"https://api.github.com/repos/PrestaShop/PrestaShop/git/commits{/sha}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/comments{/number}","issue_comment_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments{/number}","contents_url":"https://api.github.com/repos/PrestaShop/PrestaShop/contents/{+path}","compare_url":"https://api.github.com/repos/PrestaShop/PrestaShop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PrestaShop/PrestaShop/merges","archive_url":"https://api.github.com/repos/PrestaShop/PrestaShop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PrestaShop/PrestaShop/downloads","issues_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues{/number}","pulls_url":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls{/number}","milestones_url":"https://api.github.com/repos/PrestaShop/PrestaShop/milestones{/number}","notifications_url":"https://api.github.com/repos/PrestaShop/PrestaShop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels{/name}","releases_url":"https://api.github.com/repos/PrestaShop/PrestaShop/releases{/id}","deployments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/deployments","created_at":"2012-11-19T16:41:31Z","updated_at":"2017-10-03T14:00:52Z","pushed_at":"2017-10-03T14:16:01Z","git_url":"git://github.com/PrestaShop/PrestaShop.git","ssh_url":"git@github.com:PrestaShop/PrestaShop.git","clone_url":"https://github.com/PrestaShop/PrestaShop.git","svn_url":"https://github.com/PrestaShop/PrestaShop","homepage":"http://www.prestashop.com/","size":296551,"stargazers_count":2630,"watchers_count":2630,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2457,"mirror_url":null,"open_issues_count":214,"forks":2457,"open_issues":214,"watchers":2630,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378"},"html":{"href":"https://github.com/PrestaShop/PrestaShop/pull/8378"},"issue":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8378"},"comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/8378/comments"},"review_comments":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378/comments"},"review_comment":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/pulls/8378/commits"},"statuses":{"href":"https://api.github.com/repos/PrestaShop/PrestaShop/statuses/386a3bddc1e1947b6851319509ff8332f2fd4578"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Quetzacoalt91"}}