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

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