php-cs-fixer from symfony command -


i want create command runs php-cs-fixer fix src/appbundle --rules=@symfony

i need command able pass parameters --path or --rules.

i know how build command, don't know how run php cs fixer it. can provide guidance?

le: not needed anymore since choose other solution resolve problem

will parameters change on every call, or often? if not, or there small number of variations, put 1 or more shell scripts, or makefile.

even if path change, extracting relevant path variable makes easier find, , change - setting constant in php code.

#!/bin/sh # file: fixphpstyles.sh  srcpath=src/appbundle /usr/local/bin/php-cs-fixer fix $srcpath --rules=@symfony 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -