FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19953&edit=1

  ID: 19953
  Updated by: dbrian89@gmail.com
  Reported By: dbrian89@gmail.com
-Summary: PSR2 - Interface spaces for abstract class
+Summary: PSR2 - Spaces before interface name for abstract
                     class
  Status: Open
  Type: Bug
  Package: PHP_CodeSniffer
  Operating System: Debian
  Package Version: 1.4.5
  PHP Version: 5.4.4
  Roadmap Versions:
  New Comment:

-Summary: PSR2 - Interface spaces for abstract class
+Summary: PSR2 - Spaces before interface name for abstract
           class



Previous Comments:
------------------------------------------------------------------------

[2013-05-21 16:40:01] brian978

Description:
------------
When scanning a file containing an abstract or final class that has
an implement list on multiple lines, the code sniffer reports an
invalid number of spaces. If the class isn't declared as abstract
or final the code passes.

The issue occurs when using the PSR2 standard.

Test script:
---------------
namespace Test;

abstract class Test implements
     TestInterface1,
     TestInterface2
{
}

Expected result:
----------------
The code should pass without errors.

Actual result:
--------------
The code fails with the following output:

------------------------------------------------------------------------
--------
FOUND 2 ERROR(S) AFFECTING 2 LINE(S)
------------------------------------------------------------------------
--------
  13 | ERROR | Expected 5 spaces before interface name; 4
found
  14 | ERROR | Expected 5 spaces before interface name; 4
found
------------------------------------------------------------------------
--------

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedMay 21, '13 at 2:58p
activeMay 21, '13 at 2:58p
posts1
users1
websitepear.php.net

1 user in discussion

Dbrian89: 1 post

People

Translate

site design / logo © 2022 Grokbase