Subversion Repositories Applications.framework

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 aurelien 1
<?php
2
/**
3
 * PEAR Coding Standard.
4
 *
5
 * PHP version 5
6
 *
7
 * @category  PHP
8
 * @package   PHP_CodeSniffer
9
 * @author    Greg Sherwood <gsherwood@squiz.net>
10
 * @author    Marc McIntyre <mmcintyre@squiz.net>
11
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
12
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
13
 * @version   CVS: $Id: PEARCodingStandard.php,v 1.8 2008/11/17 05:04:07 squiz Exp $
14
 * @link      http://pear.php.net/package/PHP_CodeSniffer
15
 */
16
 
17
if (class_exists('PHP_CodeSniffer_Standards_CodingStandard', true) === false) {
18
    throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_CodingStandard not found');
19
}
20
 
21
/**
22
 * PEAR Coding Standard.
23
 *
24
 * @category  PHP
25
 * @package   PHP_CodeSniffer
26
 * @author    Greg Sherwood <gsherwood@squiz.net>
27
 * @author    Marc McIntyre <mmcintyre@squiz.net>
28
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
29
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
30
 * @version   Release: 1.2.0RC1
31
 * @link      http://pear.php.net/package/PHP_CodeSniffer
32
 */
33
class PHP_CodeSniffer_Standards_PEAR_PEARCodingStandard extends PHP_CodeSniffer_Standards_CodingStandard
34
{
35
 
36
 
37
    /**
38
     * Return a list of external sniffs to include with this standard.
39
     *
40
     * The PEAR standard uses some generic sniffs.
41
     *
42
     * @return array
43
     */
44
    public function getIncludedSniffs()
45
    {
46
        return array(
47
                'Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php',
48
                'Generic/Sniffs/PHP/LowerCaseConstantSniff.php',
49
                'Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php',
50
                'Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php',
51
               );
52
 
53
    }//end getIncludedSniffs()
54
 
55
 
56
}//end class
57
?>