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

ID: 19155
Updated by: gsherwood@squiz.net
Reported By: wiltave at gmail dot com
Summary: phpcs doesn't follow zf standards when argument list
is too long (> 80 chars)
-Status: Open
+Status: Bogus
Type: Bug
Package: PHP_CodeSniffer
Operating System: Debian Linux
Package Version: 1.3.2
PHP Version: 5.3.8
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-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.


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

[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)

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 22, '11 at 9:22p
activeDec 22, '11 at 9:22p
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2022 Grokbase