{"action":"created","comment":{"url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/comments/190725701","pull_request_review_id":123165960,"id":190725701,"diff_hunk":"@@ -0,0 +1,269 @@\n+<?php\n+\n+/**\n+ * @title            Birthday Cron Class\n+ *\n+ * @author           Pierre-Henry Soria <ph7software@gmail.com>, Polyna-Maude R.-Summerside <polynamaude@gmail.com>\n+ * @copyright        (c) 2013-2018, Pierre-Henry Soria. All Rights Reserved.\n+ * @license          GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.\n+ * @package          PH7 / App / System / Core / Asset / Cron / 24H\n+ * @version          1.0\n+ */\n+namespace PH7;\n+\n+defined ( 'PH7' ) or exit ( 'Restricted access' );\n+\n+use Exception;\n+use PH7\\Framework\\Security\\Ban\\Ban;\n+use PH7\\Framework\\Error\\Logger;\n+\n+class BannedCoreCron extends Cron {\n+\t/**\n+\t * Web client used to fetch IPs\n+\t *\n+\t * @var \\GuzzleHttp\\Client\n+\t */\n+\tprivate $webClient;\n+\n+\t/**\n+\t * Banned IP filename\n+\t *\n+\t * @var string\n+\t */\n+\tprivate $bannedFileName;\n+\t/**\n+\t * Contain new blocked IP just fetched\n+\t *\n+\t * @var array\n+\t */\n+\tprivate $ipNew;\n+\n+\t/**\n+\t * Contain existing blocked IP\n+\t *\n+\t * @var array\n+\t */\n+\tprivate $ipOld;\n+\n+\t/**\n+\t * IP extracting regulat expression\n+\t *\n+\t * @var string\n+\t */","path":"_protected/app/system/core/assets/cron/96h/BannedCoreCron.php","position":52,"original_position":52,"commit_id":"a7153a0a899dd7e458c5d2e4b7b5c371fcdf3dda","original_commit_id":"a7153a0a899dd7e458c5d2e4b7b5c371fcdf3dda","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars1.githubusercontent.com/u/12626182?v=4","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 to indent lines; tabs are not allowed","created_at":"2018-05-24T20:47:18Z","updated_at":"2018-05-24T20:47:18Z","html_url":"https://github.com/pH7Software/pH7-Social-Dating-CMS/pull/209#discussion_r190725701","pull_request_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/comments/190725701"},"html":{"href":"https://github.com/pH7Software/pH7-Social-Dating-CMS/pull/209#discussion_r190725701"},"pull_request":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209","id":190415179,"html_url":"https://github.com/pH7Software/pH7-Social-Dating-CMS/pull/209","diff_url":"https://github.com/pH7Software/pH7-Social-Dating-CMS/pull/209.diff","patch_url":"https://github.com/pH7Software/pH7-Social-Dating-CMS/pull/209.patch","issue_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/issues/209","number":209,"state":"open","locked":false,"title":"Added Cron for adding banned IP to banip.txt file","user":{"login":"polynamaude","id":21186871,"avatar_url":"https://avatars1.githubusercontent.com/u/21186871?v=4","gravatar_id":"","url":"https://api.github.com/users/polynamaude","html_url":"https://github.com/polynamaude","followers_url":"https://api.github.com/users/polynamaude/followers","following_url":"https://api.github.com/users/polynamaude/following{/other_user}","gists_url":"https://api.github.com/users/polynamaude/gists{/gist_id}","starred_url":"https://api.github.com/users/polynamaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polynamaude/subscriptions","organizations_url":"https://api.github.com/users/polynamaude/orgs","repos_url":"https://api.github.com/users/polynamaude/repos","events_url":"https://api.github.com/users/polynamaude/events{/privacy}","received_events_url":"https://api.github.com/users/polynamaude/received_events","type":"User","site_admin":false},"body":"Use services to get list of spammers IP and other problematic IP from security services.\r\nAdd those IPs to the banip.txt file.","created_at":"2018-05-24T20:46:51Z","updated_at":"2018-05-24T20:47:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"13a64704f4562decd1101818766d5247a715e9ec","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209/commits","review_comments_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209/comments","review_comment_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/issues/209/comments","statuses_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/statuses/a7153a0a899dd7e458c5d2e4b7b5c371fcdf3dda","head":{"label":"polynamaude:BannedIP-Cron","ref":"BannedIP-Cron","sha":"a7153a0a899dd7e458c5d2e4b7b5c371fcdf3dda","user":{"login":"polynamaude","id":21186871,"avatar_url":"https://avatars1.githubusercontent.com/u/21186871?v=4","gravatar_id":"","url":"https://api.github.com/users/polynamaude","html_url":"https://github.com/polynamaude","followers_url":"https://api.github.com/users/polynamaude/followers","following_url":"https://api.github.com/users/polynamaude/following{/other_user}","gists_url":"https://api.github.com/users/polynamaude/gists{/gist_id}","starred_url":"https://api.github.com/users/polynamaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polynamaude/subscriptions","organizations_url":"https://api.github.com/users/polynamaude/orgs","repos_url":"https://api.github.com/users/polynamaude/repos","events_url":"https://api.github.com/users/polynamaude/events{/privacy}","received_events_url":"https://api.github.com/users/polynamaude/received_events","type":"User","site_admin":false},"repo":{"id":124839420,"name":"pH7-Social-Dating-CMS","full_name":"polynamaude/pH7-Social-Dating-CMS","owner":{"login":"polynamaude","id":21186871,"avatar_url":"https://avatars1.githubusercontent.com/u/21186871?v=4","gravatar_id":"","url":"https://api.github.com/users/polynamaude","html_url":"https://github.com/polynamaude","followers_url":"https://api.github.com/users/polynamaude/followers","following_url":"https://api.github.com/users/polynamaude/following{/other_user}","gists_url":"https://api.github.com/users/polynamaude/gists{/gist_id}","starred_url":"https://api.github.com/users/polynamaude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polynamaude/subscriptions","organizations_url":"https://api.github.com/users/polynamaude/orgs","repos_url":"https://api.github.com/users/polynamaude/repos","events_url":"https://api.github.com/users/polynamaude/events{/privacy}","received_events_url":"https://api.github.com/users/polynamaude/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/polynamaude/pH7-Social-Dating-CMS","description":":heart: pH7CMS :couple: is a Professional & Open Source Social Dating CMS written in OOP PHP with the MVC pattern. This Social Dating Script wants to be low resource-intensive, powerful and secure. pH7CMS is included with 30+ modules and based on pH7Framework. It is also the first Professional, free & open source European Social Dating Site Builder Software and the first choice for creating enterprise level Dating Apps/Service or Social Networking Sites","fork":true,"url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS","forks_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/forks","keys_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/teams","hooks_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/hooks","issue_events_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/issues/events{/number}","events_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/events","assignees_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/assignees{/user}","branches_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/branches{/branch}","tags_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/tags","blobs_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/git/refs{/sha}","trees_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/statuses/{sha}","languages_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/languages","stargazers_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/stargazers","contributors_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/contributors","subscribers_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/subscribers","subscription_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/subscription","commits_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/commits{/sha}","git_commits_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/git/commits{/sha}","comments_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/comments{/number}","issue_comment_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/issues/comments{/number}","contents_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/contents/{+path}","compare_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/merges","archive_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/downloads","issues_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/issues{/number}","pulls_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/pulls{/number}","milestones_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/milestones{/number}","notifications_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/labels{/name}","releases_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/releases{/id}","deployments_url":"https://api.github.com/repos/polynamaude/pH7-Social-Dating-CMS/deployments","created_at":"2018-03-12T05:47:39Z","updated_at":"2018-05-24T20:39:28Z","pushed_at":"2018-05-24T20:45:35Z","git_url":"git://github.com/polynamaude/pH7-Social-Dating-CMS.git","ssh_url":"git@github.com:polynamaude/pH7-Social-Dating-CMS.git","clone_url":"https://github.com/polynamaude/pH7-Social-Dating-CMS.git","svn_url":"https://github.com/polynamaude/pH7-Social-Dating-CMS","homepage":"https://sourceforge.net/projects/ph7socialdating/","size":489136,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pH7Software:master","ref":"master","sha":"93d5d8f5cc0447e980de149d4a1b734cb14189b6","user":{"login":"pH7Software","id":1780434,"avatar_url":"https://avatars3.githubusercontent.com/u/1780434?v=4","gravatar_id":"","url":"https://api.github.com/users/pH7Software","html_url":"https://github.com/pH7Software","followers_url":"https://api.github.com/users/pH7Software/followers","following_url":"https://api.github.com/users/pH7Software/following{/other_user}","gists_url":"https://api.github.com/users/pH7Software/gists{/gist_id}","starred_url":"https://api.github.com/users/pH7Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pH7Software/subscriptions","organizations_url":"https://api.github.com/users/pH7Software/orgs","repos_url":"https://api.github.com/users/pH7Software/repos","events_url":"https://api.github.com/users/pH7Software/events{/privacy}","received_events_url":"https://api.github.com/users/pH7Software/received_events","type":"Organization","site_admin":false},"repo":{"id":8513178,"name":"pH7-Social-Dating-CMS","full_name":"pH7Software/pH7-Social-Dating-CMS","owner":{"login":"pH7Software","id":1780434,"avatar_url":"https://avatars3.githubusercontent.com/u/1780434?v=4","gravatar_id":"","url":"https://api.github.com/users/pH7Software","html_url":"https://github.com/pH7Software","followers_url":"https://api.github.com/users/pH7Software/followers","following_url":"https://api.github.com/users/pH7Software/following{/other_user}","gists_url":"https://api.github.com/users/pH7Software/gists{/gist_id}","starred_url":"https://api.github.com/users/pH7Software/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pH7Software/subscriptions","organizations_url":"https://api.github.com/users/pH7Software/orgs","repos_url":"https://api.github.com/users/pH7Software/repos","events_url":"https://api.github.com/users/pH7Software/events{/privacy}","received_events_url":"https://api.github.com/users/pH7Software/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pH7Software/pH7-Social-Dating-CMS","description":":heart: pH7CMS :couple: is a Professional & Open Source Social Dating CMS written in OOP PHP with the MVC pattern. This Social Dating Script wants to be low resource-intensive, powerful and secure. pH7CMS is included with 30+ modules and based on pH7Framework. It is also the first Professional, Free & Open Source Social Dating Site Builder Software and the first choice for creating enterprise level Dating Apps/Service or Social Networking Sites","fork":false,"url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS","forks_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/forks","keys_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/teams","hooks_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/hooks","issue_events_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/issues/events{/number}","events_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/events","assignees_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/assignees{/user}","branches_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/branches{/branch}","tags_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/tags","blobs_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/git/refs{/sha}","trees_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/statuses/{sha}","languages_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/languages","stargazers_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/stargazers","contributors_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/contributors","subscribers_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/subscribers","subscription_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/subscription","commits_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/commits{/sha}","git_commits_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/git/commits{/sha}","comments_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/comments{/number}","issue_comment_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/issues/comments{/number}","contents_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/contents/{+path}","compare_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/merges","archive_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/downloads","issues_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/issues{/number}","pulls_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls{/number}","milestones_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/milestones{/number}","notifications_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/labels{/name}","releases_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/releases{/id}","deployments_url":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/deployments","created_at":"2013-03-02T00:26:00Z","updated_at":"2018-05-24T15:37:10Z","pushed_at":"2018-05-24T20:46:52Z","git_url":"git://github.com/pH7Software/pH7-Social-Dating-CMS.git","ssh_url":"git@github.com:pH7Software/pH7-Social-Dating-CMS.git","clone_url":"https://github.com/pH7Software/pH7-Social-Dating-CMS.git","svn_url":"https://github.com/pH7Software/pH7-Social-Dating-CMS","homepage":"https://sourceforge.net/projects/ph7socialdating/","size":516240,"stargazers_count":197,"watchers_count":197,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":171,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":171,"open_issues":14,"watchers":197,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209"},"html":{"href":"https://github.com/pH7Software/pH7-Social-Dating-CMS/pull/209"},"issue":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/issues/209"},"comments":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/pH7Software/pH7-Social-Dating-CMS/statuses/a7153a0a899dd7e458c5d2e4b7b5c371fcdf3dda"}},"author_association":"NONE"}}
{"actor":{"display_login":"Nitpick-CI"}}