EASOL / easol

EASOL - A New Way to Open Learning with Ed-Tech
http://easol.org
GNU Affero General Public License v3.0
1 stars 4 forks source link

Integrate Codesniffer #368

Open edgarf opened 7 years ago

edgarf commented 7 years ago

Integrate https://github.com/squizlabs/PHP_CodeSniffer and do the proposed changes to keep the code standard in a high level.

regiscamimura commented 7 years ago

@edgarf Done. It's pushed together with the branch for PHP7. @skoshkarev Let's starting using this from now on, just to make sure the code follows a certain standard. To run it, use the command line and run this command (from the root dir):

vendor/bin/phpcs --standard=CodeIgniter /some/file/or/folder/path

And

vendor/bin/phpcs --standard=PHPCompatiblity --runtime-set testVersion 7.0 /some/file/or/folder/path

Please use that to verify if your code meets the standards requirements. Don't need to worry right now about previous existing code, just make sure to use it on new code.