PHP Code Code Analysis Tool commands moved to https://github.com/justcoded/git-extras repository.
This dockerized tool provides you Makefile commands to check and fix PHP code.
It's built on top of https://github.com/easy-coding-standard/easy-coding-standard library
and uses some other supported packages to cover as many rules as possible.
- Download code.mk
- Include code.mkin yourMakefile
include code.mk- Use :)
This tool uses code. namespace for all the commands it provides.
Use make help if available in your project to see for available commands.
You can see details in code.mk file to be aware of all available commands.
make code.checkmake code.check path=src/app/Httpmake code.check.dirtymake code.check.diffmake code.check.diff branch=mainmake code.fixmake code.fix path=src/app/Httpmake code.fix.dirtymake code.fix.diffmake code.fix.diff branch=main- Publish the config
make code.config.publish- Modify ecs.phpfile to fit your needs.
You can download a fresh code.mk file using the following command:
make code.self-update