Viewing file: LineLengthSniff.php (1.58 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php /** * PEAR_Sniffs_Files_LineLengthSniff. * * PHP version 5 * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood <gsherwood@squiz.net> * @author Marc McIntyre <mmcintyre@squiz.net> * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence * @version CVS: $Id: LineLengthSniff.php,v 1.6 2007/07/27 05:36:23 squiz Exp $ * @link http://pear.php.net/package/PHP_CodeSniffer */
if (class_exists('Generic_Sniffs_Files_LineLengthSniff', true) === false) { throw new PHP_CodeSniffer_Exception('Class Generic_Sniffs_Files_LineLengthSniff not found'); }
/** * PEAR_Sniffs_Files_LineLengthSniff. * * Checks all lines in the file, and throws warnings if they are over 85 * characters in length. * * @category PHP * @package PHP_CodeSniffer * @author Greg Sherwood <gsherwood@squiz.net> * @author Marc McIntyre <mmcintyre@squiz.net> * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600) * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence * @version Release: 1.1.0 * @link http://pear.php.net/package/PHP_CodeSniffer */ class PEAR_Sniffs_Files_LineLengthSniff extends Generic_Sniffs_Files_LineLengthSniff {
/** * The limit that the length of a line should not exceed. * * @var int */ protected $lineLimit = 85;
/** * The limit that the length of a line must not exceed. * * Set to zero (0) to disable. * * @var int */ protected $absoluteLineLimit = 0;
}//end class
?>
|