Refactor code to PSR-2 standard

We try to code as close as we can to PSR-2, because WordPress doesn't use PSR-2 the code can;t be completely PSR-2 complaint.