[ticket/12717] Improve the code sniffer: simple rules

https://tracker.phpbb.com/browse/PHPBB3-12721
updated