Bug #16182 [NEW]: Pear Doc standards.sample.php fails PHP_CodeSniffer validation

From: Date: Tue, 05 May 2009 12:46:37 +0000
Subject: Bug #16182 [NEW]: Pear Doc standards.sample.php fails PHP_CodeSniffer validation
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-11625@lists.php.net to get a copy of this message
From: hm2k Operating system: Package version: PHP version: 5.2.9 Package: Documentation Bug Type: Bug Bug description: Pear Doc standards.sample.php fails PHP_CodeSniffer validation Description: ------------ The sample file found here: http://pear.php.net/manual/en/standards.sample.php Does not appear to be valid according to PHP_CodeSniffer as per the notes. I have checked this myself, and it is still not valid according to PHP_CodeSniffer. This means, that either PHP_CodeSniffer is wrong, or the documentation is, one MUST comply. Rather than adding another note, I have reported this as a bug so it can be tracked. Test script: --------------- [root@blade php]# phpcs pear_sample_file.phps -------------------------------------------------------------------------------- FOUND 3 ERROR(S) AND 1 WARNING(S) AFFECTING 3 LINE(S) -------------------------------------------------------------------------------- 74 | WARNING | Line exceeds 85 characters; contains 105 characters 150 | ERROR | There must be exactly one blank line before the tags in | | function comment 197 | ERROR | Parameters must appear immediately after the comment 197 | ERROR | Expected 1 space after the longest variable name -------------------------------------------------------------------------------- -- Edit bug report at http://pear.php.net/bugs/bug.php?id=16182&edit=1 --

« previous php.pear.doc (#11625) next »