{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/23031990","id":23031990,"diff_hunk":"@@ -0,0 +1,521 @@\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\\Tests\\Fixer\\Contrib;\n+\n+use Symfony\\CS\\Tests\\Fixer\\AbstractFixerTestBase;\n+\n+/**\n+ * @author Matteo Beccati <matteo@beccati.com>\n+ */\n+class Php4ConstructorFixerTest extends AbstractFixerTestBase\n+{\n+    public function testNamespaces()\n+    {\n+        $input = <<<'EOF'\n+<?php\n+\n+namespace Baz;\n+\n+class Foo\n+{\n+    public function __construct($bar)\n+    {\n+        var_dump(1);\n+    }\n+\n+    public function Foo($bar)\n+    {\n+        var_dump(2);\n+    }\n+}\n+EOF;\n+\n+        $this->makeTest($input);\n+    }\n+\n+    public function testNamespaces2()\n+    {\n+        $input = <<<'EOF'\n+<?php\n+\n+namespace Baz\n+{\n+    class Foo\n+    {\n+        public function Foo($bar)\n+        {\n+            var_dump(1);\n+        }\n+\n+        public function Foo($bar)","path":"Symfony/CS/Tests/Fixer/Contrib/Php4ConstructorFixerTest.php","position":59,"original_position":59,"commit_id":"cb72088c21d543807af0ca8cc92d7485a40a5ad5","original_commit_id":"cb72088c21d543807af0ca8cc92d7485a40a5ad5","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":"one must not declare method with same name twice","created_at":"2015-01-15T18:39:42Z","updated_at":"2015-01-15T18:39:42Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/970#discussion_r23031990","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/970","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/23031990"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/970#discussion_r23031990"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/970"}}},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/970","id":27439754,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/970","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/970.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/970.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/970","number":970,"state":"open","locked":false,"title":"Added PHP4 constructor fixer","user":{"login":"mbeccati","id":282388,"avatar_url":"https://avatars.githubusercontent.com/u/282388?v=3","gravatar_id":"","url":"https://api.github.com/users/mbeccati","html_url":"https://github.com/mbeccati","followers_url":"https://api.github.com/users/mbeccati/followers","following_url":"https://api.github.com/users/mbeccati/following{/other_user}","gists_url":"https://api.github.com/users/mbeccati/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeccati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeccati/subscriptions","organizations_url":"https://api.github.com/users/mbeccati/orgs","repos_url":"https://api.github.com/users/mbeccati/repos","events_url":"https://api.github.com/users/mbeccati/events{/privacy}","received_events_url":"https://api.github.com/users/mbeccati/received_events","type":"User","site_admin":false},"body":"In case PHP7 drops support for PHP4-style constructors...\r\n\r\nIt can surely be enhanced and get more testing. That's the best I could achieve in a few hours today ;)","created_at":"2015-01-15T16:11:15Z","updated_at":"2015-01-15T18:39:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f38e2f7fb2b9fcd0af0810813112e87a32f02de","assignee":null,"milestone":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones/6","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones/6/labels","id":906080,"number":6,"title":"v1.5","description":"","creator":{"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},"open_issues":4,"closed_issues":19,"state":"open","created_at":"2014-12-16T19:58:13Z","updated_at":"2015-01-15T18:02:46Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/970/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/970/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/970/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/cb72088c21d543807af0ca8cc92d7485a40a5ad5","head":{"label":"mbeccati:php4-constructor","ref":"php4-constructor","sha":"cb72088c21d543807af0ca8cc92d7485a40a5ad5","user":{"login":"mbeccati","id":282388,"avatar_url":"https://avatars.githubusercontent.com/u/282388?v=3","gravatar_id":"","url":"https://api.github.com/users/mbeccati","html_url":"https://github.com/mbeccati","followers_url":"https://api.github.com/users/mbeccati/followers","following_url":"https://api.github.com/users/mbeccati/following{/other_user}","gists_url":"https://api.github.com/users/mbeccati/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeccati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeccati/subscriptions","organizations_url":"https://api.github.com/users/mbeccati/orgs","repos_url":"https://api.github.com/users/mbeccati/repos","events_url":"https://api.github.com/users/mbeccati/events{/privacy}","received_events_url":"https://api.github.com/users/mbeccati/received_events","type":"User","site_admin":false},"repo":{"id":29297799,"name":"PHP-CS-Fixer","full_name":"mbeccati/PHP-CS-Fixer","owner":{"login":"mbeccati","id":282388,"avatar_url":"https://avatars.githubusercontent.com/u/282388?v=3","gravatar_id":"","url":"https://api.github.com/users/mbeccati","html_url":"https://github.com/mbeccati","followers_url":"https://api.github.com/users/mbeccati/followers","following_url":"https://api.github.com/users/mbeccati/following{/other_user}","gists_url":"https://api.github.com/users/mbeccati/gists{/gist_id}","starred_url":"https://api.github.com/users/mbeccati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbeccati/subscriptions","organizations_url":"https://api.github.com/users/mbeccati/orgs","repos_url":"https://api.github.com/users/mbeccati/repos","events_url":"https://api.github.com/users/mbeccati/events{/privacy}","received_events_url":"https://api.github.com/users/mbeccati/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mbeccati/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/mbeccati/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/issues/comments/{number}","contents_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/mbeccati/PHP-CS-Fixer/releases{/id}","created_at":"2015-01-15T13:07:25Z","updated_at":"2015-01-15T13:07:26Z","pushed_at":"2015-01-15T18:34:02Z","git_url":"git://github.com/mbeccati/PHP-CS-Fixer.git","ssh_url":"git@github.com:mbeccati/PHP-CS-Fixer.git","clone_url":"https://github.com/mbeccati/PHP-CS-Fixer.git","svn_url":"https://github.com/mbeccati/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":9411,"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.5"}},"base":{"label":"FriendsOfPHP:1.5","ref":"1.5","sha":"3ec9338562e40d7195dabba7b30429d4ffd9556d","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-01-15T01:02:16Z","pushed_at":"2015-01-12T21:53:28Z","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":9411,"stargazers_count":1918,"watchers_count":1918,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":304,"mirror_url":null,"open_issues_count":50,"forks":304,"open_issues":50,"watchers":1918,"default_branch":"1.5"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/970"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/970"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/970"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/970/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/970/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/970/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/cb72088c21d543807af0ca8cc92d7485a40a5ad5"}}}}