{"action":"opened","number":54,"pull_request":{"url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/54","id":220759410,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNzU5NDEw","html_url":"https://github.com/khanamiryan/php-qrcode-detector-decoder/pull/54","diff_url":"https://github.com/khanamiryan/php-qrcode-detector-decoder/pull/54.diff","patch_url":"https://github.com/khanamiryan/php-qrcode-detector-decoder/pull/54.patch","issue_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/issues/54","number":54,"state":"open","locked":false,"title":" Update PerspectiveTransform.php","user":{"login":"nnoujaim","id":21363064,"node_id":"MDQ6VXNlcjIxMzYzMDY0","avatar_url":"https://avatars0.githubusercontent.com/u/21363064?v=4","gravatar_id":"","url":"https://api.github.com/users/nnoujaim","html_url":"https://github.com/nnoujaim","followers_url":"https://api.github.com/users/nnoujaim/followers","following_url":"https://api.github.com/users/nnoujaim/following{/other_user}","gists_url":"https://api.github.com/users/nnoujaim/gists{/gist_id}","starred_url":"https://api.github.com/users/nnoujaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnoujaim/subscriptions","organizations_url":"https://api.github.com/users/nnoujaim/orgs","repos_url":"https://api.github.com/users/nnoujaim/repos","events_url":"https://api.github.com/users/nnoujaim/events{/privacy}","received_events_url":"https://api.github.com/users/nnoujaim/received_events","type":"User","site_admin":false},"body":"On some error correction levels the $denominator variable on line 114 will end up being the integer 0. This is then used as the denominator in the next 2 lines in division which will cause PHP to fatal error and crash the program. By throwing an exception instead we can catch the error and handle it properly.","created_at":"2018-10-05T16:35:21Z","updated_at":"2018-10-05T16:35:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/54/commits","review_comments_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/54/comments","review_comment_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/issues/54/comments","statuses_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/statuses/b7a5905a99362a2a1cf0b6f42fea0d4789ed5e88","head":{"label":"nnoujaim:master","ref":"master","sha":"b7a5905a99362a2a1cf0b6f42fea0d4789ed5e88","user":{"login":"nnoujaim","id":21363064,"node_id":"MDQ6VXNlcjIxMzYzMDY0","avatar_url":"https://avatars0.githubusercontent.com/u/21363064?v=4","gravatar_id":"","url":"https://api.github.com/users/nnoujaim","html_url":"https://github.com/nnoujaim","followers_url":"https://api.github.com/users/nnoujaim/followers","following_url":"https://api.github.com/users/nnoujaim/following{/other_user}","gists_url":"https://api.github.com/users/nnoujaim/gists{/gist_id}","starred_url":"https://api.github.com/users/nnoujaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnoujaim/subscriptions","organizations_url":"https://api.github.com/users/nnoujaim/orgs","repos_url":"https://api.github.com/users/nnoujaim/repos","events_url":"https://api.github.com/users/nnoujaim/events{/privacy}","received_events_url":"https://api.github.com/users/nnoujaim/received_events","type":"User","site_admin":false},"repo":{"id":151748283,"node_id":"MDEwOlJlcG9zaXRvcnkxNTE3NDgyODM=","name":"php-qrcode-detector-decoder","full_name":"nnoujaim/php-qrcode-detector-decoder","private":false,"owner":{"login":"nnoujaim","id":21363064,"node_id":"MDQ6VXNlcjIxMzYzMDY0","avatar_url":"https://avatars0.githubusercontent.com/u/21363064?v=4","gravatar_id":"","url":"https://api.github.com/users/nnoujaim","html_url":"https://github.com/nnoujaim","followers_url":"https://api.github.com/users/nnoujaim/followers","following_url":"https://api.github.com/users/nnoujaim/following{/other_user}","gists_url":"https://api.github.com/users/nnoujaim/gists{/gist_id}","starred_url":"https://api.github.com/users/nnoujaim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnoujaim/subscriptions","organizations_url":"https://api.github.com/users/nnoujaim/orgs","repos_url":"https://api.github.com/users/nnoujaim/repos","events_url":"https://api.github.com/users/nnoujaim/events{/privacy}","received_events_url":"https://api.github.com/users/nnoujaim/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nnoujaim/php-qrcode-detector-decoder","description":"This is a PHP library to detect and decode QR-codes. This is first and only QR code reader that works without extensions.","fork":true,"url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder","forks_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/forks","keys_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/teams","hooks_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/hooks","issue_events_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/issues/events{/number}","events_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/events","assignees_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/assignees{/user}","branches_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/branches{/branch}","tags_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/tags","blobs_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/statuses/{sha}","languages_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/languages","stargazers_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/stargazers","contributors_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/contributors","subscribers_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/subscribers","subscription_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/subscription","commits_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/contents/{+path}","compare_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/merges","archive_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/downloads","issues_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/issues{/number}","pulls_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/pulls{/number}","milestones_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/milestones{/number}","notifications_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/labels{/name}","releases_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/releases{/id}","deployments_url":"https://api.github.com/repos/nnoujaim/php-qrcode-detector-decoder/deployments","created_at":"2018-10-05T16:22:45Z","updated_at":"2018-10-05T16:32:11Z","pushed_at":"2018-10-05T16:32:10Z","git_url":"git://github.com/nnoujaim/php-qrcode-detector-decoder.git","ssh_url":"git@github.com:nnoujaim/php-qrcode-detector-decoder.git","clone_url":"https://github.com/nnoujaim/php-qrcode-detector-decoder.git","svn_url":"https://github.com/nnoujaim/php-qrcode-detector-decoder","homepage":"","size":198,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"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":"khanamiryan:master","ref":"master","sha":"a75482d3bc804e3f6702332bfda6cccbb0dfaa76","user":{"login":"khanamiryan","id":6542341,"node_id":"MDQ6VXNlcjY1NDIzNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6542341?v=4","gravatar_id":"","url":"https://api.github.com/users/khanamiryan","html_url":"https://github.com/khanamiryan","followers_url":"https://api.github.com/users/khanamiryan/followers","following_url":"https://api.github.com/users/khanamiryan/following{/other_user}","gists_url":"https://api.github.com/users/khanamiryan/gists{/gist_id}","starred_url":"https://api.github.com/users/khanamiryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanamiryan/subscriptions","organizations_url":"https://api.github.com/users/khanamiryan/orgs","repos_url":"https://api.github.com/users/khanamiryan/repos","events_url":"https://api.github.com/users/khanamiryan/events{/privacy}","received_events_url":"https://api.github.com/users/khanamiryan/received_events","type":"User","site_admin":false},"repo":{"id":38191198,"node_id":"MDEwOlJlcG9zaXRvcnkzODE5MTE5OA==","name":"php-qrcode-detector-decoder","full_name":"khanamiryan/php-qrcode-detector-decoder","private":false,"owner":{"login":"khanamiryan","id":6542341,"node_id":"MDQ6VXNlcjY1NDIzNDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6542341?v=4","gravatar_id":"","url":"https://api.github.com/users/khanamiryan","html_url":"https://github.com/khanamiryan","followers_url":"https://api.github.com/users/khanamiryan/followers","following_url":"https://api.github.com/users/khanamiryan/following{/other_user}","gists_url":"https://api.github.com/users/khanamiryan/gists{/gist_id}","starred_url":"https://api.github.com/users/khanamiryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khanamiryan/subscriptions","organizations_url":"https://api.github.com/users/khanamiryan/orgs","repos_url":"https://api.github.com/users/khanamiryan/repos","events_url":"https://api.github.com/users/khanamiryan/events{/privacy}","received_events_url":"https://api.github.com/users/khanamiryan/received_events","type":"User","site_admin":false},"html_url":"https://github.com/khanamiryan/php-qrcode-detector-decoder","description":"This is a PHP library to detect and decode QR-codes. This is first and only QR code reader that works without extensions.","fork":false,"url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder","forks_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/forks","keys_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/teams","hooks_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/hooks","issue_events_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/issues/events{/number}","events_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/events","assignees_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/assignees{/user}","branches_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/branches{/branch}","tags_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/tags","blobs_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/statuses/{sha}","languages_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/languages","stargazers_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/stargazers","contributors_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/contributors","subscribers_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/subscribers","subscription_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/subscription","commits_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/contents/{+path}","compare_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/merges","archive_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/downloads","issues_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/issues{/number}","pulls_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls{/number}","milestones_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/milestones{/number}","notifications_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/labels{/name}","releases_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/releases{/id}","deployments_url":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/deployments","created_at":"2015-06-28T08:01:40Z","updated_at":"2018-10-05T12:25:24Z","pushed_at":"2018-09-24T03:11:19Z","git_url":"git://github.com/khanamiryan/php-qrcode-detector-decoder.git","ssh_url":"git@github.com:khanamiryan/php-qrcode-detector-decoder.git","clone_url":"https://github.com/khanamiryan/php-qrcode-detector-decoder.git","svn_url":"https://github.com/khanamiryan/php-qrcode-detector-decoder","homepage":"","size":198,"stargazers_count":503,"watchers_count":503,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":157,"mirror_url":null,"archived":false,"open_issues_count":27,"license":null,"forks":157,"open_issues":27,"watchers":503,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/54"},"html":{"href":"https://github.com/khanamiryan/php-qrcode-detector-decoder/pull/54"},"issue":{"href":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/issues/54"},"comments":{"href":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/khanamiryan/php-qrcode-detector-decoder/statuses/b7a5905a99362a2a1cf0b6f42fea0d4789ed5e88"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":3,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"nnoujaim"}}