Vote Details for "Nagios_Plugin" by gauthierm

» Details
  • Voter: Michael Gauthier 
  • Vote: -1 (not conditional)
  • Reviews: Cursory source review
» Comment
You should have asked for more comments on this proposal via the mailing list before moving to the voting stage.

There are a number of coding standard violations that would prevent this package from being accepted in PEAR, even if the package is well written.


1.) Use class constants, not define()
2.) Define scope of class properties (public/private/protected instead of var)
3.) Class methods should use camelCase, not under_scores.
4.) ereg is deprecated in PHP, preg should be used instead.
5.) Line length should be no more than 85 chars.
6.) Documentation is required for each class property and method.
7.) Use of the PHP license is discouraged for PHP libraries. MIT, Apache or BSD-style licenses are preferred.

You can quickly check your code against the PEAR coding standards using the PHP_CodeSniffer tool.