I think the code did that already, i may have forgot to remove the question, but i improved the search for scope open/close by better usage of PHPCS API anyway in https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/commit/259b364f356fc1c0f713517d124d58348a1049a8