-
Notifications
You must be signed in to change notification settings - Fork 20
Description
The other Mink libraries are using the Symfony2 coding standards, which are a superset of PSR-2.
The current coding standards are conflicting with PSR-2, making it harder for new contributors to get them right (and forcing more experienced contributors to reconfigure their IDEs when switching to this project).
I identified 2 main violations of PSR-2 in the current coding standards:
- tabs instead of spaces for the indentation
- snake cased variable names instead of camel cased ones.
- leading underscores in private properties (not sure whether PSR-2 defines it, but the Symfony standard used by Mink does)
I haven't reviewed everything in depth to build an exhaustive list though.
Note that a nice thing when using the PSR-2 coding standard is that the PHP-CS-Fixer can be used to fix many violations automatically (instead of just complaining in PHPCS). this is how I ensure the consistent coding standards on other Mink repos (the PHP-CS-Fixer also handles many Symfony-specific rules on top of PSR-2 btw).