~ubuntu-branches/ubuntu/saucy/php-codesniffer/saucy

« back to all changes in this revision

Viewing changes to PHP_CodeSniffer-1.0.1/CodeSniffer/Standards/PEAR/PEARCodingStandard.php

  • Committer: Bazaar Package Importer
  • Author(s): Jack Bates
  • Date: 2008-10-01 17:39:43 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20081001173943-2dy06n1e8zwyw1o8
Tags: 1.1.0-1
* New upstream release
* Acknowledge NMU, thanks Jan

Show diffs side-by-side

added added

removed removed

Lines of Context:
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.6 2007/08/02 23:18:31 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.0.1
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/Formatting/MultipleStatementAlignmentSniff.php',
48
 
                'Generic/Sniffs/Functions/OpeningFunctionBraceBsdAllmanSniff.php',
49
 
                'Generic/Sniffs/NamingConventions/UpperCaseConstantNameSniff.php',
50
 
                'Generic/Sniffs/PHP/LowerCaseConstantSniff.php',
51
 
                'Generic/Sniffs/PHP/DisallowShortOpenTagSniff.php',
52
 
                'Generic/Sniffs/WhiteSpace/DisallowTabIndentSniff.php',
53
 
               );
54
 
 
55
 
    }//end getIncludedSniffs()
56
 
 
57
 
 
58
 
}//end class
59
 
?>