{"action":"created","comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/175831214","pull_request_review_id":105426462,"id":175831214,"diff_hunk":"@@ -178,23 +178,37 @@ public function getPriority()\n      */\n     protected function applyFix(\\SplFileInfo $file, Tokens $tokens)\n     {\n-        static $searchSequence = [\n-            [T_VARIABLE, '$this'],\n-            [T_OBJECT_OPERATOR, '->'],\n-            [T_STRING],\n+        static $searchSequences = [\n+            [\n+                [T_VARIABLE, '$this'],\n+                [T_OBJECT_OPERATOR, '->'],\n+                [T_STRING],\n+            ],\n+            [\n+                [T_STATIC, 'static'],\n+                [T_DOUBLE_COLON, '::'],\n+                [T_STRING],\n+            ],\n+            [\n+                [T_STRING, 'self'],\n+                [T_DOUBLE_COLON, '::'],\n+                [T_STRING],\n+            ],\n         ];\n \n-        $index = 1;\n-        $candidate = $tokens->findSequence($searchSequence, $index);\n-        while (null !== $candidate) {\n-            end($candidate);\n-            $index = $this->getAssertCandidate($tokens, key($candidate));\n-            if (is_array($index)) {\n-                $index = $this->fixAssert($tokens, $index);\n-            }\n-\n-            ++$index;\n+        foreach ($searchSequences as $searchSequence) {\n+            $index = 1;\n             $candidate = $tokens->findSequence($searchSequence, $index);","path":"src/Fixer/PhpUnit/PhpUnitDedicateAssertFixer.php","position":38,"original_position":38,"commit_id":"f50d75d16e4358871c8f0a4a893b3aecbe5d8a5f","original_commit_id":"f50d75d16e4358871c8f0a4a893b3aecbe5d8a5f","user":{"login":"keradus","id":2716794,"avatar_url":"https://avatars1.githubusercontent.com/u/2716794?v=4","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":"ping @Slamdunk , could you please take a look at that ? :)\r\nwe don't want to slower this rule by 3 times","created_at":"2018-03-20T16:20:25Z","updated_at":"2018-03-20T16:20:25Z","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3478#discussion_r175831214","pull_request_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/3478","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/comments/175831214"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3478#discussion_r175831214"},"pull_request":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/3478"}},"in_reply_to_id":168473122},"pull_request":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/3478","id":165373486,"html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3478","diff_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3478.diff","patch_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3478.patch","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3478","number":3478,"state":"open","locked":false,"title":"PhpUnitDedicateAssertFixer: handle static calls","user":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars0.githubusercontent.com/u/152236?v=4","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-26T14:18:51Z","updated_at":"2018-03-20T16:20:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc763bdcfaf0b23877415b32491e4eb2acdb538e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":132262556,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels/feature","name":"feature","color":"009800","default":false}],"milestone":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones/103","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/milestone/103","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/milestones/103/labels","id":3203823,"number":103,"title":"2.11.1","description":null,"creator":{"login":"keradus","id":2716794,"avatar_url":"https://avatars1.githubusercontent.com/u/2716794?v=4","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":1,"closed_issues":0,"state":"open","created_at":"2018-03-20T16:19:55Z","updated_at":"2018-03-20T16:19:55Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/3478/commits","review_comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/3478/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/3478/comments","statuses_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/f50d75d16e4358871c8f0a4a893b3aecbe5d8a5f","head":{"label":"Slamdunk:php_unit_dedicate_assert_static","ref":"php_unit_dedicate_assert_static","sha":"f50d75d16e4358871c8f0a4a893b3aecbe5d8a5f","user":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars0.githubusercontent.com/u/152236?v=4","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"repo":{"id":26592681,"name":"PHP-CS-Fixer","full_name":"Slamdunk/PHP-CS-Fixer","owner":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars0.githubusercontent.com/u/152236?v=4","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Slamdunk/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/Slamdunk/PHP-CS-Fixer","forks_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/forks","keys_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/teams","hooks_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/hooks","issue_events_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/issues/events{/number}","events_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/events","assignees_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/assignees{/user}","branches_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/branches{/branch}","tags_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/tags","blobs_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/refs{/sha}","trees_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/statuses/{sha}","languages_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/languages","stargazers_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/stargazers","contributors_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/contributors","subscribers_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/subscribers","subscription_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/subscription","commits_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/commits{/sha}","git_commits_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/git/commits{/sha}","comments_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/comments{/number}","issue_comment_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/issues/comments{/number}","contents_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/contents/{+path}","compare_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/merges","archive_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/downloads","issues_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/issues{/number}","pulls_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/pulls{/number}","milestones_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/milestones{/number}","notifications_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/labels{/name}","releases_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/releases{/id}","deployments_url":"https://api.github.com/repos/Slamdunk/PHP-CS-Fixer/deployments","created_at":"2014-11-13T14:56:30Z","updated_at":"2016-02-15T10:38:35Z","pushed_at":"2018-03-20T16:19:07Z","git_url":"git://github.com/Slamdunk/PHP-CS-Fixer.git","ssh_url":"git@github.com:Slamdunk/PHP-CS-Fixer.git","clone_url":"https://github.com/Slamdunk/PHP-CS-Fixer.git","svn_url":"https://github.com/Slamdunk/PHP-CS-Fixer","homepage":"cs.sensiolabs.org","size":11322,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"FriendsOfPHP:master","ref":"master","sha":"df01adb8384896c5fa0a8428bb6ca384fb543dc1","user":{"login":"FriendsOfPHP","id":5947812,"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,"name":"PHP-CS-Fixer","full_name":"FriendsOfPHP/PHP-CS-Fixer","owner":{"login":"FriendsOfPHP","id":5947812,"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},"private":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":"2018-03-20T14:47:20Z","pushed_at":"2018-03-20T16:18:51Z","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":"http://cs.sensiolabs.org","size":12614,"stargazers_count":5657,"watchers_count":5657,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":818,"mirror_url":null,"archived":false,"open_issues_count":214,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":818,"open_issues":214,"watchers":5657,"default_branch":"2.10"}},"_links":{"self":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/3478"},"html":{"href":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3478"},"issue":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3478"},"comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/3478/comments"},"review_comments":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/pulls/3478/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/3478/commits"},"statuses":{"href":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/statuses/f50d75d16e4358871c8f0a4a893b3aecbe5d8a5f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"keradus"}}