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

ID: 18972
Updated by: gsherwood@squiz.net
Reported By: brian dot kendig at disney dot com
Summary: A comment shouldn't trigger a "last content on the
line" error
-Status: Feedback
+Status: Wont fix
Type: Bug
Package: PHP_CodeSniffer
Operating System: Mac OS X 10.6.8
Package Version: SVN
PHP Version: 5.3.8
Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Feedback
+Status: Wont fix



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

[2011-11-10 23:33:50] squiz

-Assigned To:
+Assigned To: squiz


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

[2011-11-10 23:33:44] squiz

-Status: Open
+Status: Feedback
The PEAR standard says that it should be the last content on a line. I
don't believe
comments are just allowed anywhere, although you may want to clarify the
position
of the PEAR QA group on their mailing list if you strongly oppose it.

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

[2011-11-08 16:56:47] bkendig

Description:
------------
This line:

$n = new Default_Model_Name( //name

triggers this message:

error - Opening parenthesis of a multi-line function call must
be the last content on the line

It probably shouldn't; aren't comments allowed to go
anywhere? Technically, comments aren't content.



Test script:
---------------
$n = new Default_Model_Name( //name
$this->_formData['stepTwo']['title'],
$this->_formData['stepTwo']['firstName'],
$this->_formData['stepTwo']['lastName'],
$this->_formData['stepTwo']['middleInitial'],
$this->_formData['stepTwo']['suffix']
);


Expected result:
----------------
Nothing

Actual result:
--------------
error - Opening parenthesis of a multi-line function call must be
the last content on the line

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 1, '11 at 4:10a
activeDec 1, '11 at 4:10a
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2021 Grokbase