Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/**
3
 * PEAR_Sniffs_Whitespace_ScopeIndentSniff.
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: ScopeIndentSniff.php 254092 2008-03-03 02:51:39Z squiz $
14
 * @link      http://pear.php.net/package/PHP_CodeSniffer
15
 */
16
 
17
if (class_exists('Generic_Sniffs_WhiteSpace_ScopeIndentSniff', true) === false) {
18
    $error = 'Class Generic_Sniffs_WhiteSpace_ScopeIndentSniff not found';
19
    throw new PHP_CodeSniffer_Exception($error);
20
}
21
 
22
/**
23
 * PEAR_Sniffs_Whitespace_ScopeIndentSniff.
24
 *
25
 * Checks that control structures are structured correctly, and their content
26
 * is indented correctly.
27
 *
28
 * @category  PHP
29
 * @package   PHP_CodeSniffer
30
 * @author    Greg Sherwood <gsherwood@squiz.net>
31
 * @author    Marc McIntyre <mmcintyre@squiz.net>
32
 * @copyright 2006 Squiz Pty Ltd (ABN 77 084 670 600)
33
 * @license   http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
34
 * @version   Release: 1.2.1
35
 * @link      http://pear.php.net/package/PHP_CodeSniffer
36
 */
37
class PEAR_Sniffs_WhiteSpace_ScopeIndentSniff extends Generic_Sniffs_WhiteSpace_ScopeIndentSniff
38
{
39
 
40
    /**
41
     * Any scope openers that should not cause an indent.
42
     *
43
     * @var array(int)
44
     */
45
    protected $nonIndentingScopes = array(T_SWITCH);
46
 
47
}//end class
48
 
49
?>