{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/44857640","id":44857640,"diff_hunk":"@@ -0,0 +1,49 @@\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;\n+\n+use Symfony\\CS\\DocBlock\\DocBlock;\n+use Symfony\\CS\\Tokenizer\\Tokens;\n+\n+/**\n+ * This abstract fixer provides a base for fixers to rename tags.\n+ *\n+ * @author Graham Campbell <graham@mineuk.com>\n+ */\n+abstract class AbstractPhpdocTagsFixer extends AbstractFixer\n+{\n+    /**\n+     * {@inheritdoc}\n+     */\n+    public function fix(\\SplFileInfo $file, $content)\n+    {\n+        $tokens = Tokens::fromCode($content);\n+\n+        foreach ($tokens->findGivenKind(T_DOC_COMMENT) as $token) {\n+            $doc = new DocBlock($token->getContent());\n+            $annotations = $doc->getAnnotationsOfType(static::$search);\n+\n+            if (empty($annotations)) {\n+                continue;\n+            }\n+\n+            foreach ($annotations as $annotation) {\n+                $line = $doc->getLine($annotation->getStart());\n+                $line->setContent(str_replace(static::$input, static::$output, $line->getContent()));","path":"Symfony/CS/AbstractPhpdocTagsFixer.php","position":41,"original_position":41,"commit_id":"08d869104840489c08c9ea960ecc61b10ae058b1","original_commit_id":"08d869104840489c08c9ea960ecc61b10ae058b1","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":"you could leave them null and describe them","created_at":"2015-11-14T11:37:53Z","updated_at":"2015-11-14T11:37:53Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1487#discussion_r44857640","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1487","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/44857640"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1487#discussion_r44857640"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1487"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1487","id":50032895,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1487","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1487.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1487.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1487","number":1487,"state":"open","locked":false,"title":"[1.11] Support \"@property-read\" and \"@property-write\"","user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"body":"If you want to consider #1483 as a new feature, then here's a PR for that case.\r\n\r\nNB This PR is different because of fixer changes only present on 1.11.","created_at":"2015-11-07T10:10:20Z","updated_at":"2015-11-14T11:37:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb5b7499b52f308ef513f3e4aff7873da1efe39d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1487/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1487/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/1487/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/08d869104840489c08c9ea960ecc61b10ae058b1","head":{"label":"GrahamForks:phpdoc-extra","ref":"phpdoc-extra","sha":"08d869104840489c08c9ea960ecc61b10ae058b1","user":{"login":"GrahamForks","id":10179291,"avatar_url":"https://avatars.githubusercontent.com/u/10179291?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamForks","html_url":"https://github.com/GrahamForks","followers_url":"https://api.github.com/users/GrahamForks/followers","following_url":"https://api.github.com/users/GrahamForks/following{/other_user}","gists_url":"https://api.github.com/users/GrahamForks/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamForks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamForks/subscriptions","organizations_url":"https://api.github.com/users/GrahamForks/orgs","repos_url":"https://api.github.com/users/GrahamForks/repos","events_url":"https://api.github.com/users/GrahamForks/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamForks/received_events","type":"Organization","site_admin":false},"repo":{"id":38434772,"name":"PHP-CS-Fixer","full_name":"GrahamForks/PHP-CS-Fixer","owner":{"login":"GrahamForks","id":10179291,"avatar_url":"https://avatars.githubusercontent.com/u/10179291?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamForks","html_url":"https://github.com/GrahamForks","followers_url":"https://api.github.com/users/GrahamForks/followers","following_url":"https://api.github.com/users/GrahamForks/following{/other_user}","gists_url":"https://api.github.com/users/GrahamForks/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamForks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamForks/subscriptions","organizations_url":"https://api.github.com/users/GrahamForks/orgs","repos_url":"https://api.github.com/users/GrahamForks/repos","events_url":"https://api.github.com/users/GrahamForks/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamForks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GrahamForks/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/GrahamForks/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/GrahamForks/PHP-CS-Fixer/releases{/id}","created_at":"2015-07-02T13:37:38Z","updated_at":"2015-07-02T14:07:42Z","pushed_at":"2015-11-14T11:29:10Z","git_url":"git://github.com/GrahamForks/PHP-CS-Fixer.git","ssh_url":"git@github.com:GrahamForks/PHP-CS-Fixer.git","clone_url":"https://github.com/GrahamForks/PHP-CS-Fixer.git","svn_url":"https://github.com/GrahamForks/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":3784,"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:1.11","ref":"1.11","sha":"f8890b658a8a8a3f160dd192f98f86e65f6c3bd4","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-11-13T20:11:17Z","pushed_at":"2015-11-14T11:04:04Z","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":14889,"stargazers_count":2678,"watchers_count":2678,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":433,"mirror_url":null,"open_issues_count":83,"forks":433,"open_issues":83,"watchers":2678,"default_branch":"1.11"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1487"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1487"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1487"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1487/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1487/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/1487/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/08d869104840489c08c9ea960ecc61b10ae058b1"}}}}