thomasbachem / php-short-array-syntax-converter

Command-line script to convert PHP's array() syntax to PHP 5.4's short array syntax []

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert a whole directory recursively - WINDOWS

jan-j opened this issue · comments

In Windows OS command line find command is not compatible with example presented in readme. But the same can be done with command below:

FOR /f "tokens=*" %a in ('dir *.php /S/B') DO php convert.php %a -w

@DoubleKing You could also use a php-cs-fixer (https://github.com/fabpot/PHP-CS-Fixer) using short_array_syntax fixer.

Added to README.md in f4051c7, thanks!