[PEAR-BUG] Bug #18657 [Opn->Csd]: anonymous functions wrongly indented

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18657&edit=1

 ID:               18657
 Updated by:       [email protected]
 Reported By:      cweiske at php dot net
 Summary:          anonymous functions wrongly indented
-Status:           Open
+Status:           Closed
 Type:             Bug
 Package:          PHP_CodeSniffer
 Package Version:  1.3.0
 PHP Version:      5.3.6
-Assigned To:      
+Assigned To:      squiz
 Roadmap Versions: 
 New Comment:

-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: squiz
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




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

[2011-07-08 13:17:36] cweiske

Description:
------------
When using anonymous functions, they are shown as wrongly indented:

class a
    function c()
    {
        $this->doSomething(
            function () {
                echo 123;
            }
        );
    }
}


This is related to bug #16961.

Actual result:
--------------
error - Line indented incorrectly; expected 8 spaces, found 12

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


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18657&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.