ta-tikoma / phpins
Prevents stupid mistakes in php class
1.0.0
2020-03-02 11:01 UTC
Requires (Dev)
- phpunit/phpunit: ^8.2
This package is auto-updated.
Last update: 2024-10-29 05:28:46 UTC
README
#EN
phpins
Prevents stupid mistakes, for example: forgot to specify connection for class
Validators:
IDefinedThisVariable - detected where variable is define INotForgottenAddUseThisClass - detected set "use" for all class in file INotUseCyrillicLetterC - detected cyrillic letter "c" in code
Installation
- Install composer.
- Install
phpins
using below command:
composer global require ta-tikoma/phpins
Use:
phpins -f {file-path}
Example output:
RemoveDownLineIndex.php:
WARNING:RemoveDownLineIndex.php:5:18:Class not use "FormData"
WARNING:RemoveDownLineIndex.php:7:18:Class not use "EntityManagerInterface"
WARNING:RemoveDownLineIndex.php:8:32:Class not use "Auth"