{"action":"created","comment":{"url":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/comments/68386088","id":68386088,"diff_hunk":"@@ -335,4 +335,36 @@ function OnAfterUserAddHandler(&$arFields){\n         );\n         $user->Update($arFields[\"ID\"], $fields);\n     }\n+    \n+    // очистка корзины после авторизации (кроме последнего добавленного комплекта)\n+    AddEventHandler(\"main\", \"OnAfterUserAuthorize\", \"CleaningBasket\");\n+    function CleaningBasket($arUser){","path":"local/php_interface/s1/init.php","position":277,"original_position":277,"commit_id":"2fd8b93f70ba26a3547cf8c23183dca1db6500da","original_commit_id":"2fd8b93f70ba26a3547cf8c23183dca1db6500da","user":{"login":"Mike-webGK","id":8722708,"avatar_url":"https://avatars.githubusercontent.com/u/8722708?v=3","gravatar_id":"","url":"https://api.github.com/users/Mike-webGK","html_url":"https://github.com/Mike-webGK","followers_url":"https://api.github.com/users/Mike-webGK/followers","following_url":"https://api.github.com/users/Mike-webGK/following{/other_user}","gists_url":"https://api.github.com/users/Mike-webGK/gists{/gist_id}","starred_url":"https://api.github.com/users/Mike-webGK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mike-webGK/subscriptions","organizations_url":"https://api.github.com/users/Mike-webGK/orgs","repos_url":"https://api.github.com/users/Mike-webGK/repos","events_url":"https://api.github.com/users/Mike-webGK/events{/privacy}","received_events_url":"https://api.github.com/users/Mike-webGK/received_events","type":"User","site_admin":false},"body":"Название функции с маленькой буквы, нет php doc, пробел перед {","created_at":"2016-06-24T11:34:05Z","updated_at":"2016-06-24T11:34:05Z","html_url":"https://github.com/gitwebgk/shaveclub/pull/48#discussion_r68386088","pull_request_url":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/comments/68386088"},"html":{"href":"https://github.com/gitwebgk/shaveclub/pull/48#discussion_r68386088"},"pull_request":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48","id":75100523,"html_url":"https://github.com/gitwebgk/shaveclub/pull/48","diff_url":"https://github.com/gitwebgk/shaveclub/pull/48.diff","patch_url":"https://github.com/gitwebgk/shaveclub/pull/48.patch","issue_url":"https://api.github.com/repos/gitwebgk/shaveclub/issues/48","number":48,"state":"open","locked":false,"title":"SUP-4388: writing function for basket's cleaning after authorization","user":{"login":"raulttk","id":15771382,"avatar_url":"https://avatars.githubusercontent.com/u/15771382?v=3","gravatar_id":"","url":"https://api.github.com/users/raulttk","html_url":"https://github.com/raulttk","followers_url":"https://api.github.com/users/raulttk/followers","following_url":"https://api.github.com/users/raulttk/following{/other_user}","gists_url":"https://api.github.com/users/raulttk/gists{/gist_id}","starred_url":"https://api.github.com/users/raulttk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulttk/subscriptions","organizations_url":"https://api.github.com/users/raulttk/orgs","repos_url":"https://api.github.com/users/raulttk/repos","events_url":"https://api.github.com/users/raulttk/events{/privacy}","received_events_url":"https://api.github.com/users/raulttk/received_events","type":"User","site_admin":false},"body":"Написание в init.php функции для очистки корзины после авторизации, за исключением последнего добавленного комплекта.","created_at":"2016-06-24T11:26:47Z","updated_at":"2016-06-24T11:34:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33cb154f507be1557d9a1b6de62cfc4b91496800","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48/commits","review_comments_url":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48/comments","review_comment_url":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gitwebgk/shaveclub/issues/48/comments","statuses_url":"https://api.github.com/repos/gitwebgk/shaveclub/statuses/2fd8b93f70ba26a3547cf8c23183dca1db6500da","head":{"label":"raulttk:SUP-4388","ref":"SUP-4388","sha":"2fd8b93f70ba26a3547cf8c23183dca1db6500da","user":{"login":"raulttk","id":15771382,"avatar_url":"https://avatars.githubusercontent.com/u/15771382?v=3","gravatar_id":"","url":"https://api.github.com/users/raulttk","html_url":"https://github.com/raulttk","followers_url":"https://api.github.com/users/raulttk/followers","following_url":"https://api.github.com/users/raulttk/following{/other_user}","gists_url":"https://api.github.com/users/raulttk/gists{/gist_id}","starred_url":"https://api.github.com/users/raulttk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulttk/subscriptions","organizations_url":"https://api.github.com/users/raulttk/orgs","repos_url":"https://api.github.com/users/raulttk/repos","events_url":"https://api.github.com/users/raulttk/events{/privacy}","received_events_url":"https://api.github.com/users/raulttk/received_events","type":"User","site_admin":false},"repo":{"id":60266466,"name":"shaveclub","full_name":"raulttk/shaveclub","owner":{"login":"raulttk","id":15771382,"avatar_url":"https://avatars.githubusercontent.com/u/15771382?v=3","gravatar_id":"","url":"https://api.github.com/users/raulttk","html_url":"https://github.com/raulttk","followers_url":"https://api.github.com/users/raulttk/followers","following_url":"https://api.github.com/users/raulttk/following{/other_user}","gists_url":"https://api.github.com/users/raulttk/gists{/gist_id}","starred_url":"https://api.github.com/users/raulttk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulttk/subscriptions","organizations_url":"https://api.github.com/users/raulttk/orgs","repos_url":"https://api.github.com/users/raulttk/repos","events_url":"https://api.github.com/users/raulttk/events{/privacy}","received_events_url":"https://api.github.com/users/raulttk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raulttk/shaveclub","description":"","fork":true,"url":"https://api.github.com/repos/raulttk/shaveclub","forks_url":"https://api.github.com/repos/raulttk/shaveclub/forks","keys_url":"https://api.github.com/repos/raulttk/shaveclub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raulttk/shaveclub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raulttk/shaveclub/teams","hooks_url":"https://api.github.com/repos/raulttk/shaveclub/hooks","issue_events_url":"https://api.github.com/repos/raulttk/shaveclub/issues/events{/number}","events_url":"https://api.github.com/repos/raulttk/shaveclub/events","assignees_url":"https://api.github.com/repos/raulttk/shaveclub/assignees{/user}","branches_url":"https://api.github.com/repos/raulttk/shaveclub/branches{/branch}","tags_url":"https://api.github.com/repos/raulttk/shaveclub/tags","blobs_url":"https://api.github.com/repos/raulttk/shaveclub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raulttk/shaveclub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raulttk/shaveclub/git/refs{/sha}","trees_url":"https://api.github.com/repos/raulttk/shaveclub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raulttk/shaveclub/statuses/{sha}","languages_url":"https://api.github.com/repos/raulttk/shaveclub/languages","stargazers_url":"https://api.github.com/repos/raulttk/shaveclub/stargazers","contributors_url":"https://api.github.com/repos/raulttk/shaveclub/contributors","subscribers_url":"https://api.github.com/repos/raulttk/shaveclub/subscribers","subscription_url":"https://api.github.com/repos/raulttk/shaveclub/subscription","commits_url":"https://api.github.com/repos/raulttk/shaveclub/commits{/sha}","git_commits_url":"https://api.github.com/repos/raulttk/shaveclub/git/commits{/sha}","comments_url":"https://api.github.com/repos/raulttk/shaveclub/comments{/number}","issue_comment_url":"https://api.github.com/repos/raulttk/shaveclub/issues/comments{/number}","contents_url":"https://api.github.com/repos/raulttk/shaveclub/contents/{+path}","compare_url":"https://api.github.com/repos/raulttk/shaveclub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raulttk/shaveclub/merges","archive_url":"https://api.github.com/repos/raulttk/shaveclub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raulttk/shaveclub/downloads","issues_url":"https://api.github.com/repos/raulttk/shaveclub/issues{/number}","pulls_url":"https://api.github.com/repos/raulttk/shaveclub/pulls{/number}","milestones_url":"https://api.github.com/repos/raulttk/shaveclub/milestones{/number}","notifications_url":"https://api.github.com/repos/raulttk/shaveclub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raulttk/shaveclub/labels{/name}","releases_url":"https://api.github.com/repos/raulttk/shaveclub/releases{/id}","deployments_url":"https://api.github.com/repos/raulttk/shaveclub/deployments","created_at":"2016-06-02T13:30:42Z","updated_at":"2016-06-02T13:30:58Z","pushed_at":"2016-06-24T11:28:11Z","git_url":"git://github.com/raulttk/shaveclub.git","ssh_url":"git@github.com:raulttk/shaveclub.git","clone_url":"https://github.com/raulttk/shaveclub.git","svn_url":"https://github.com/raulttk/shaveclub","homepage":null,"size":17041,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gitwebgk:master","ref":"master","sha":"f5358cc965f95fcf2b5c3e0a23cce1dfd329baa8","user":{"login":"gitwebgk","id":18343791,"avatar_url":"https://avatars.githubusercontent.com/u/18343791?v=3","gravatar_id":"","url":"https://api.github.com/users/gitwebgk","html_url":"https://github.com/gitwebgk","followers_url":"https://api.github.com/users/gitwebgk/followers","following_url":"https://api.github.com/users/gitwebgk/following{/other_user}","gists_url":"https://api.github.com/users/gitwebgk/gists{/gist_id}","starred_url":"https://api.github.com/users/gitwebgk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitwebgk/subscriptions","organizations_url":"https://api.github.com/users/gitwebgk/orgs","repos_url":"https://api.github.com/users/gitwebgk/repos","events_url":"https://api.github.com/users/gitwebgk/events{/privacy}","received_events_url":"https://api.github.com/users/gitwebgk/received_events","type":"User","site_admin":false},"repo":{"id":56591424,"name":"shaveclub","full_name":"gitwebgk/shaveclub","owner":{"login":"gitwebgk","id":18343791,"avatar_url":"https://avatars.githubusercontent.com/u/18343791?v=3","gravatar_id":"","url":"https://api.github.com/users/gitwebgk","html_url":"https://github.com/gitwebgk","followers_url":"https://api.github.com/users/gitwebgk/followers","following_url":"https://api.github.com/users/gitwebgk/following{/other_user}","gists_url":"https://api.github.com/users/gitwebgk/gists{/gist_id}","starred_url":"https://api.github.com/users/gitwebgk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitwebgk/subscriptions","organizations_url":"https://api.github.com/users/gitwebgk/orgs","repos_url":"https://api.github.com/users/gitwebgk/repos","events_url":"https://api.github.com/users/gitwebgk/events{/privacy}","received_events_url":"https://api.github.com/users/gitwebgk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gitwebgk/shaveclub","description":"","fork":false,"url":"https://api.github.com/repos/gitwebgk/shaveclub","forks_url":"https://api.github.com/repos/gitwebgk/shaveclub/forks","keys_url":"https://api.github.com/repos/gitwebgk/shaveclub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitwebgk/shaveclub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitwebgk/shaveclub/teams","hooks_url":"https://api.github.com/repos/gitwebgk/shaveclub/hooks","issue_events_url":"https://api.github.com/repos/gitwebgk/shaveclub/issues/events{/number}","events_url":"https://api.github.com/repos/gitwebgk/shaveclub/events","assignees_url":"https://api.github.com/repos/gitwebgk/shaveclub/assignees{/user}","branches_url":"https://api.github.com/repos/gitwebgk/shaveclub/branches{/branch}","tags_url":"https://api.github.com/repos/gitwebgk/shaveclub/tags","blobs_url":"https://api.github.com/repos/gitwebgk/shaveclub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitwebgk/shaveclub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitwebgk/shaveclub/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitwebgk/shaveclub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitwebgk/shaveclub/statuses/{sha}","languages_url":"https://api.github.com/repos/gitwebgk/shaveclub/languages","stargazers_url":"https://api.github.com/repos/gitwebgk/shaveclub/stargazers","contributors_url":"https://api.github.com/repos/gitwebgk/shaveclub/contributors","subscribers_url":"https://api.github.com/repos/gitwebgk/shaveclub/subscribers","subscription_url":"https://api.github.com/repos/gitwebgk/shaveclub/subscription","commits_url":"https://api.github.com/repos/gitwebgk/shaveclub/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitwebgk/shaveclub/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitwebgk/shaveclub/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitwebgk/shaveclub/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitwebgk/shaveclub/contents/{+path}","compare_url":"https://api.github.com/repos/gitwebgk/shaveclub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitwebgk/shaveclub/merges","archive_url":"https://api.github.com/repos/gitwebgk/shaveclub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitwebgk/shaveclub/downloads","issues_url":"https://api.github.com/repos/gitwebgk/shaveclub/issues{/number}","pulls_url":"https://api.github.com/repos/gitwebgk/shaveclub/pulls{/number}","milestones_url":"https://api.github.com/repos/gitwebgk/shaveclub/milestones{/number}","notifications_url":"https://api.github.com/repos/gitwebgk/shaveclub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitwebgk/shaveclub/labels{/name}","releases_url":"https://api.github.com/repos/gitwebgk/shaveclub/releases{/id}","deployments_url":"https://api.github.com/repos/gitwebgk/shaveclub/deployments","created_at":"2016-04-19T11:35:06Z","updated_at":"2016-04-22T06:39:50Z","pushed_at":"2016-06-24T11:28:12Z","git_url":"git://github.com/gitwebgk/shaveclub.git","ssh_url":"git@github.com:gitwebgk/shaveclub.git","clone_url":"https://github.com/gitwebgk/shaveclub.git","svn_url":"https://github.com/gitwebgk/shaveclub","homepage":null,"size":17060,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48"},"html":{"href":"https://github.com/gitwebgk/shaveclub/pull/48"},"issue":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/issues/48"},"comments":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/gitwebgk/shaveclub/statuses/2fd8b93f70ba26a3547cf8c23183dca1db6500da"}}}}
{"actor":{"display_login":"Mike-webGK"}}