{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/24682851","id":24682851,"diff_hunk":"@@ -129,6 +130,24 @@ public static function format($value, array $options = [])\n     }\n \n     /**\n+     * Parse a localized numeric string and transform it\n+     * in a float point\n+     *\n+     * @param string $value A numeric string.\n+     * @param string|null $locale Locale of the formatted number\n+     * @return float point number\n+     */\n+    public static function parseFloat($value, $locale = null)\n+    {\n+        if ($locale === null) {\n+            $locale = Locale::getDefault();\n+        }\n+\n+        $formatter = new NumberFormatter($locale, NumberFormatter::DECIMAL);","path":"src/I18n/Number.php","position":25,"original_position":25,"commit_id":"dea0be478fb78ea876564ff59c86765977c77bcd","original_commit_id":"dea0be478fb78ea876564ff59c86765977c77bcd","user":{"login":"lorenzo","id":37621,"avatar_url":"https://avatars.githubusercontent.com/u/37621?v=3","gravatar_id":"","url":"https://api.github.com/users/lorenzo","html_url":"https://github.com/lorenzo","followers_url":"https://api.github.com/users/lorenzo/followers","following_url":"https://api.github.com/users/lorenzo/following{/other_user}","gists_url":"https://api.github.com/users/lorenzo/gists{/gist_id}","starred_url":"https://api.github.com/users/lorenzo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorenzo/subscriptions","organizations_url":"https://api.github.com/users/lorenzo/orgs","repos_url":"https://api.github.com/users/lorenzo/repos","events_url":"https://api.github.com/users/lorenzo/events{/privacy}","received_events_url":"https://api.github.com/users/lorenzo/received_events","type":"User","site_admin":false},"body":"You should probably use `Number::formatter()` instead","created_at":"2015-02-13T18:00:12Z","updated_at":"2015-02-13T18:00:12Z","html_url":"https://github.com/cakephp/cakephp/pull/5880#discussion_r24682851","pull_request_url":"https://api.github.com/repos/cakephp/cakephp/pulls/5880","_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/24682851"},"html":{"href":"https://github.com/cakephp/cakephp/pull/5880#discussion_r24682851"},"pull_request":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/5880"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/5880","id":29238986,"html_url":"https://github.com/cakephp/cakephp/pull/5880","diff_url":"https://github.com/cakephp/cakephp/pull/5880.diff","patch_url":"https://github.com/cakephp/cakephp/pull/5880.patch","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/5880","number":5880,"state":"open","locked":false,"title":"Make FloatType locale aware","user":{"login":"CauanCabral","id":83092,"avatar_url":"https://avatars.githubusercontent.com/u/83092?v=3","gravatar_id":"","url":"https://api.github.com/users/CauanCabral","html_url":"https://github.com/CauanCabral","followers_url":"https://api.github.com/users/CauanCabral/followers","following_url":"https://api.github.com/users/CauanCabral/following{/other_user}","gists_url":"https://api.github.com/users/CauanCabral/gists{/gist_id}","starred_url":"https://api.github.com/users/CauanCabral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CauanCabral/subscriptions","organizations_url":"https://api.github.com/users/CauanCabral/orgs","repos_url":"https://api.github.com/users/CauanCabral/repos","events_url":"https://api.github.com/users/CauanCabral/events{/privacy}","received_events_url":"https://api.github.com/users/CauanCabral/received_events","type":"User","site_admin":false},"body":"As discussion in #5876 ","created_at":"2015-02-13T04:02:22Z","updated_at":"2015-02-13T18:00:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40e629f12806086f8c3ccaef0e0e4c94d22ee27f","assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/7","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/7/labels","id":453043,"number":7,"title":"3.0.0","description":"New major release that breaks compatibility with 2.x\r\n\r\n- PHP5.4.19+\r\n- New ORM & behaviors.\r\n- Improved Routing\r\n- PSR-0 and composer support.\r\n- Simpler configuration and bootstrapping.\r\n- Improved configuration handling.\r\n- Improved bake.\r\n\r\nSee [the roadmap](http://github.com/cakephp/cakephp/wiki/3.0-roadmap) for more details.","creator":{"login":"lh-import","id":5175817,"avatar_url":"https://avatars.githubusercontent.com/u/5175817?v=3","gravatar_id":"","url":"https://api.github.com/users/lh-import","html_url":"https://github.com/lh-import","followers_url":"https://api.github.com/users/lh-import/followers","following_url":"https://api.github.com/users/lh-import/following{/other_user}","gists_url":"https://api.github.com/users/lh-import/gists{/gist_id}","starred_url":"https://api.github.com/users/lh-import/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lh-import/subscriptions","organizations_url":"https://api.github.com/users/lh-import/orgs","repos_url":"https://api.github.com/users/lh-import/repos","events_url":"https://api.github.com/users/lh-import/events{/privacy}","received_events_url":"https://api.github.com/users/lh-import/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":2301,"state":"open","created_at":"2013-10-11T20:56:23Z","updated_at":"2015-02-13T17:42:16Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/cakephp/pulls/5880/commits","review_comments_url":"https://api.github.com/repos/cakephp/cakephp/pulls/5880/comments","review_comment_url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/5880/comments","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/dea0be478fb78ea876564ff59c86765977c77bcd","head":{"label":"CauanCabral:3.0-FloatI18n","ref":"3.0-FloatI18n","sha":"dea0be478fb78ea876564ff59c86765977c77bcd","user":{"login":"CauanCabral","id":83092,"avatar_url":"https://avatars.githubusercontent.com/u/83092?v=3","gravatar_id":"","url":"https://api.github.com/users/CauanCabral","html_url":"https://github.com/CauanCabral","followers_url":"https://api.github.com/users/CauanCabral/followers","following_url":"https://api.github.com/users/CauanCabral/following{/other_user}","gists_url":"https://api.github.com/users/CauanCabral/gists{/gist_id}","starred_url":"https://api.github.com/users/CauanCabral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CauanCabral/subscriptions","organizations_url":"https://api.github.com/users/CauanCabral/orgs","repos_url":"https://api.github.com/users/CauanCabral/repos","events_url":"https://api.github.com/users/CauanCabral/events{/privacy}","received_events_url":"https://api.github.com/users/CauanCabral/received_events","type":"User","site_admin":false},"repo":{"id":30736939,"name":"cakephp","full_name":"CauanCabral/cakephp","owner":{"login":"CauanCabral","id":83092,"avatar_url":"https://avatars.githubusercontent.com/u/83092?v=3","gravatar_id":"","url":"https://api.github.com/users/CauanCabral","html_url":"https://github.com/CauanCabral","followers_url":"https://api.github.com/users/CauanCabral/followers","following_url":"https://api.github.com/users/CauanCabral/following{/other_user}","gists_url":"https://api.github.com/users/CauanCabral/gists{/gist_id}","starred_url":"https://api.github.com/users/CauanCabral/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CauanCabral/subscriptions","organizations_url":"https://api.github.com/users/CauanCabral/orgs","repos_url":"https://api.github.com/users/CauanCabral/repos","events_url":"https://api.github.com/users/CauanCabral/events{/privacy}","received_events_url":"https://api.github.com/users/CauanCabral/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CauanCabral/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":true,"url":"https://api.github.com/repos/CauanCabral/cakephp","forks_url":"https://api.github.com/repos/CauanCabral/cakephp/forks","keys_url":"https://api.github.com/repos/CauanCabral/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CauanCabral/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CauanCabral/cakephp/teams","hooks_url":"https://api.github.com/repos/CauanCabral/cakephp/hooks","issue_events_url":"https://api.github.com/repos/CauanCabral/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/CauanCabral/cakephp/events","assignees_url":"https://api.github.com/repos/CauanCabral/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/CauanCabral/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/CauanCabral/cakephp/tags","blobs_url":"https://api.github.com/repos/CauanCabral/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CauanCabral/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CauanCabral/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/CauanCabral/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CauanCabral/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/CauanCabral/cakephp/languages","stargazers_url":"https://api.github.com/repos/CauanCabral/cakephp/stargazers","contributors_url":"https://api.github.com/repos/CauanCabral/cakephp/contributors","subscribers_url":"https://api.github.com/repos/CauanCabral/cakephp/subscribers","subscription_url":"https://api.github.com/repos/CauanCabral/cakephp/subscription","commits_url":"https://api.github.com/repos/CauanCabral/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/CauanCabral/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/CauanCabral/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/CauanCabral/cakephp/issues/comments/{number}","contents_url":"https://api.github.com/repos/CauanCabral/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/CauanCabral/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CauanCabral/cakephp/merges","archive_url":"https://api.github.com/repos/CauanCabral/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CauanCabral/cakephp/downloads","issues_url":"https://api.github.com/repos/CauanCabral/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/CauanCabral/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/CauanCabral/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/CauanCabral/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CauanCabral/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/CauanCabral/cakephp/releases{/id}","created_at":"2015-02-13T02:39:49Z","updated_at":"2015-02-13T02:39:56Z","pushed_at":"2015-02-13T04:14:16Z","git_url":"git://github.com/CauanCabral/cakephp.git","ssh_url":"git@github.com:CauanCabral/cakephp.git","clone_url":"https://github.com/CauanCabral/cakephp.git","svn_url":"https://github.com/CauanCabral/cakephp","homepage":"http://cakephp.org","size":151785,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:3.0","ref":"3.0","sha":"ca19dae4347db6e622b9a836a7c730dc290b19fa","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":656494,"name":"cakephp","full_name":"cakephp/cakephp","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":false,"url":"https://api.github.com/repos/cakephp/cakephp","forks_url":"https://api.github.com/repos/cakephp/cakephp/forks","keys_url":"https://api.github.com/repos/cakephp/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/cakephp/teams","hooks_url":"https://api.github.com/repos/cakephp/cakephp/hooks","issue_events_url":"https://api.github.com/repos/cakephp/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/cakephp/events","assignees_url":"https://api.github.com/repos/cakephp/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/cakephp/tags","blobs_url":"https://api.github.com/repos/cakephp/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/cakephp/languages","stargazers_url":"https://api.github.com/repos/cakephp/cakephp/stargazers","contributors_url":"https://api.github.com/repos/cakephp/cakephp/contributors","subscribers_url":"https://api.github.com/repos/cakephp/cakephp/subscribers","subscription_url":"https://api.github.com/repos/cakephp/cakephp/subscription","commits_url":"https://api.github.com/repos/cakephp/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/{number}","contents_url":"https://api.github.com/repos/cakephp/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/cakephp/merges","archive_url":"https://api.github.com/repos/cakephp/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/cakephp/downloads","issues_url":"https://api.github.com/repos/cakephp/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/cakephp/releases{/id}","created_at":"2010-05-08T14:38:22Z","updated_at":"2015-02-13T15:58:53Z","pushed_at":"2015-02-13T17:42:12Z","git_url":"git://github.com/cakephp/cakephp.git","ssh_url":"git@github.com:cakephp/cakephp.git","clone_url":"https://github.com/cakephp/cakephp.git","svn_url":"https://github.com/cakephp/cakephp","homepage":"http://cakephp.org","size":151785,"stargazers_count":5503,"watchers_count":5503,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2451,"mirror_url":null,"open_issues_count":118,"forks":2451,"open_issues":118,"watchers":5503,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/5880"},"html":{"href":"https://github.com/cakephp/cakephp/pull/5880"},"issue":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/5880"},"comments":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/5880/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/5880/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/5880/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/cakephp/statuses/dea0be478fb78ea876564ff59c86765977c77bcd"}}}}