문제

I am running XAMPP with windows XP. I just download PHP_CodeSniffer and cannot figure out how to run it.

Thank you

도움이 되었습니까?

해결책

The documentation has it all.

EDIT:

The first line of phpcs is:

#!@php_bin@

you need to replace @php_bin@ with correct path to php to make a meaningful shebang as(In linux):

#!/usr/bin/php

Since windows does not have the concept of shebang, you can delete the first line of phpcsand then run it as:

C:\>path\to\php\bin\php.exe path\to\phpcs path\to\file\to\analyze
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top