Minor PHP CodeSniffer fixes

Modified from https://github.com/croogo/croogo/pull/177
This patch pulls in the obvious ones to minimize potential
regression

Signed-off-by: Rachman Chavik <rchavik@xintesa.com>