{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/rtlopez/decimal/pulls/7","id":232394242,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMzk0MjQy","html_url":"https://github.com/rtlopez/decimal/pull/7","diff_url":"https://github.com/rtlopez/decimal/pull/7.diff","patch_url":"https://github.com/rtlopez/decimal/pull/7.patch","issue_url":"https://api.github.com/repos/rtlopez/decimal/issues/7","number":7,"state":"open","locked":false,"title":"Fix format bug and add options","user":{"login":"SaraivaDaniel","id":2118154,"node_id":"MDQ6VXNlcjIxMTgxNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2118154?v=4","gravatar_id":"","url":"https://api.github.com/users/SaraivaDaniel","html_url":"https://github.com/SaraivaDaniel","followers_url":"https://api.github.com/users/SaraivaDaniel/followers","following_url":"https://api.github.com/users/SaraivaDaniel/following{/other_user}","gists_url":"https://api.github.com/users/SaraivaDaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraivaDaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraivaDaniel/subscriptions","organizations_url":"https://api.github.com/users/SaraivaDaniel/orgs","repos_url":"https://api.github.com/users/SaraivaDaniel/repos","events_url":"https://api.github.com/users/SaraivaDaniel/events{/privacy}","received_events_url":"https://api.github.com/users/SaraivaDaniel/received_events","type":"User","site_admin":false},"body":"Fix format bug when using thousands separator other than spaces and when formatting with zero digits in decimal part.\r\n\r\nE.g.: \r\n```php\r\n$value = \\RtLopez\\Decimal::create('135.825', 3);\r\necho $value->format(0, \",\", \".\");\r\n\r\nBefore fix:\r\nExpected: \"135\"\r\nActual: \".135,\"\r\n\r\nAfter fix:\r\nActual: \"135\"\r\n```\r\n\r\nAlso provides an way for defining default thousands separator and decimal point, without breaking backwards compatibility. ","created_at":"2018-11-20T17:05:47Z","updated_at":"2018-11-20T17:05:47Z","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/rtlopez/decimal/pulls/7/commits","review_comments_url":"https://api.github.com/repos/rtlopez/decimal/pulls/7/comments","review_comment_url":"https://api.github.com/repos/rtlopez/decimal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rtlopez/decimal/issues/7/comments","statuses_url":"https://api.github.com/repos/rtlopez/decimal/statuses/47d2332b7c7b3810e78016c8543d926e298e04ce","head":{"label":"SaraivaDaniel:fix-format-bug","ref":"fix-format-bug","sha":"47d2332b7c7b3810e78016c8543d926e298e04ce","user":{"login":"SaraivaDaniel","id":2118154,"node_id":"MDQ6VXNlcjIxMTgxNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2118154?v=4","gravatar_id":"","url":"https://api.github.com/users/SaraivaDaniel","html_url":"https://github.com/SaraivaDaniel","followers_url":"https://api.github.com/users/SaraivaDaniel/followers","following_url":"https://api.github.com/users/SaraivaDaniel/following{/other_user}","gists_url":"https://api.github.com/users/SaraivaDaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraivaDaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraivaDaniel/subscriptions","organizations_url":"https://api.github.com/users/SaraivaDaniel/orgs","repos_url":"https://api.github.com/users/SaraivaDaniel/repos","events_url":"https://api.github.com/users/SaraivaDaniel/events{/privacy}","received_events_url":"https://api.github.com/users/SaraivaDaniel/received_events","type":"User","site_admin":false},"repo":{"id":158417985,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg0MTc5ODU=","name":"decimal","full_name":"SaraivaDaniel/decimal","private":false,"owner":{"login":"SaraivaDaniel","id":2118154,"node_id":"MDQ6VXNlcjIxMTgxNTQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2118154?v=4","gravatar_id":"","url":"https://api.github.com/users/SaraivaDaniel","html_url":"https://github.com/SaraivaDaniel","followers_url":"https://api.github.com/users/SaraivaDaniel/followers","following_url":"https://api.github.com/users/SaraivaDaniel/following{/other_user}","gists_url":"https://api.github.com/users/SaraivaDaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraivaDaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraivaDaniel/subscriptions","organizations_url":"https://api.github.com/users/SaraivaDaniel/orgs","repos_url":"https://api.github.com/users/SaraivaDaniel/repos","events_url":"https://api.github.com/users/SaraivaDaniel/events{/privacy}","received_events_url":"https://api.github.com/users/SaraivaDaniel/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SaraivaDaniel/decimal","description":"An object oriented arbitrary precision arithmetic library for PHP","fork":true,"url":"https://api.github.com/repos/SaraivaDaniel/decimal","forks_url":"https://api.github.com/repos/SaraivaDaniel/decimal/forks","keys_url":"https://api.github.com/repos/SaraivaDaniel/decimal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SaraivaDaniel/decimal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SaraivaDaniel/decimal/teams","hooks_url":"https://api.github.com/repos/SaraivaDaniel/decimal/hooks","issue_events_url":"https://api.github.com/repos/SaraivaDaniel/decimal/issues/events{/number}","events_url":"https://api.github.com/repos/SaraivaDaniel/decimal/events","assignees_url":"https://api.github.com/repos/SaraivaDaniel/decimal/assignees{/user}","branches_url":"https://api.github.com/repos/SaraivaDaniel/decimal/branches{/branch}","tags_url":"https://api.github.com/repos/SaraivaDaniel/decimal/tags","blobs_url":"https://api.github.com/repos/SaraivaDaniel/decimal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SaraivaDaniel/decimal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SaraivaDaniel/decimal/git/refs{/sha}","trees_url":"https://api.github.com/repos/SaraivaDaniel/decimal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SaraivaDaniel/decimal/statuses/{sha}","languages_url":"https://api.github.com/repos/SaraivaDaniel/decimal/languages","stargazers_url":"https://api.github.com/repos/SaraivaDaniel/decimal/stargazers","contributors_url":"https://api.github.com/repos/SaraivaDaniel/decimal/contributors","subscribers_url":"https://api.github.com/repos/SaraivaDaniel/decimal/subscribers","subscription_url":"https://api.github.com/repos/SaraivaDaniel/decimal/subscription","commits_url":"https://api.github.com/repos/SaraivaDaniel/decimal/commits{/sha}","git_commits_url":"https://api.github.com/repos/SaraivaDaniel/decimal/git/commits{/sha}","comments_url":"https://api.github.com/repos/SaraivaDaniel/decimal/comments{/number}","issue_comment_url":"https://api.github.com/repos/SaraivaDaniel/decimal/issues/comments{/number}","contents_url":"https://api.github.com/repos/SaraivaDaniel/decimal/contents/{+path}","compare_url":"https://api.github.com/repos/SaraivaDaniel/decimal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SaraivaDaniel/decimal/merges","archive_url":"https://api.github.com/repos/SaraivaDaniel/decimal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SaraivaDaniel/decimal/downloads","issues_url":"https://api.github.com/repos/SaraivaDaniel/decimal/issues{/number}","pulls_url":"https://api.github.com/repos/SaraivaDaniel/decimal/pulls{/number}","milestones_url":"https://api.github.com/repos/SaraivaDaniel/decimal/milestones{/number}","notifications_url":"https://api.github.com/repos/SaraivaDaniel/decimal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SaraivaDaniel/decimal/labels{/name}","releases_url":"https://api.github.com/repos/SaraivaDaniel/decimal/releases{/id}","deployments_url":"https://api.github.com/repos/SaraivaDaniel/decimal/deployments","created_at":"2018-11-20T16:16:32Z","updated_at":"2018-11-20T16:16:35Z","pushed_at":"2018-11-20T17:00:06Z","git_url":"git://github.com/SaraivaDaniel/decimal.git","ssh_url":"git@github.com:SaraivaDaniel/decimal.git","clone_url":"https://github.com/SaraivaDaniel/decimal.git","svn_url":"https://github.com/SaraivaDaniel/decimal","homepage":"","size":34,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rtlopez:master","ref":"master","sha":"854e182c6023fb2ac6c7893a7ba4cade967f0c4c","user":{"login":"rtlopez","id":1812055,"node_id":"MDQ6VXNlcjE4MTIwNTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1812055?v=4","gravatar_id":"","url":"https://api.github.com/users/rtlopez","html_url":"https://github.com/rtlopez","followers_url":"https://api.github.com/users/rtlopez/followers","following_url":"https://api.github.com/users/rtlopez/following{/other_user}","gists_url":"https://api.github.com/users/rtlopez/gists{/gist_id}","starred_url":"https://api.github.com/users/rtlopez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtlopez/subscriptions","organizations_url":"https://api.github.com/users/rtlopez/orgs","repos_url":"https://api.github.com/users/rtlopez/repos","events_url":"https://api.github.com/users/rtlopez/events{/privacy}","received_events_url":"https://api.github.com/users/rtlopez/received_events","type":"User","site_admin":false},"repo":{"id":18412609,"node_id":"MDEwOlJlcG9zaXRvcnkxODQxMjYwOQ==","name":"decimal","full_name":"rtlopez/decimal","private":false,"owner":{"login":"rtlopez","id":1812055,"node_id":"MDQ6VXNlcjE4MTIwNTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1812055?v=4","gravatar_id":"","url":"https://api.github.com/users/rtlopez","html_url":"https://github.com/rtlopez","followers_url":"https://api.github.com/users/rtlopez/followers","following_url":"https://api.github.com/users/rtlopez/following{/other_user}","gists_url":"https://api.github.com/users/rtlopez/gists{/gist_id}","starred_url":"https://api.github.com/users/rtlopez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtlopez/subscriptions","organizations_url":"https://api.github.com/users/rtlopez/orgs","repos_url":"https://api.github.com/users/rtlopez/repos","events_url":"https://api.github.com/users/rtlopez/events{/privacy}","received_events_url":"https://api.github.com/users/rtlopez/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rtlopez/decimal","description":"An object oriented arbitrary precision arithmetic library for PHP","fork":false,"url":"https://api.github.com/repos/rtlopez/decimal","forks_url":"https://api.github.com/repos/rtlopez/decimal/forks","keys_url":"https://api.github.com/repos/rtlopez/decimal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rtlopez/decimal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rtlopez/decimal/teams","hooks_url":"https://api.github.com/repos/rtlopez/decimal/hooks","issue_events_url":"https://api.github.com/repos/rtlopez/decimal/issues/events{/number}","events_url":"https://api.github.com/repos/rtlopez/decimal/events","assignees_url":"https://api.github.com/repos/rtlopez/decimal/assignees{/user}","branches_url":"https://api.github.com/repos/rtlopez/decimal/branches{/branch}","tags_url":"https://api.github.com/repos/rtlopez/decimal/tags","blobs_url":"https://api.github.com/repos/rtlopez/decimal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rtlopez/decimal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rtlopez/decimal/git/refs{/sha}","trees_url":"https://api.github.com/repos/rtlopez/decimal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rtlopez/decimal/statuses/{sha}","languages_url":"https://api.github.com/repos/rtlopez/decimal/languages","stargazers_url":"https://api.github.com/repos/rtlopez/decimal/stargazers","contributors_url":"https://api.github.com/repos/rtlopez/decimal/contributors","subscribers_url":"https://api.github.com/repos/rtlopez/decimal/subscribers","subscription_url":"https://api.github.com/repos/rtlopez/decimal/subscription","commits_url":"https://api.github.com/repos/rtlopez/decimal/commits{/sha}","git_commits_url":"https://api.github.com/repos/rtlopez/decimal/git/commits{/sha}","comments_url":"https://api.github.com/repos/rtlopez/decimal/comments{/number}","issue_comment_url":"https://api.github.com/repos/rtlopez/decimal/issues/comments{/number}","contents_url":"https://api.github.com/repos/rtlopez/decimal/contents/{+path}","compare_url":"https://api.github.com/repos/rtlopez/decimal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rtlopez/decimal/merges","archive_url":"https://api.github.com/repos/rtlopez/decimal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rtlopez/decimal/downloads","issues_url":"https://api.github.com/repos/rtlopez/decimal/issues{/number}","pulls_url":"https://api.github.com/repos/rtlopez/decimal/pulls{/number}","milestones_url":"https://api.github.com/repos/rtlopez/decimal/milestones{/number}","notifications_url":"https://api.github.com/repos/rtlopez/decimal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rtlopez/decimal/labels{/name}","releases_url":"https://api.github.com/repos/rtlopez/decimal/releases{/id}","deployments_url":"https://api.github.com/repos/rtlopez/decimal/deployments","created_at":"2014-04-03T17:54:45Z","updated_at":"2018-10-10T18:18:56Z","pushed_at":"2018-10-19T17:32:02Z","git_url":"git://github.com/rtlopez/decimal.git","ssh_url":"git@github.com:rtlopez/decimal.git","clone_url":"https://github.com/rtlopez/decimal.git","svn_url":"https://github.com/rtlopez/decimal","homepage":"","size":34,"stargazers_count":13,"watchers_count":13,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":7,"open_issues":1,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rtlopez/decimal/pulls/7"},"html":{"href":"https://github.com/rtlopez/decimal/pull/7"},"issue":{"href":"https://api.github.com/repos/rtlopez/decimal/issues/7"},"comments":{"href":"https://api.github.com/repos/rtlopez/decimal/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/rtlopez/decimal/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/rtlopez/decimal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rtlopez/decimal/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/rtlopez/decimal/statuses/47d2332b7c7b3810e78016c8543d926e298e04ce"}},"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":1,"additions":37,"deletions":2,"changed_files":2}}
{"actor":{"display_login":"SaraivaDaniel"}}