HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Code reviews

2»

Comments

  • R_JR_J Admin

    It relies on the environment variables and they can be a mess. I have had problems with installing php under "program files" and I think the space has been the problem.
    So I would advice to do the following:
    Uninstall php, including pear and code sniffer.
    Delete all environment variable that include the old php path (not only the path variable, bat also the pear specific variables)

    If uninstalling php is not an option, make sure that all variables are correct!
    Reboot Windows since changing environment variables often do not work as expected before the system is restarted.

    a) Go to http://windows.php.net/download and download php 5.6 Non Thread Safe x64
    b) Unzip it to c:\php
    c) Install PEAR by downloading http://pear.php.net/go-pear.phar and running php go-phear.phar
    d) Install CodeSniffer: pear install PHP_CodeSniffer
    e) Try phpcs.bat --standard=PSR2 -n yourfile.php

    If that is successful, add the Vanilla directory from the repository to the CodeSniffers standards and rename Vanilla/Tests to Vanilla/Sniffs

    I really have no clue what I was saying last year...

Sign In or Register to comment.