PHP_CodeSniffer
[ class tree: PHP_CodeSniffer ] [ index: PHP_CodeSniffer ] [ all elements ]

Source for file ScopeIndentSniff.php

Documentation is available at ScopeIndentSniff.php

  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,v 1.12 2008/03/03 02:51:39 squiz Exp $
  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.1.0a1
  35.  * @link      http://pear.php.net/package/PHP_CodeSniffer
  36.  */
  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.  
  48. ?>

Documentation generated on Sun, 20 Apr 2008 21:02:00 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.