{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/48255333","id":48255333,"diff_hunk":"@@ -0,0 +1,305 @@\n+<?php\n+\n+/*\n+ * This file is part of the PHP CS utility.\n+ *\n+ * (c) Fabien Potencier <fabien@symfony.com>\n+ *\n+ * This source file is subject to the MIT license that is bundled\n+ * with this source code in the file LICENSE.\n+ */\n+\n+namespace Symfony\\CS\\Fixer\\Contrib;\n+\n+use Symfony\\CS\\AbstractFixer;\n+use Symfony\\CS\\Tokenizer\\Token;\n+use Symfony\\CS\\Tokenizer\\Tokens;\n+\n+/**\n+ * @author Gregor Harlan <gharlan@web.de>\n+ */\n+final class ClassElementsOrderFixer extends AbstractFixer\n+{\n+    private static $types = array(\n+        'use_trait' => null,\n+        'const' => null,\n+        'public' => null,\n+        'protected' => null,\n+        'private' => null,\n+        'property' => null,\n+        'property_static' => array('property'),\n+        'property_public' => array('property', 'public'),\n+        'property_protected' => array('property', 'protected'),\n+        'property_private' => array('property', 'private'),\n+        'property_public_static' => array('property_static', 'property_public'),\n+        'property_protected_static' => array('property_static', 'property_protected'),\n+        'property_private_static' => array('property_static', 'property_private'),\n+        'method' => null,\n+        'method_static' => array('method'),\n+        'method_public' => array('method', 'public'),\n+        'method_protected' => array('method', 'protected'),\n+        'method_private' => array('method', 'private'),\n+        'method_public_static' => array('method_static', 'method_public'),\n+        'method_protected_static' => array('method_static', 'method_protected'),\n+        'method_private_static' => array('method_static', 'method_private'),\n+        'construct' => null,\n+        'phpunit' => null,","path":"Symfony/CS/Fixer/Contrib/ClassElementsOrderFixer.php","position":46,"original_position":46,"commit_id":"ebf0118dde1cc975937d11b3f5f9e187b9ee9df2","original_commit_id":"ebf0118dde1cc975937d11b3f5f9e187b9ee9df2","user":{"login":"keradus","id":2716794,"avatar_url":"https://avatars.githubusercontent.com/u/2716794?v=3","gravatar_id":"","url":"https://api.github.com/users/keradus","html_url":"https://github.com/keradus","followers_url":"https://api.github.com/users/keradus/followers","following_url":"https://api.github.com/users/keradus/following{/other_user}","gists_url":"https://api.github.com/users/keradus/gists{/gist_id}","starred_url":"https://api.github.com/users/keradus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keradus/subscriptions","organizations_url":"https://api.github.com/users/keradus/orgs","repos_url":"https://api.github.com/users/keradus/repos","events_url":"https://api.github.com/users/keradus/events{/privacy}","received_events_url":"https://api.github.com/users/keradus/received_events","type":"User","site_admin":false},"body":"`setUpBeforeClass, tearDownAfterClass, setUp, tearDown` ?","created_at":"2015-12-22T14:08:45Z","updated_at":"2015-12-22T14:08:45Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1628#discussion_r48255333","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/48255333"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1628#discussion_r48255333"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628","id":54324875,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1628","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1628.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1628.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1628","number":1628,"state":"open","locked":false,"title":"[WIP] Added ClassElementsOrderFixer","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"body":"closes #1294 and closes #832","created_at":"2015-12-22T01:59:00Z","updated_at":"2015-12-22T14:08:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71db9bd07e876d40500d8c2912f37a97f834b026","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628/comments","review_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1628/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/ebf0118dde1cc975937d11b3f5f9e187b9ee9df2","head":{"label":"gharlan:class-elements-order-fixer","ref":"class-elements-order-fixer","sha":"ebf0118dde1cc975937d11b3f5f9e187b9ee9df2","user":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"repo":{"id":32235173,"name":"PHP-CS-Fixer","full_name":"gharlan/PHP-CS-Fixer","owner":{"login":"gharlan","id":330436,"avatar_url":"https://avatars.githubusercontent.com/u/330436?v=3","gravatar_id":"","url":"https://api.github.com/users/gharlan","html_url":"https://github.com/gharlan","followers_url":"https://api.github.com/users/gharlan/followers","following_url":"https://api.github.com/users/gharlan/following{/other_user}","gists_url":"https://api.github.com/users/gharlan/gists{/gist_id}","starred_url":"https://api.github.com/users/gharlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gharlan/subscriptions","organizations_url":"https://api.github.com/users/gharlan/orgs","repos_url":"https://api.github.com/users/gharlan/repos","events_url":"https://api.github.com/users/gharlan/events{/privacy}","received_events_url":"https://api.github.com/users/gharlan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gharlan/PHP-CS-Fixer","description":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","fork":true,"url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/gharlan/PHP-CS-Fixer/releases{/id}","created_at":"2015-03-14T22:30:32Z","updated_at":"2015-03-14T22:30:33Z","pushed_at":"2015-12-22T09:14:19Z","git_url":"git://github.com/gharlan/PHP-CS-Fixer.git","ssh_url":"git@github.com:gharlan/PHP-CS-Fixer.git","clone_url":"https://github.com/gharlan/PHP-CS-Fixer.git","svn_url":"https://github.com/gharlan/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":3919,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"FriendsOfPHP:master","ref":"master","sha":"845f7f1c6d6d2ca5aecc8c786dcbf82016d2e1bb","user":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"repo":{"id":4344257,"name":"PHP-CS-Fixer","full_name":"FriendsOfPHP/PHP-CS-Fixer","owner":{"login":"FriendsOfPHP","id":5947812,"avatar_url":"https://avatars.githubusercontent.com/u/5947812?v=3","gravatar_id":"","url":"https://api.github.com/users/FriendsOfPHP","html_url":"https://github.com/FriendsOfPHP","followers_url":"https://api.github.com/users/FriendsOfPHP/followers","following_url":"https://api.github.com/users/FriendsOfPHP/following{/other_user}","gists_url":"https://api.github.com/users/FriendsOfPHP/gists{/gist_id}","starred_url":"https://api.github.com/users/FriendsOfPHP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FriendsOfPHP/subscriptions","organizations_url":"https://api.github.com/users/FriendsOfPHP/orgs","repos_url":"https://api.github.com/users/FriendsOfPHP/repos","events_url":"https://api.github.com/users/FriendsOfPHP/events{/privacy}","received_events_url":"https://api.github.com/users/FriendsOfPHP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","description":"Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible)","fork":false,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/releases{/id}","created_at":"2012-05-16T06:42:23Z","updated_at":"2015-12-22T14:06:57Z","pushed_at":"2015-12-22T13:35:17Z","git_url":"git://github.com/FriendsOfPHP/PHP-CS-Fixer.git","ssh_url":"git@github.com:FriendsOfPHP/PHP-CS-Fixer.git","clone_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer.git","svn_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":6958,"stargazers_count":2788,"watchers_count":2788,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":437,"mirror_url":null,"open_issues_count":105,"forks":437,"open_issues":105,"watchers":2788,"default_branch":"1.12"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1628"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1628"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1628/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628/comments"},"review_comment":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1628/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/ebf0118dde1cc975937d11b3f5f9e187b9ee9df2"}}}}