Bug #15910 [Com]: Object operator indention not calculated correctly
| From: | ricson | Date: | Thu, 10 Sep 2009 15:25:19 +0000 |
| Subject: | Bug #15910 [Com]: Object operator indention not calculated correctly | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-1597@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15910&edit=1
ID: 15910
Comment by: ricson
Reported By: rico dot sonntag at netresearch dot de
Summary: Object operator indention not calculated correctly
Status: Assigned
Type: Bug
Package: PHP_CodeSniffer
PHP Version: 5.2.8
Assigned To: squiz
New Comment:
Code like this:
$object
->setBar($foo)
->setFoo($bar);
Results in errors like:
Object operator not indented correctly; expected 16 spaces but found 12
Previous Comments:
------------------------------------------------------------------------
[2009-09-10 16:16:35] cweiske
<div id="changeset">
<span class="removed">-Status: Closed</span>
<span class="added">+Status: Open</span>
</div>
------------------------------------------------------------------------
[2009-02-20 00:26:23] squiz
<div id="changeset">
<span class="removed">-Status: Assigned</span>
<span class="added">+Status: Closed</span>
</div>
This bug has been fixed in CVS.
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.
------------------------------------------------------------------------
[2009-02-19 22:44:52] squiz
<div id="changeset">
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: squiz</span>
</div>
------------------------------------------------------------------------
[2009-02-18 13:16:47] cybot
Description:
------------
Object operator indention not calculated correctly
Test script:
---------------
<?php
func(
$bar->foo()
)
->bar()
?>
Expected result:
----------------
no coding errors
Actual result:
--------------
phpcs phpcs_fail.php
FILE: /mnt/work-server/work-www/www.aida.de/sme/phpcs_fail.php
--------------------------------------------------------------------------------
FOUND 2 ERROR(S) AND 0 WARNING(S) AFFECTING 2 LINE(S)
--------------------------------------------------------------------------------
2 | ERROR | Missing file doc comment
6 | ERROR | Object operator not indented correctly; expected 8 spaces
but
| | found 4
--------------------------------------------------------------------------------
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15910&edit=1