reformatted all code to psr standard