Implement PSR-2 code standard.

Signed-off-by: crynobone <crynobone@gmail.com>