Skip to content
Prevents stupid mistakes
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

#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

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"

Translations

EN
RU

You can’t perform that action at this time.