Applied CS Fixer to everything

Have applied the PHP CS Fixer (https://github.com/fabpot/PHP-CS-Fixer)

Please have a quick look - we can customize this (e.g. do we want to align our doc parameters?)
@dantleech Can the cs fixer also be configured to replace this with `InvalidArgumentException` and use the class instead?