Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.0.0RC1

Bug #20268 Incorrect documentation titles in PEAR documentation
Submitted: 2014-05-08 12:54 UTC Modified: 2014-05-09 00:32 UTC
From: senyahnoj Assigned: squiz
Status: Closed Package: PHP_CodeSniffer (version 1.5.3)
PHP Version: 5.5.12 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2014-05-08 12:54 UTC] senyahnoj (Jon Haynes)
Description: ------------ In PHP_CodeSniffer/CodeSniffer/Standards/PEAR/Docs/Commen ting/FunctionCommentStandard.xml PHP_CodeSniffer/CodeSniffer/Standards/PEAR/Docs/Commen ting/FileCommentStandard.xml the <documentation> title attribute is "Class Comments". It should be "Function Comments" or "File Comments" respectively. This problem is visible when using the generator to output the coding standard to HTML as the headings are wrong. Test script: --------------- phpcs --standard=PEAR --generator=HTML > docs.html Expected result: ---------------- Not to get dupicate "Class Comments" headings in my HTML output. Actual result: -------------- I get dupicate "Class Comments" headings in my HTML output.

Comments

 [2014-05-09 00:32 UTC] squiz (Greg Sherwood)
-Status: Open +Status: Closed -Assigned To: +Assigned To: squiz
Thanks for finding this. I've committed the fix here: https://github.com/squizlabs/PHP_CodeSniffer/commit/31b8e1e1e0e7fe92f5a901c6f0f ae17b03f8eb72