Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * PHP_CodeSniffer 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: PHPCSCodingStandard.php 271053 2008-12-12 04:06:01Z squiz $
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
 * PHP_CodeSniffer 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.1
31
 * @link      http://pear.php.net/package/PHP_CodeSniffer
32
 */
33
class PHP_CodeSniffer_Standards_PHPCS_PHPCSCodingStandard extends PHP_CodeSniffer_Standards_CodingStandard
34
{
35
 
36
 
37
    /**
38
     * Return a list of external sniffs to include with this standard.
39
     *
40
     * The PHP_CodeSniffer standard combines the PEAR and Squiz standards
41
     * but removes some sniffs from the Squiz standard that clash with
42
     * those in the PEAR standard.
43
     *
44
     * @return array
45
     */
46
    public function getIncludedSniffs()
47
    {
48
        return array(
49
                'PEAR',
50
                'Squiz',
51
               );
52
 
53
    }//end getIncludedSniffs()
54
 
55
 
56
    /**
57
     * Return a list of external sniffs to exclude from this standard.
58
     *
59
     * The PHP_CodeSniffer standard combines the PEAR and Squiz standards
60
     * but removes some sniffs from the Squiz standard that clash with
61
     * those in the PEAR standard.
62
     *
63
     * @return array
64
     */
65
    public function getExcludedSniffs()
66
    {
67
        return array(
68
                'Squiz/Sniffs/Classes/ClassFileNameSniff.php',
69
                'Squiz/Sniffs/Classes/ValidClassNameSniff.php',
70
                'Squiz/Sniffs/Commenting/ClassCommentSniff.php',
71
                'Squiz/Sniffs/Commenting/FileCommentSniff.php',
72
                'Squiz/Sniffs/Commenting/FunctionCommentSniff.php',
73
                'Squiz/Sniffs/Commenting/VariableCommentSniff.php',
74
                'Squiz/Sniffs/ControlStructures/SwitchDeclarationSniff.php',
75
                'Squiz/Sniffs/Files/FileExtensionSniff.php',
76
                'Squiz/Sniffs/Files/LineLengthSniff.php',
77
                'Squiz/Sniffs/NamingConventions/ConstantCaseSniff.php',
78
                'Squiz/Sniffs/WhiteSpace/ScopeIndentSniff.php',
79
               );
80
 
81
    }//end getExcludedSniffs()
82
 
83
 
84
}//end class
85
?>