eviweb / fuelphp-phpcs

PHP Code Sniffer standard for Fuel PHP
MIT License
27 stars 12 forks source link

Array value not aligned correctly problem #2

Closed feldsam closed 10 years ago

feldsam commented 10 years ago

I got errors like this one:

Array value not aligned correctly; expected 25 spaces but found 5

According to coding standards I use TABS for identention and Spaces for aligning after indentation.

I try to set tab-width=4 but them it's not accept any spaces after indentation.

eviweb commented 10 years ago

Hi feldsam,

thanks for reporting. Could you please provide a piece of code which fails with the error message you've noticed ?

Eric

feldsam commented 10 years ago

http://pastebin.com/qFg3PA5W

--------------------------------------------------------------------------------
FOUND 11 ERROR(S) AFFECTING 11 LINE(S)
--------------------------------------------------------------------------------
 16 | ERROR | Array value not aligned correctly; expected 25 spaces but found 5
 19 | ERROR | Array value not aligned correctly; expected 25 spaces but found 5
 20 | ERROR | Closing parenthesis not aligned correctly; expected 24 space(s) but found 4
 29 | ERROR | Array value not aligned correctly; expected 24 spaces but found 4
 32 | ERROR | Array value not aligned correctly; expected 24 spaces but found 4
 33 | ERROR | Closing parenthesis not aligned correctly; expected 23 space(s) but found 3
 59 | ERROR | Array key not aligned correctly; expected 21 spaces but found 4
 60 | ERROR | Array key not aligned correctly; expected 21 spaces but found 4
 61 | ERROR | Array key not aligned correctly; expected 21 spaces but found 4
 62 | ERROR | Array key not aligned correctly; expected 21 spaces but found 4
 63 | ERROR | Closing parenthesis not aligned correctly; expected 21 space(s) but found 4
--------------------------------------------------------------------------------
eviweb commented 10 years ago

Hi feldsam,

thanks for your help. This issue is fixed in release v1.0.3. The master branch is up-to-date.

Eric