{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/49837163","id":49837163,"diff_hunk":"@@ -131,6 +131,15 @@ public function addCustomFixer(FixerInterface $fixer)\n         return $this;\n     }\n \n+    public function addCustomFixers($fixers)","path":"src/Config/Config.php","position":4,"original_position":4,"commit_id":"65dd5676b2e7426af7c115e4cdbd1d3b3f62edb5","original_commit_id":"65dd5676b2e7426af7c115e4cdbd1d3b3f62edb5","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":"as it is not typehinted it would be great to validate it","created_at":"2016-01-15T09:59:55Z","updated_at":"2016-01-15T09:59:55Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1674#discussion_r49837163","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1674","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/49837163"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1674#discussion_r49837163"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1674"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1674","id":56044404,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1674","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1674.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1674.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1674","number":1674,"state":"open","locked":false,"title":"Implements Fixers suite system","user":{"login":"PedroTroller","id":1766827,"avatar_url":"https://avatars.githubusercontent.com/u/1766827?v=3","gravatar_id":"","url":"https://api.github.com/users/PedroTroller","html_url":"https://github.com/PedroTroller","followers_url":"https://api.github.com/users/PedroTroller/followers","following_url":"https://api.github.com/users/PedroTroller/following{/other_user}","gists_url":"https://api.github.com/users/PedroTroller/gists{/gist_id}","starred_url":"https://api.github.com/users/PedroTroller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PedroTroller/subscriptions","organizations_url":"https://api.github.com/users/PedroTroller/orgs","repos_url":"https://api.github.com/users/PedroTroller/repos","events_url":"https://api.github.com/users/PedroTroller/events{/privacy}","received_events_url":"https://api.github.com/users/PedroTroller/received_events","type":"User","site_admin":false},"body":"Good morning.\r\n\r\nSo, here is the use case.\r\nImagine I have a HUGE set of custom fixers, and I wan't to provide this set as a plugin to PHP-CS-FIXER, then the customer have to add all my fixers one by one by calling the `addCustomFixer`.\r\n\r\nNow, I can provider one (or more) fixers suite\r\n\r\nex:\r\n```php\r\nclass MyCustomSuite extends AbstractFixerSuite\r\n{\r\n    public function getFixers()\r\n    {\r\n        return array(\r\n            new MyCustumFixer1(),\r\n            new MyCustumFixer2(),\r\n            new MyCustumFixer3(),\r\n            new MyCustumFixer4(),\r\n            new MyCustumFixer5(),\r\n            new MyCustumFixer6(),\r\n        );\r\n    }\r\n}\r\n```\r\n\r\n```php\r\n<?php\r\n\r\n$finder = Symfony\\CS\\Finder\\DefaultFinder::create()\r\n    ->in('src/')\r\n;\r\n\r\nreturn Symfony\\CS\\Config\\Config::create()\r\n    ->setUsingCache(true)\r\n    ->level(Symfony\\CS\\FixerInterface::SYMFONY_LEVEL)\r\n    ->fixers([\r\n        '..',\r\n        'custum-1',\r\n        'custum-2',\r\n        'custum-3',\r\n        'custum-4',\r\n        'custum-5',\r\n        'custum-6',\r\n    ])\r\n    ->addCustomFixers(new Project\\CS\\MyCustomSuite())\r\n    ->finder($finder)\r\n;\r\n```","created_at":"2016-01-14T14:52:58Z","updated_at":"2016-01-15T09:59:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e70de8bf18ecf3e7042185fc021d8bc9baf23ea8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1674/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1674/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/1674/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/65dd5676b2e7426af7c115e4cdbd1d3b3f62edb5","head":{"label":"PedroTroller:feature-fixers-suite","ref":"feature-fixers-suite","sha":"65dd5676b2e7426af7c115e4cdbd1d3b3f62edb5","user":{"login":"PedroTroller","id":1766827,"avatar_url":"https://avatars.githubusercontent.com/u/1766827?v=3","gravatar_id":"","url":"https://api.github.com/users/PedroTroller","html_url":"https://github.com/PedroTroller","followers_url":"https://api.github.com/users/PedroTroller/followers","following_url":"https://api.github.com/users/PedroTroller/following{/other_user}","gists_url":"https://api.github.com/users/PedroTroller/gists{/gist_id}","starred_url":"https://api.github.com/users/PedroTroller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PedroTroller/subscriptions","organizations_url":"https://api.github.com/users/PedroTroller/orgs","repos_url":"https://api.github.com/users/PedroTroller/repos","events_url":"https://api.github.com/users/PedroTroller/events{/privacy}","received_events_url":"https://api.github.com/users/PedroTroller/received_events","type":"User","site_admin":false},"repo":{"id":49637877,"name":"PHP-CS-Fixer","full_name":"PedroTroller/PHP-CS-Fixer","owner":{"login":"PedroTroller","id":1766827,"avatar_url":"https://avatars.githubusercontent.com/u/1766827?v=3","gravatar_id":"","url":"https://api.github.com/users/PedroTroller","html_url":"https://github.com/PedroTroller","followers_url":"https://api.github.com/users/PedroTroller/followers","following_url":"https://api.github.com/users/PedroTroller/following{/other_user}","gists_url":"https://api.github.com/users/PedroTroller/gists{/gist_id}","starred_url":"https://api.github.com/users/PedroTroller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PedroTroller/subscriptions","organizations_url":"https://api.github.com/users/PedroTroller/orgs","repos_url":"https://api.github.com/users/PedroTroller/repos","events_url":"https://api.github.com/users/PedroTroller/events{/privacy}","received_events_url":"https://api.github.com/users/PedroTroller/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PedroTroller/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/PedroTroller/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/PedroTroller/PHP-CS-Fixer/releases{/id}","created_at":"2016-01-14T09:43:20Z","updated_at":"2016-01-14T09:43:21Z","pushed_at":"2016-01-15T09:54:43Z","git_url":"git://github.com/PedroTroller/PHP-CS-Fixer.git","ssh_url":"git@github.com:PedroTroller/PHP-CS-Fixer.git","clone_url":"https://github.com/PedroTroller/PHP-CS-Fixer.git","svn_url":"https://github.com/PedroTroller/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":4060,"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":"1.12"}},"base":{"label":"FriendsOfPHP:master","ref":"master","sha":"d4d2bd709cf4544a1733eec89dd61c12adb8fcff","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":"2016-01-15T00:16:17Z","pushed_at":"2016-01-15T09:54:44Z","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":7284,"stargazers_count":2868,"watchers_count":2868,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":444,"mirror_url":null,"open_issues_count":108,"forks":444,"open_issues":108,"watchers":2868,"default_branch":"1.12"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1674"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/1674"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1674"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/1674/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/1674/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/1674/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/65dd5676b2e7426af7c115e4cdbd1d3b3f62edb5"}}}}