{"action":"created","comment":{"url":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/comments/204625160","pull_request_review_id":139736411,"id":204625160,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNDYyNTE2MA==","diff_hunk":"@@ -0,0 +1,43 @@\n+<?php\n+/* For licensing terms, see /license.txt */\n+\n+namespace Chamilo\\CoreBundle\\Entity\\Repository;\n+\n+use Doctrine\\ORM\\EntityRepository;\n+\n+/**\n+ * Class LegalRepository.\n+ *\n+ * @package Chamilo\\CoreBundle\\Entity\\Repository\n+ */\n+class LegalRepository extends EntityRepository\n+{\n+    /**\n+     * Count the legal terms by language (only count one set of terms for each\n+     * language)\n+     * @return int\n+     * @throws \\Exception\n+     */\n+    public function countAllActiveLegalTerms()\n+    {\n+        $qb = $this->createQueryBuilder('l');\n+        $qb->select('l.languageId, COUNT(l.id)')\n+            ->groupBy('l.languageId');\n+        return count($qb->getQuery()->getResult());\n+    }\n+\n+    /**\n+     * Get the latest version of terms of the given type and language\n+     * @param   int $typeId The type of terms (0 for general text, 1 for general HTML link, 101 for private data collection, etc - see personal_data.php)","path":"src/Chamilo/CoreBundle/Entity/Repository/LegalRepository.php","position":31,"original_position":31,"commit_id":"b872beb7dbba4138a1781eefa28ff8740edc8fbe","original_commit_id":"b872beb7dbba4138a1781eefa28ff8740edc8fbe","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Line exceeds 120 characters; contains 153 characters](https://app.codacy.com/app/chamilo/chamilo-lms/pullRequest?prid=1905404)","created_at":"2018-07-24T05:10:29Z","updated_at":"2018-07-24T05:10:29Z","html_url":"https://github.com/chamilo/chamilo-lms/pull/2588#discussion_r204625160","pull_request_url":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/comments/204625160"},"html":{"href":"https://github.com/chamilo/chamilo-lms/pull/2588#discussion_r204625160"},"pull_request":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588"}}},"pull_request":{"url":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588","id":201548227,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNTQ4MjI3","html_url":"https://github.com/chamilo/chamilo-lms/pull/2588","diff_url":"https://github.com/chamilo/chamilo-lms/pull/2588.diff","patch_url":"https://github.com/chamilo/chamilo-lms/pull/2588.patch","issue_url":"https://api.github.com/repos/chamilo/chamilo-lms/issues/2588","number":2588,"state":"closed","locked":false,"title":"WIP - #2568","user":{"login":"ywarnier","id":609839,"node_id":"MDQ6VXNlcjYwOTgzOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/609839?v=4","gravatar_id":"","url":"https://api.github.com/users/ywarnier","html_url":"https://github.com/ywarnier","followers_url":"https://api.github.com/users/ywarnier/followers","following_url":"https://api.github.com/users/ywarnier/following{/other_user}","gists_url":"https://api.github.com/users/ywarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/ywarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywarnier/subscriptions","organizations_url":"https://api.github.com/users/ywarnier/orgs","repos_url":"https://api.github.com/users/ywarnier/repos","events_url":"https://api.github.com/users/ywarnier/events{/privacy}","received_events_url":"https://api.github.com/users/ywarnier/received_events","type":"User","site_admin":false},"body":"Work in progress with the private data treatment information","created_at":"2018-07-16T06:19:31Z","updated_at":"2018-07-24T05:10:29Z","closed_at":"2018-07-24T05:06:29Z","merged_at":null,"merge_commit_sha":"ff9174c5135cd0eb4fa499b82b114513494acf81","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588/commits","review_comments_url":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588/comments","review_comment_url":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chamilo/chamilo-lms/issues/2588/comments","statuses_url":"https://api.github.com/repos/chamilo/chamilo-lms/statuses/b872beb7dbba4138a1781eefa28ff8740edc8fbe","head":{"label":"ywarnier:2568","ref":"2568","sha":"b872beb7dbba4138a1781eefa28ff8740edc8fbe","user":{"login":"ywarnier","id":609839,"node_id":"MDQ6VXNlcjYwOTgzOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/609839?v=4","gravatar_id":"","url":"https://api.github.com/users/ywarnier","html_url":"https://github.com/ywarnier","followers_url":"https://api.github.com/users/ywarnier/followers","following_url":"https://api.github.com/users/ywarnier/following{/other_user}","gists_url":"https://api.github.com/users/ywarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/ywarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywarnier/subscriptions","organizations_url":"https://api.github.com/users/ywarnier/orgs","repos_url":"https://api.github.com/users/ywarnier/repos","events_url":"https://api.github.com/users/ywarnier/events{/privacy}","received_events_url":"https://api.github.com/users/ywarnier/received_events","type":"User","site_admin":false},"repo":{"id":12509255,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUwOTI1NQ==","name":"chamilo-lms","full_name":"ywarnier/chamilo-lms","owner":{"login":"ywarnier","id":609839,"node_id":"MDQ6VXNlcjYwOTgzOQ==","avatar_url":"https://avatars3.githubusercontent.com/u/609839?v=4","gravatar_id":"","url":"https://api.github.com/users/ywarnier","html_url":"https://github.com/ywarnier","followers_url":"https://api.github.com/users/ywarnier/followers","following_url":"https://api.github.com/users/ywarnier/following{/other_user}","gists_url":"https://api.github.com/users/ywarnier/gists{/gist_id}","starred_url":"https://api.github.com/users/ywarnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywarnier/subscriptions","organizations_url":"https://api.github.com/users/ywarnier/orgs","repos_url":"https://api.github.com/users/ywarnier/repos","events_url":"https://api.github.com/users/ywarnier/events{/privacy}","received_events_url":"https://api.github.com/users/ywarnier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ywarnier/chamilo-lms","description":"Chamilo is a learning management system focusing on ease of use, re-usibality, collaboration and sharing.","fork":true,"url":"https://api.github.com/repos/ywarnier/chamilo-lms","forks_url":"https://api.github.com/repos/ywarnier/chamilo-lms/forks","keys_url":"https://api.github.com/repos/ywarnier/chamilo-lms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ywarnier/chamilo-lms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ywarnier/chamilo-lms/teams","hooks_url":"https://api.github.com/repos/ywarnier/chamilo-lms/hooks","issue_events_url":"https://api.github.com/repos/ywarnier/chamilo-lms/issues/events{/number}","events_url":"https://api.github.com/repos/ywarnier/chamilo-lms/events","assignees_url":"https://api.github.com/repos/ywarnier/chamilo-lms/assignees{/user}","branches_url":"https://api.github.com/repos/ywarnier/chamilo-lms/branches{/branch}","tags_url":"https://api.github.com/repos/ywarnier/chamilo-lms/tags","blobs_url":"https://api.github.com/repos/ywarnier/chamilo-lms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ywarnier/chamilo-lms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ywarnier/chamilo-lms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ywarnier/chamilo-lms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ywarnier/chamilo-lms/statuses/{sha}","languages_url":"https://api.github.com/repos/ywarnier/chamilo-lms/languages","stargazers_url":"https://api.github.com/repos/ywarnier/chamilo-lms/stargazers","contributors_url":"https://api.github.com/repos/ywarnier/chamilo-lms/contributors","subscribers_url":"https://api.github.com/repos/ywarnier/chamilo-lms/subscribers","subscription_url":"https://api.github.com/repos/ywarnier/chamilo-lms/subscription","commits_url":"https://api.github.com/repos/ywarnier/chamilo-lms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ywarnier/chamilo-lms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ywarnier/chamilo-lms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ywarnier/chamilo-lms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ywarnier/chamilo-lms/contents/{+path}","compare_url":"https://api.github.com/repos/ywarnier/chamilo-lms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ywarnier/chamilo-lms/merges","archive_url":"https://api.github.com/repos/ywarnier/chamilo-lms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ywarnier/chamilo-lms/downloads","issues_url":"https://api.github.com/repos/ywarnier/chamilo-lms/issues{/number}","pulls_url":"https://api.github.com/repos/ywarnier/chamilo-lms/pulls{/number}","milestones_url":"https://api.github.com/repos/ywarnier/chamilo-lms/milestones{/number}","notifications_url":"https://api.github.com/repos/ywarnier/chamilo-lms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ywarnier/chamilo-lms/labels{/name}","releases_url":"https://api.github.com/repos/ywarnier/chamilo-lms/releases{/id}","deployments_url":"https://api.github.com/repos/ywarnier/chamilo-lms/deployments","created_at":"2013-08-31T17:48:20Z","updated_at":"2016-04-25T18:04:49Z","pushed_at":"2018-07-24T05:02:38Z","git_url":"git://github.com/ywarnier/chamilo-lms.git","ssh_url":"git@github.com:ywarnier/chamilo-lms.git","clone_url":"https://github.com/ywarnier/chamilo-lms.git","svn_url":"https://github.com/ywarnier/chamilo-lms","homepage":"http://www.chamilo.org","size":582524,"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":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chamilo:1.11.x","ref":"1.11.x","sha":"5dd7561cb293f8b607092215f730363d03c94150","user":{"login":"chamilo","id":3460664,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NjA2NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3460664?v=4","gravatar_id":"","url":"https://api.github.com/users/chamilo","html_url":"https://github.com/chamilo","followers_url":"https://api.github.com/users/chamilo/followers","following_url":"https://api.github.com/users/chamilo/following{/other_user}","gists_url":"https://api.github.com/users/chamilo/gists{/gist_id}","starred_url":"https://api.github.com/users/chamilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamilo/subscriptions","organizations_url":"https://api.github.com/users/chamilo/orgs","repos_url":"https://api.github.com/users/chamilo/repos","events_url":"https://api.github.com/users/chamilo/events{/privacy}","received_events_url":"https://api.github.com/users/chamilo/received_events","type":"Organization","site_admin":false},"repo":{"id":9103211,"node_id":"MDEwOlJlcG9zaXRvcnk5MTAzMjEx","name":"chamilo-lms","full_name":"chamilo/chamilo-lms","owner":{"login":"chamilo","id":3460664,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NjA2NjQ=","avatar_url":"https://avatars1.githubusercontent.com/u/3460664?v=4","gravatar_id":"","url":"https://api.github.com/users/chamilo","html_url":"https://github.com/chamilo","followers_url":"https://api.github.com/users/chamilo/followers","following_url":"https://api.github.com/users/chamilo/following{/other_user}","gists_url":"https://api.github.com/users/chamilo/gists{/gist_id}","starred_url":"https://api.github.com/users/chamilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamilo/subscriptions","organizations_url":"https://api.github.com/users/chamilo/orgs","repos_url":"https://api.github.com/users/chamilo/repos","events_url":"https://api.github.com/users/chamilo/events{/privacy}","received_events_url":"https://api.github.com/users/chamilo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chamilo/chamilo-lms","description":"Chamilo is a learning management system focused on ease of use and accessibility","fork":false,"url":"https://api.github.com/repos/chamilo/chamilo-lms","forks_url":"https://api.github.com/repos/chamilo/chamilo-lms/forks","keys_url":"https://api.github.com/repos/chamilo/chamilo-lms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chamilo/chamilo-lms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chamilo/chamilo-lms/teams","hooks_url":"https://api.github.com/repos/chamilo/chamilo-lms/hooks","issue_events_url":"https://api.github.com/repos/chamilo/chamilo-lms/issues/events{/number}","events_url":"https://api.github.com/repos/chamilo/chamilo-lms/events","assignees_url":"https://api.github.com/repos/chamilo/chamilo-lms/assignees{/user}","branches_url":"https://api.github.com/repos/chamilo/chamilo-lms/branches{/branch}","tags_url":"https://api.github.com/repos/chamilo/chamilo-lms/tags","blobs_url":"https://api.github.com/repos/chamilo/chamilo-lms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chamilo/chamilo-lms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chamilo/chamilo-lms/git/refs{/sha}","trees_url":"https://api.github.com/repos/chamilo/chamilo-lms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chamilo/chamilo-lms/statuses/{sha}","languages_url":"https://api.github.com/repos/chamilo/chamilo-lms/languages","stargazers_url":"https://api.github.com/repos/chamilo/chamilo-lms/stargazers","contributors_url":"https://api.github.com/repos/chamilo/chamilo-lms/contributors","subscribers_url":"https://api.github.com/repos/chamilo/chamilo-lms/subscribers","subscription_url":"https://api.github.com/repos/chamilo/chamilo-lms/subscription","commits_url":"https://api.github.com/repos/chamilo/chamilo-lms/commits{/sha}","git_commits_url":"https://api.github.com/repos/chamilo/chamilo-lms/git/commits{/sha}","comments_url":"https://api.github.com/repos/chamilo/chamilo-lms/comments{/number}","issue_comment_url":"https://api.github.com/repos/chamilo/chamilo-lms/issues/comments{/number}","contents_url":"https://api.github.com/repos/chamilo/chamilo-lms/contents/{+path}","compare_url":"https://api.github.com/repos/chamilo/chamilo-lms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chamilo/chamilo-lms/merges","archive_url":"https://api.github.com/repos/chamilo/chamilo-lms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chamilo/chamilo-lms/downloads","issues_url":"https://api.github.com/repos/chamilo/chamilo-lms/issues{/number}","pulls_url":"https://api.github.com/repos/chamilo/chamilo-lms/pulls{/number}","milestones_url":"https://api.github.com/repos/chamilo/chamilo-lms/milestones{/number}","notifications_url":"https://api.github.com/repos/chamilo/chamilo-lms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chamilo/chamilo-lms/labels{/name}","releases_url":"https://api.github.com/repos/chamilo/chamilo-lms/releases{/id}","deployments_url":"https://api.github.com/repos/chamilo/chamilo-lms/deployments","created_at":"2013-03-29T17:31:19Z","updated_at":"2018-07-18T16:00:26Z","pushed_at":"2018-07-24T05:05:56Z","git_url":"git://github.com/chamilo/chamilo-lms.git","ssh_url":"git@github.com:chamilo/chamilo-lms.git","clone_url":"https://github.com/chamilo/chamilo-lms.git","svn_url":"https://github.com/chamilo/chamilo-lms","homepage":"https://chamilo.org","size":807900,"stargazers_count":274,"watchers_count":274,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":257,"mirror_url":null,"archived":false,"open_issues_count":189,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":257,"open_issues":189,"watchers":274,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588"},"html":{"href":"https://github.com/chamilo/chamilo-lms/pull/2588"},"issue":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/issues/2588"},"comments":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/issues/2588/comments"},"review_comments":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588/comments"},"review_comment":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/pulls/2588/commits"},"statuses":{"href":"https://api.github.com/repos/chamilo/chamilo-lms/statuses/b872beb7dbba4138a1781eefa28ff8740edc8fbe"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}