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-2014 Squiz Pty Ltd (ABN 77 084 670 600) 12 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 13 * @link http://pear.php.net/package/PHP_CodeSniffer 14 */ 15 16if (class_exists('Generic_Sniffs_WhiteSpace_ScopeIndentSniff', true) === false) { 17 $error = 'Class Generic_Sniffs_WhiteSpace_ScopeIndentSniff not found'; 18 throw new PHP_CodeSniffer_Exception($error); 19} 20 21/** 22 * PEAR_Sniffs_Whitespace_ScopeIndentSniff. 23 * 24 * Checks that control structures are structured correctly, and their content 25 * is indented correctly. 26 * 27 * @category PHP 28 * @package PHP_CodeSniffer 29 * @author Greg Sherwood <gsherwood@squiz.net> 30 * @author Marc McIntyre <mmcintyre@squiz.net> 31 * @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600) 32 * @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence 33 * @version Release: @package_version@ 34 * @link http://pear.php.net/package/PHP_CodeSniffer 35 */ 36class PEAR_Sniffs_WhiteSpace_ScopeIndentSniff extends Generic_Sniffs_WhiteSpace_ScopeIndentSniff 37{ 38 39 /** 40 * Any scope openers that should not cause an indent. 41 * 42 * @var array(int) 43 */ 44 protected $nonIndentingScopes = array(T_SWITCH); 45 46}//end class 47