PHP CodeSniffer fixes

Based on https://github.com/croogo/croogo/pull/177
This patch contains the non-obvious chunks

Signed-off-by: Rachman Chavik <rchavik@xintesa.com>
Minor style fixes
Merge branch '1.6-cs-fixes' into 1.6
Refactor: Add `return` for Controller::redirect()
Fix broken tests due to refactor in 99e5e0fcf8
Merge branch '1.6-redirect' into 1.6