Re: How can I make PHP CodeSniffer Fixer ignore the namespace declaration?
| From: | marco@behnke.biz | Date: | Tue, 12 Mar 2013 14:34:16 +0000 |
| Subject: | Re: How can I make PHP CodeSniffer Fixer ignore the namespace declaration? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-320494@lists.php.net to get a copy of this message | ||
> Norah Jones <nh.jones01@gmail.com> hat am 12. März 2013 um 15:18 geschrieben:
>
> I am using the sublime text 2 plugin for PHP Coding Standards Fixer. It is
> working fine, except for the fact that it considers the namespace invalid (it
> is in fact invalid and I'm okay with it). this errors halts the script from
> correcting the rest of the file. I get the following error:
>
> The namespace Application\Controllers\Admin in does not match the file
> path according to PSR-0 rules.
>
> How can I tell the the script to ignore the namespace constraint. Both command
> line arguments and Sublime text 2 user settings can be changed.
Have you looked at the configuration options? Do they help?
https://github.com/fabpot/PHP-CS-Fixer
>
--
Marco Behnke
Dipl. Informatiker (FH), SAE Audio Engineer Diploma
Zend Certified Engineer PHP 5.3
Tel.: 0174 / 9722336
e-Mail: marco@behnke.biz
Softwaretechnik Behnke
Heinrich-Heine-Str. 7D
21218 Seevetal
http://www.behnke.biz