benmatselby / sublime-phpcs

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

How do I prevent linter from warning about App\Class::class errors? #171

Closed alexleonard closed 7 years ago

alexleonard commented 7 years ago

I'm using Sublime on Ubuntu Linux with PHP7 installed and run PHPCS on all my Laravel based projects.

The standard for class declarations appears to have taken the App\Class::class approach but everytime I save a file with this syntax in it, the linter highlights it as an error.

selection_129

Is there an easy configuration change that can be made to get the linter to ignore this?

benmatselby commented 7 years ago

@alexleonard Hi there, what happens when you run the phpcs from the command line? Do you get the same issue? Is this just the standard that is being used? If you open the console in Sublime and make sure "show_debug": true then you can see what is being shelled out to bash

alexleonard commented 7 years ago

Hey @benmatselby

Sorry for the delay getting back to you on this. Work got a little hectic and then I moved country!

Finally getting back to normal here :)

I ran it on config/app.php in my terminal and get:

selection_134

If I enable show_debug in my sublime phpcs settings and run the command this is the debug output:

[Phpcs] php -l -d display_errors=On /path/to/config/app.php
[Phpcs] php -l -d display_errors=On /path/to/config/app.php
[Phpcs] cwd: /home/alex
[Phpcs] No syntax errors detected in /path/to/config/app.php

[Phpcs] /usr/bin/phpcs --report=checkstyle --standard=PSR2 -n /path/to/config/app.php
[Phpcs] /usr/bin/phpcs --report=checkstyle --standard=PSR2 -n /path/to/config/app.php
[Phpcs] cwd: /path/to/config
[Phpcs] PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
PHP Notice:  Undefined index: scope_opener in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 99
PHP Notice:  Undefined index: scope_closer in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 275
PHP Notice:  Undefined index:  in /usr/share/php/PHP/CodeSniffer/Standards/PSR2/Sniffs/Classes/ClassDeclarationSniff.php on line 277
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="1.5.0RC2">
<file name="/path/to/config/app.php">
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="1" column="1" severity="error" message="The closing brace for the class must go on the next line after the body" source="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
 <error line="129" column="46" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="130" column="59" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="130" column="59" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="131" column="44" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="131" column="44" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="132" column="48" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="132" column="48" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="133" column="72" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="133" column="72" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="134" column="50" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="134" column="50" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="135" column="54" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="135" column="54" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="136" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="136" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="137" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="137" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="138" column="68" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="138" column="68" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="139" column="49" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="139" column="49" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="140" column="46" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="140" column="46" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="141" column="63" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="141" column="63" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="142" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="142" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="143" column="54" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="143" column="54" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="144" column="48" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="144" column="48" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="145" column="48" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="145" column="48" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="146" column="65" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="146" column="65" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="147" column="52" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="147" column="52" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="148" column="60" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="148" column="60" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="149" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="149" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="150" column="46" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="150" column="46" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="155" column="43" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="155" column="43" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="156" column="44" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="156" column="44" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="158" column="45" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="158" column="45" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="159" column="45" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="159" column="45" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="162" column="48" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="162" column="48" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="166" column="45" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="166" column="45" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="175" column="46" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="175" column="46" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="179" column="52" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="179" column="52" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="181" column="50" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="181" column="50" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="198" column="56" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="198" column="56" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="199" column="60" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="199" column="60" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="200" column="57" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="200" column="57" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="201" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="201" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="202" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="202" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="203" column="59" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="203" column="59" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="204" column="59" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="204" column="59" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="205" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="205" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="206" column="55" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="206" column="55" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="207" column="60" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="207" column="60" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="208" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="208" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="209" column="57" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="209" column="57" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="210" column="57" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="210" column="57" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="211" column="57" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="211" column="57" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="212" column="57" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="212" column="57" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="213" column="56" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="213" column="56" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="214" column="57" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="214" column="57" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="215" column="68" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="215" column="68" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="216" column="61" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="216" column="61" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="217" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="217" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="218" column="61" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="218" column="61" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="219" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="219" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="220" column="60" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="220" column="60" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="221" column="61" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="221" column="61" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="222" column="58" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="222" column="58" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="223" column="59" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="223" column="59" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="224" column="60" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="224" column="60" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="225" column="60" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="225" column="60" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="226" column="56" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="226" column="56" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="227" column="62" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="227" column="62" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="228" column="57" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="228" column="57" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="233" column="47" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="233" column="47" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="234" column="47" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="234" column="47" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="236" column="45" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="236" column="45" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="237" column="49" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="237" column="49" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
 <error line="239" column="54" severity="error" message="Each class must be in a file by itself" source="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
 <error line="239" column="54" severity="error" message="Each class must be in a namespace of at least one level (a top-level vendor name)" source="PSR1.Classes.ClassDeclaration.MissingNamespace"/>
</file>
</checkstyle>

[Phpcs] Linter found 0 errors
[Phpcs] Sniffer found 200 errors
alexleonard commented 7 years ago

Oh and my user settings for /home/alex/.config/sublime-text-3/Packages/User/phpcs.sublime-settings are

{
    "show_debug": true,
    "phpcs_show_quick_panel": true,
    "php_cs_fixer_on_save": false,
    "php_cs_fixer_executable_path": "/usr/local/bin/php-cs-fixer",
    "phpcs_executable_path": "/usr/bin/phpcs"
}
benmatselby commented 7 years ago

Hi @alexleonard

You are running two different standards there. In the image, you are using PEAR and in the the plugin you are using PSR2

So not sure what standard you want to use, but you may want to define:

"phpcs_additional_args": {
        "--standard": "PSR2"
    }

OR, in your Sublime editor run Command Palette > "PHP Code Sniffer: Switch coding standard" and pick the one you want to use

Give that a try and let me know

alexleonard commented 7 years ago

Hey @benmatselby

I found it! I forgot I had installed PHP_CodeSniffer through pear so it wasn't auto-updating with general apt-get upgrade

I was running v1.5 and upgrading put me on v3. Straight away the issue is gone!

When I had manually run phpcs in the terminal I hadn't specified --standard=PSR2, but Sublime has always used the default phpcs_additional_args:

    // Additional arguments you can specify into the application
    //
    // Example:
    // {
    //     "--standard": "PEAR",
    //     "-n"
    // }
    "phpcs_additional_args": {
        "--standard": "PSR2",
        "-n": ""
    },

Now when I run it after the upgrade it's all clear too :)

 % phpcs -v --standard=PSR2 -n app.php
Registering sniffs in the PSR2 standard... DONE (42 sniffs registered)
Creating file list... DONE (1 files in queue)
Changing into directory /home/alex/path/to/config
Processing app.php [PHP => 1425 tokens in 260 lines]... DONE in 14ms (0 errors, 0 warnings)