Alexia / php7mar

PHP 7 Migration Assistant Report (MAR)
GNU General Public License v3.0
797 stars 133 forks source link

Adding support for specifyng file extensions to consider as PHP files #6

Closed willbonde closed 9 years ago

willbonde commented 9 years ago

I use some other file extensions for PHP files, notably .inc. I created a -x option to specify file extensions to consider PHP files. Defaults to just .php, so the default use case, commands, etc will not change.

Ex:

    php mar.php -f=~/mycode/ 

Will run looking for and processing for just ".php" files as before

    php mar.php -f=~/mycode/ -x="php,inc"

Will run looking for and processing ".php" and ".inc" files

Alexia commented 9 years ago

I will look at this in a couple hours over lunch, but it looks fine other than code styling issues.(I'll just clean it up after the merge.)

willbonde commented 9 years ago

Awesome. If I make any more changes I will pay closer attention to your styling.

Alexia commented 9 years ago

This is now merged in and I made a few fixes so it works on PHP 5.4.