benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
812 stars 126 forks source link

php prefix path for only one feature #49

Closed ahamrani closed 11 years ago

ahamrani commented 12 years ago

Hi,

I have noticed that when I set phpcs_php_prefix_path and want to use php-cs-fixer with the phar archive and php mess detector with an executable (installed through pear packages) : the php prefix path is used for both features.

The result is that I have an error in the console and mess detector does not run.

 C:\wamp\bin\php\php5.4.3\php.exe phpmd D:\www\webroot\project\hello.php text   codesize,unusedcode,naming

 Could not open input file: phpmd

But it works if both features have their phar executable set

I have manually changed the phpcs.py to fix this in my local installation. I will do a Pull Request, Could you please see if the fix will not break something ?

thanks