{"action":"created","comment":{"url":"https://api.github.com/repos/rectorphp/rector/pulls/comments/170450802","pull_request_review_id":99140903,"id":170450802,"diff_hunk":"@@ -0,0 +1,120 @@\n+<?php declare(strict_types=1);\n+\n+namespace Rector\\RectorBuilder;\n+\n+use PhpParser\\Node;\n+use PhpParser\\Node\\Expr\\MethodCall;\n+use Rector\\Node\\NodeFactory;\n+use Rector\\NodeAnalyzer\\MethodCallAnalyzer;\n+use Rector\\NodeChanger\\IdentifierRenamer;\n+use Rector\\Rector\\AbstractRector;\n+\n+final class BuilderRector extends AbstractRector","path":"packages/RectorBuilder/src/BuilderRector.php","position":12,"original_position":12,"commit_id":"28524a7b0a70b5303f614c5831f1e6dd775e68c2","original_commit_id":"96d388dce700b12e5a3b2eb61176083d859c32a7","user":{"login":"carusogabriel","id":16328050,"avatar_url":"https://avatars3.githubusercontent.com/u/16328050?v=4","gravatar_id":"","url":"https://api.github.com/users/carusogabriel","html_url":"https://github.com/carusogabriel","followers_url":"https://api.github.com/users/carusogabriel/followers","following_url":"https://api.github.com/users/carusogabriel/following{/other_user}","gists_url":"https://api.github.com/users/carusogabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/carusogabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carusogabriel/subscriptions","organizations_url":"https://api.github.com/users/carusogabriel/orgs","repos_url":"https://api.github.com/users/carusogabriel/repos","events_url":"https://api.github.com/users/carusogabriel/events{/privacy}","received_events_url":"https://api.github.com/users/carusogabriel/received_events","type":"User","site_admin":false},"body":"This is the new API?","created_at":"2018-02-25T12:04:09Z","updated_at":"2018-02-25T12:09:01Z","html_url":"https://github.com/rectorphp/rector/pull/324#discussion_r170450802","pull_request_url":"https://api.github.com/repos/rectorphp/rector/pulls/324","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/comments/170450802"},"html":{"href":"https://github.com/rectorphp/rector/pull/324#discussion_r170450802"},"pull_request":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/324"}}},"pull_request":{"url":"https://api.github.com/repos/rectorphp/rector/pulls/324","id":170997860,"html_url":"https://github.com/rectorphp/rector/pull/324","diff_url":"https://github.com/rectorphp/rector/pull/324.diff","patch_url":"https://github.com/rectorphp/rector/pull/324.patch","issue_url":"https://api.github.com/repos/rectorphp/rector/issues/324","number":324,"state":"open","locked":false,"title":"BuilderRector with simpler API to create new Rectors","user":{"login":"TomasVotruba","id":924196,"avatar_url":"https://avatars1.githubusercontent.com/u/924196?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasVotruba","html_url":"https://github.com/TomasVotruba","followers_url":"https://api.github.com/users/TomasVotruba/followers","following_url":"https://api.github.com/users/TomasVotruba/following{/other_user}","gists_url":"https://api.github.com/users/TomasVotruba/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasVotruba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasVotruba/subscriptions","organizations_url":"https://api.github.com/users/TomasVotruba/orgs","repos_url":"https://api.github.com/users/TomasVotruba/repos","events_url":"https://api.github.com/users/TomasVotruba/events{/privacy}","received_events_url":"https://api.github.com/users/TomasVotruba/received_events","type":"User","site_admin":false},"body":"Ref #322\r\n\r\nWriting Rectors could be easy as:\r\n\r\n```php\r\nreturn $this->builderRectorFactory->create()\r\n    ->matchMethodCallByType('Nette\\Application\\UI\\Control')\r\n    ->matchMethodName('validateControl')\r\n    ->changeMethodNameTo('redrawControl')\r\n    ->addArgument(1, false);\r\n```\r\n\r\n### Todo\r\n\r\n- [ ] document in `/doc/RectorBuilder.md`\r\n\r\n### Related Changes\r\n\r\n- #326 ","created_at":"2018-02-23T11:56:22Z","updated_at":"2018-02-25T12:09:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e207b89eab4db91e5ca4ac93e418ce1b82809159","assignee":null,"assignees":[],"requested_reviewers":[{"login":"grogy","id":1322983,"avatar_url":"https://avatars1.githubusercontent.com/u/1322983?v=4","gravatar_id":"","url":"https://api.github.com/users/grogy","html_url":"https://github.com/grogy","followers_url":"https://api.github.com/users/grogy/followers","following_url":"https://api.github.com/users/grogy/following{/other_user}","gists_url":"https://api.github.com/users/grogy/gists{/gist_id}","starred_url":"https://api.github.com/users/grogy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grogy/subscriptions","organizations_url":"https://api.github.com/users/grogy/orgs","repos_url":"https://api.github.com/users/grogy/repos","events_url":"https://api.github.com/users/grogy/events{/privacy}","received_events_url":"https://api.github.com/users/grogy/received_events","type":"User","site_admin":false},{"login":"EdoBarnas","id":25415042,"avatar_url":"https://avatars2.githubusercontent.com/u/25415042?v=4","gravatar_id":"","url":"https://api.github.com/users/EdoBarnas","html_url":"https://github.com/EdoBarnas","followers_url":"https://api.github.com/users/EdoBarnas/followers","following_url":"https://api.github.com/users/EdoBarnas/following{/other_user}","gists_url":"https://api.github.com/users/EdoBarnas/gists{/gist_id}","starred_url":"https://api.github.com/users/EdoBarnas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EdoBarnas/subscriptions","organizations_url":"https://api.github.com/users/EdoBarnas/orgs","repos_url":"https://api.github.com/users/EdoBarnas/repos","events_url":"https://api.github.com/users/EdoBarnas/events{/privacy}","received_events_url":"https://api.github.com/users/EdoBarnas/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rectorphp/rector/pulls/324/commits","review_comments_url":"https://api.github.com/repos/rectorphp/rector/pulls/324/comments","review_comment_url":"https://api.github.com/repos/rectorphp/rector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rectorphp/rector/issues/324/comments","statuses_url":"https://api.github.com/repos/rectorphp/rector/statuses/28524a7b0a70b5303f614c5831f1e6dd775e68c2","head":{"label":"rectorphp:rector-builder","ref":"rector-builder","sha":"28524a7b0a70b5303f614c5831f1e6dd775e68c2","user":{"login":"rectorphp","id":32097581,"avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"repo":{"id":97311017,"name":"rector","full_name":"rectorphp/rector","owner":{"login":"rectorphp","id":32097581,"avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rectorphp/rector","description":"AST-based  Instant Upgrades of PHP Applications ","fork":false,"url":"https://api.github.com/repos/rectorphp/rector","forks_url":"https://api.github.com/repos/rectorphp/rector/forks","keys_url":"https://api.github.com/repos/rectorphp/rector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rectorphp/rector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rectorphp/rector/teams","hooks_url":"https://api.github.com/repos/rectorphp/rector/hooks","issue_events_url":"https://api.github.com/repos/rectorphp/rector/issues/events{/number}","events_url":"https://api.github.com/repos/rectorphp/rector/events","assignees_url":"https://api.github.com/repos/rectorphp/rector/assignees{/user}","branches_url":"https://api.github.com/repos/rectorphp/rector/branches{/branch}","tags_url":"https://api.github.com/repos/rectorphp/rector/tags","blobs_url":"https://api.github.com/repos/rectorphp/rector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rectorphp/rector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rectorphp/rector/git/refs{/sha}","trees_url":"https://api.github.com/repos/rectorphp/rector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rectorphp/rector/statuses/{sha}","languages_url":"https://api.github.com/repos/rectorphp/rector/languages","stargazers_url":"https://api.github.com/repos/rectorphp/rector/stargazers","contributors_url":"https://api.github.com/repos/rectorphp/rector/contributors","subscribers_url":"https://api.github.com/repos/rectorphp/rector/subscribers","subscription_url":"https://api.github.com/repos/rectorphp/rector/subscription","commits_url":"https://api.github.com/repos/rectorphp/rector/commits{/sha}","git_commits_url":"https://api.github.com/repos/rectorphp/rector/git/commits{/sha}","comments_url":"https://api.github.com/repos/rectorphp/rector/comments{/number}","issue_comment_url":"https://api.github.com/repos/rectorphp/rector/issues/comments{/number}","contents_url":"https://api.github.com/repos/rectorphp/rector/contents/{+path}","compare_url":"https://api.github.com/repos/rectorphp/rector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rectorphp/rector/merges","archive_url":"https://api.github.com/repos/rectorphp/rector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rectorphp/rector/downloads","issues_url":"https://api.github.com/repos/rectorphp/rector/issues{/number}","pulls_url":"https://api.github.com/repos/rectorphp/rector/pulls{/number}","milestones_url":"https://api.github.com/repos/rectorphp/rector/milestones{/number}","notifications_url":"https://api.github.com/repos/rectorphp/rector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rectorphp/rector/labels{/name}","releases_url":"https://api.github.com/repos/rectorphp/rector/releases{/id}","deployments_url":"https://api.github.com/repos/rectorphp/rector/deployments","created_at":"2017-07-15T11:16:02Z","updated_at":"2018-02-23T17:21:24Z","pushed_at":"2018-02-25T12:07:49Z","git_url":"git://github.com/rectorphp/rector.git","ssh_url":"git@github.com:rectorphp/rector.git","clone_url":"https://github.com/rectorphp/rector.git","svn_url":"https://github.com/rectorphp/rector","homepage":"https://www.tomasvotruba.cz/blog/2018/02/19/rector-part-1-what-and-how/","size":5233,"stargazers_count":195,"watchers_count":195,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":9,"open_issues":9,"watchers":195,"default_branch":"master"}},"base":{"label":"rectorphp:master","ref":"master","sha":"1cad5f4f0c641c8e9c22beff44fb827e5e6c2083","user":{"login":"rectorphp","id":32097581,"avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"repo":{"id":97311017,"name":"rector","full_name":"rectorphp/rector","owner":{"login":"rectorphp","id":32097581,"avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rectorphp/rector","description":"AST-based  Instant Upgrades of PHP Applications ","fork":false,"url":"https://api.github.com/repos/rectorphp/rector","forks_url":"https://api.github.com/repos/rectorphp/rector/forks","keys_url":"https://api.github.com/repos/rectorphp/rector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rectorphp/rector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rectorphp/rector/teams","hooks_url":"https://api.github.com/repos/rectorphp/rector/hooks","issue_events_url":"https://api.github.com/repos/rectorphp/rector/issues/events{/number}","events_url":"https://api.github.com/repos/rectorphp/rector/events","assignees_url":"https://api.github.com/repos/rectorphp/rector/assignees{/user}","branches_url":"https://api.github.com/repos/rectorphp/rector/branches{/branch}","tags_url":"https://api.github.com/repos/rectorphp/rector/tags","blobs_url":"https://api.github.com/repos/rectorphp/rector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rectorphp/rector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rectorphp/rector/git/refs{/sha}","trees_url":"https://api.github.com/repos/rectorphp/rector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rectorphp/rector/statuses/{sha}","languages_url":"https://api.github.com/repos/rectorphp/rector/languages","stargazers_url":"https://api.github.com/repos/rectorphp/rector/stargazers","contributors_url":"https://api.github.com/repos/rectorphp/rector/contributors","subscribers_url":"https://api.github.com/repos/rectorphp/rector/subscribers","subscription_url":"https://api.github.com/repos/rectorphp/rector/subscription","commits_url":"https://api.github.com/repos/rectorphp/rector/commits{/sha}","git_commits_url":"https://api.github.com/repos/rectorphp/rector/git/commits{/sha}","comments_url":"https://api.github.com/repos/rectorphp/rector/comments{/number}","issue_comment_url":"https://api.github.com/repos/rectorphp/rector/issues/comments{/number}","contents_url":"https://api.github.com/repos/rectorphp/rector/contents/{+path}","compare_url":"https://api.github.com/repos/rectorphp/rector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rectorphp/rector/merges","archive_url":"https://api.github.com/repos/rectorphp/rector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rectorphp/rector/downloads","issues_url":"https://api.github.com/repos/rectorphp/rector/issues{/number}","pulls_url":"https://api.github.com/repos/rectorphp/rector/pulls{/number}","milestones_url":"https://api.github.com/repos/rectorphp/rector/milestones{/number}","notifications_url":"https://api.github.com/repos/rectorphp/rector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rectorphp/rector/labels{/name}","releases_url":"https://api.github.com/repos/rectorphp/rector/releases{/id}","deployments_url":"https://api.github.com/repos/rectorphp/rector/deployments","created_at":"2017-07-15T11:16:02Z","updated_at":"2018-02-23T17:21:24Z","pushed_at":"2018-02-25T12:07:49Z","git_url":"git://github.com/rectorphp/rector.git","ssh_url":"git@github.com:rectorphp/rector.git","clone_url":"https://github.com/rectorphp/rector.git","svn_url":"https://github.com/rectorphp/rector","homepage":"https://www.tomasvotruba.cz/blog/2018/02/19/rector-part-1-what-and-how/","size":5233,"stargazers_count":195,"watchers_count":195,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":9,"open_issues":9,"watchers":195,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/324"},"html":{"href":"https://github.com/rectorphp/rector/pull/324"},"issue":{"href":"https://api.github.com/repos/rectorphp/rector/issues/324"},"comments":{"href":"https://api.github.com/repos/rectorphp/rector/issues/324/comments"},"review_comments":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/324/comments"},"review_comment":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/324/commits"},"statuses":{"href":"https://api.github.com/repos/rectorphp/rector/statuses/28524a7b0a70b5303f614c5831f1e6dd775e68c2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"carusogabriel"}}