{"action":"created","issue":{"url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/221","labels_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/221/comments","events_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/221/events","html_url":"https://github.com/phpfmt/sublime-phpfmt/issues/221","id":123237561,"number":221,"title":"the brackets cannot align","user":{"login":"kokororin","id":10093992,"avatar_url":"https://avatars.githubusercontent.com/u/10093992?v=3","gravatar_id":"","url":"https://api.github.com/users/kokororin","html_url":"https://github.com/kokororin","followers_url":"https://api.github.com/users/kokororin/followers","following_url":"https://api.github.com/users/kokororin/following{/other_user}","gists_url":"https://api.github.com/users/kokororin/gists{/gist_id}","starred_url":"https://api.github.com/users/kokororin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kokororin/subscriptions","organizations_url":"https://api.github.com/users/kokororin/orgs","repos_url":"https://api.github.com/users/kokororin/repos","events_url":"https://api.github.com/users/kokororin/events{/privacy}","received_events_url":"https://api.github.com/users/kokororin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-21T09:11:27Z","updated_at":"2015-12-21T23:36:25Z","closed_at":null,"body":"When I use \"AllmanStyleBraces\" mode,the brackets in \"preg_replace_callback\" 's callback function cannot be aligned.This only occured when  \"preg_replace_callback\"  's  callback function is after a line break.\r\nlike this:\r\n```php\r\n<?php\r\nfunction lazyload_replace($content)\r\n{\r\n    $content = preg_replace_callback('/<img(.+)src=[\\'\"]([^\\'\"]+)[\\'\"](.*)>/i',\r\n        function ($matches)\r\n        {\r\n            $tpl_url = Helper::options()->themeUrl;\r\n            if (strpos($matches[0], 'data-nolazyload') === false)\r\n        {\r\n                return \"<img{$matches[1]}data-original=\\\"{$matches[2]}\\\" rel=\\\"lazyload\\\" src=\\\"{$tpl_url}/img/lazy_loading.gif\\\"{$matches[3]}>\";\r\n            }\r\n            return $matches[0];\r\n\r\n        }, $content);\r\n\r\n    return $content;\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/comments/166458599","html_url":"https://github.com/phpfmt/sublime-phpfmt/issues/221#issuecomment-166458599","issue_url":"https://api.github.com/repos/phpfmt/sublime-phpfmt/issues/221","id":166458599,"user":{"login":"Shaked","id":960015,"avatar_url":"https://avatars.githubusercontent.com/u/960015?v=3","gravatar_id":"","url":"https://api.github.com/users/Shaked","html_url":"https://github.com/Shaked","followers_url":"https://api.github.com/users/Shaked/followers","following_url":"https://api.github.com/users/Shaked/following{/other_user}","gists_url":"https://api.github.com/users/Shaked/gists{/gist_id}","starred_url":"https://api.github.com/users/Shaked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shaked/subscriptions","organizations_url":"https://api.github.com/users/Shaked/orgs","repos_url":"https://api.github.com/users/Shaked/repos","events_url":"https://api.github.com/users/Shaked/events{/privacy}","received_events_url":"https://api.github.com/users/Shaked/received_events","type":"User","site_admin":false},"created_at":"2015-12-21T23:36:25Z","updated_at":"2015-12-21T23:36:25Z","body":"It seems like that the `CURLY_OPEN` is not counted correct. I am not familiar with this part that good, so will have to take a closer look"}}