fix code to psr2 standard