P
P
pakrauce2016-03-19 12:32:28
PHP
pakrauce, 2016-03-19 12:32:28

How to make sure PHP Codesniffer works?

I use OS X and the Atom editor. What I did:
1. Installed pear
2. Added the path to PATH

/Users/Pave/pear/bin

3. Installed Codesniffer
pear install PHP_CodeSniffer

4. Installed the atom-phpcs plugin in Atom
5. Specified the paths in the plugin settings
/Users/Pave/pear/bin/phpcbf
/Users/Pave/pear/bin/phpcs
and the PSR2 standard
As I understand it, for example, for such a code, where there is no space between if and brackets, it should swear
if(true){
  //
}

But nothing happens. How can I know for sure if the plugin is working or not? If it really doesn't work, what am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question