FILE: /Users/govinda/Sites/mysite/app/Models/Blog.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 209 ERRORS AND 6 WARNINGS AFFECTING 175 LINES
--------------------------------------------------------------------------------------------------------------------------
14 | ERROR | [x] Opening brace of a class must be on the line after the definition
16 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
...
Some of my system info:
PHP_CodeSniffer version 3.1.1 (stable) by Squiz (http://www.squiz.net)
PEAR Version: 1.10.5
PHP Version: 7.1.8
Zend Engine Version: 3.1.0
Running on: Darwin Govindas-iMac.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
Hi there:
I am getting a fatal error when attempting to use your standard while running
phpcs
from the command line.Here is the command I'm using:
In contrast,
phpcs
seems to work fine with PSR2. For example, the following command outputs normally:Some of my system info:
Is this is a namespace issue?