{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/331802376","pull_request_review_id":297852073,"id":331802376,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzMTgwMjM3Ng==","diff_hunk":"@@ -0,0 +1,167 @@\n+<?php\n+\n+/*\n+ * This file is part of PHP CS Fixer.\n+ *\n+ * (c) Fabien Potencier <fabien@symfony.com>\n+ *     Dariusz Rumiński <dariusz.ruminski@gmail.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 PhpCsFixer\\Fixer\\PhpUnit;\n+\n+use PhpCsFixer\\AbstractFixer;\n+use PhpCsFixer\\DocBlock\\DocBlock;\n+use PhpCsFixer\\Fixer\\ConfigurationDefinitionFixerInterface;\n+use PhpCsFixer\\FixerConfiguration\\AllowedValueSubset;\n+use PhpCsFixer\\FixerConfiguration\\FixerConfigurationResolver;\n+use PhpCsFixer\\FixerConfiguration\\FixerOptionBuilder;\n+use PhpCsFixer\\FixerDefinition\\CodeSample;\n+use PhpCsFixer\\FixerDefinition\\FixerDefinition;\n+use PhpCsFixer\\Preg;\n+use PhpCsFixer\\Tokenizer\\Token;\n+use PhpCsFixer\\Tokenizer\\Tokens;\n+\n+/**\n+ * @author Filippo Tessarotto <zoeslam@gmail.com>\n+ * @author Andreas Möller <am@localheinz.com>\n+ */\n+final class PhpUnitOrderedAnnotationsFixer extends AbstractFixer implements ConfigurationDefinitionFixerInterface\n+{\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function getDefinition()\n+    {\n+        return new FixerDefinition(\n+            'Order annotations of PHPUnit tests.',\n+            [\n+                new CodeSample(\n+                    '<?php\n+/**\n+ * @uses Foo\n+ * @uses Bar\n+ */\n+final class MyTest extends \\PHPUnit_Framework_TestCase\n+{}\n+',\n+                    [\n+                        'annotations' => [\n+                            'uses',\n+                        ],\n+                    ]\n+                ),\n+            ]\n+        );\n+    }\n+\n+    /**\n+     * {@inheritdoc}","path":"src/Fixer/PhpUnit/PhpUnitOrderedAnnotationsFixer.php","position":61,"original_position":61,"commit_id":"9756cb1339527d9325f2e887e15a00d507ec2f15","original_commit_id":"86246c98c94eeabd3d26348ad817e051f27281db","user":{"login":"julienfalque","id":1736542,"node_id":"MDQ6VXNlcjE3MzY1NDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1736542?v=4","gravatar_id":"","url":"https://api.github.com/users/julienfalque","html_url":"https://github.com/julienfalque","followers_url":"https://api.github.com/users/julienfalque/followers","following_url":"https://api.github.com/users/julienfalque/following{/other_user}","gists_url":"https://api.github.com/users/julienfalque/gists{/gist_id}","starred_url":"https://api.github.com/users/julienfalque/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julienfalque/subscriptions","organizations_url":"https://api.github.com/users/julienfalque/orgs","repos_url":"https://api.github.com/users/julienfalque/repos","events_url":"https://api.github.com/users/julienfalque/events{/privacy}","received_events_url":"https://api.github.com/users/julienfalque/received_events","type":"User","site_admin":false},"body":"We don't but I would leave it for consistency with the project. Maybe we'll revise this with #4500.","created_at":"2019-10-06T18:06:24Z","updated_at":"2019-10-06T18:06:25Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4569#discussion_r331802376","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/4569","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/331802376"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4569#discussion_r331802376"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/4569"}},"in_reply_to_id":331762190},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/4569","id":324976332,"node_id":"MDExOlB1bGxSZXF1ZXN0MzI0OTc2MzMy","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4569","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4569.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4569.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/4569","number":4569,"state":"open","locked":false,"title":"Introduce PhpUnitOrderedAnnotationsFixer","user":{"login":"localheinz","id":605483,"node_id":"MDQ6VXNlcjYwNTQ4Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/605483?v=4","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"body":"This PR\r\n\r\n* [x] copies the `PhpUnitOrderedCoversFixer` to `PhpUnitOrderedUsesFixer`\r\n* [x] extracts a `PhpUnitOrderedAnnotationsFixer`\r\n* [x] deprecates the `PhpUnitOrderedCoversFixer`","created_at":"2019-10-05T21:04:45Z","updated_at":"2019-10-06T18:06:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83a8b841241811b39d20d3ec6a1372ef84e1e8d4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/4569/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/4569/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/4569/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/9756cb1339527d9325f2e887e15a00d507ec2f15","head":{"label":"localheinz:feature/php-unit-ordered-annotations","ref":"feature/php-unit-ordered-annotations","sha":"9756cb1339527d9325f2e887e15a00d507ec2f15","user":{"login":"localheinz","id":605483,"node_id":"MDQ6VXNlcjYwNTQ4Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/605483?v=4","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"repo":{"id":9031775,"node_id":"MDEwOlJlcG9zaXRvcnk5MDMxNzc1","name":"PHP-CS-Fixer","full_name":"localheinz/PHP-CS-Fixer","private":false,"owner":{"login":"localheinz","id":605483,"node_id":"MDQ6VXNlcjYwNTQ4Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/605483?v=4","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/localheinz/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/localheinz/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/releases{/id}","deployments_url":"https://api.github.com/repos/localheinz/PHP-CS-Fixer/deployments","created_at":"2013-03-26T14:11:23Z","updated_at":"2019-10-05T12:09:10Z","pushed_at":"2019-10-05T21:25:33Z","git_url":"git://github.com/localheinz/PHP-CS-Fixer.git","ssh_url":"git@github.com:localheinz/PHP-CS-Fixer.git","clone_url":"https://github.com/localheinz/PHP-CS-Fixer.git","svn_url":"https://github.com/localheinz/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":14533,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":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":"FriendsOfPHP:master","ref":"master","sha":"ccd2600ace8420106d474975aa5c3cb923c3cb75","user":{"login":"FriendsOfPHP","id":5947812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NDc4MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5947812?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnk0MzQ0MjU3","name":"PHP-CS-Fixer","full_name":"FriendsOfPHP/PHP-CS-Fixer","private":false,"owner":{"login":"FriendsOfPHP","id":5947812,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU5NDc4MTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5947812?v=4","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},"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer","description":"A tool to automatically fix PHP Coding Standards issues","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}","deployments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/deployments","created_at":"2012-05-16T06:42:23Z","updated_at":"2019-10-06T15:09:57Z","pushed_at":"2019-10-06T17:27:18Z","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":"https://cs.symfony.com","size":16296,"stargazers_count":8104,"watchers_count":8104,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1046,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":374,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1046,"open_issues":374,"watchers":8104,"default_branch":"2.15"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/4569"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4569"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/4569"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/4569/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/4569/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/4569/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/9756cb1339527d9325f2e887e15a00d507ec2f15"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"julienfalque"}}