Bug #19155 [Bgs->Csd]: phpcs doesn't follow zf standards when argument list is too long (> 80 chars)
| From: | wiltave at gmail dot com | Date: | Fri, 16 Nov 2012 17:52:27 +0000 |
| Subject: | Bug #19155 [Bgs->Csd]: phpcs doesn't follow zf standards when argument list is too long (> 80 chars) | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9350@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19155&edit=1
ID: 19155
Updated by: wiltave@gmail.com
Reported By: wiltave at gmail dot com
Summary: phpcs doesn't follow zf standards when argument list
is too long (> 80 chars)
-Status: Bogus
+Status: Closed
Type: Bug
Package: PHP_CodeSniffer
Operating System: Debian Linux
Package Version: 1.3.2
PHP Version: 5.3.8
Assigned To: squiz
Roadmap Versions:
New Comment:
-Status: Bogus
+Status: Closed
I understand.
Thank you Greg Sherwood.
Previous Comments:
------------------------------------------------------------------------
[2011-12-22 22:22:27] squiz
-Status: Open
+Status: Bogus
-Assigned To:
+Assigned To: squiz
The Zend standard is *not* the Zend Framework standard and is not used
by ZF
developers. It's just an old collection of sniffs from someone at Zend.
If you're looking for an official and supported ZF standard, ask someone
on the ZF
team.
------------------------------------------------------------------------
[2011-12-22 15:02:40] willianveiga
Description:
------------
PHP_CodeSniffer should follow Zend Framework's standards when the
argument list exceeds the maximum line length (80 chars).
Running phpcs:
$ phpcs --standard=Zend --encoding=utf-8 -p -vvv /project/path
Code:
<?php
// code here ...
public function __construct(\PDO $connection,
\Session\SessionInterface $session
) {
// code here ...
Error:
11 | ERROR | Opening brace should be on a new line
Standard:
Functions and Methods
(http://framework.zend.com/manual/en/coding-standard.coding-style.html)
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19155&edit=1