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

https://tracker.phpbb.com/browse/PHPBB3-12721
There MUST be a space between each element of a foreach loop.
The "as" keyword MUST be written in lowercase.