Changeset 5950
- Timestamp:
- 01/20/12 01:35:38 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/build-tools/CodeSniffer/Standards/Clansuite/Sniffs/ControlStructures/ControlSignatureSniff.php
r5856 r5950 1 1 <?php 2 if (class_exists('PHP_CodeSniffer_Standards_AbstractPatternSniff', true) === false) 3 { 4 throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractPatternSniff not found'); 5 } 2 6 /** 3 7 * Verifies that control structures conform to their coding standards. … … 29 33 { 30 34 return array( 31 'tryEOL...{EOL...}EOL...catch (...)EOL...{EOL',32 'doEOL...{EOL...}EOL...while (...);EOL',33 'for (...)EOL...{EOL',34 'if.(...)EOL...{EOL',35 'foreach (...)EOL...{EOL',36 '}EOL...else if (...)EOL...{EOL',37 '}EOL...elseif (...)EOL...{EOL',38 '}EOL...elseEOL{EOL...EOL',39 'switch (...)EOL...{EOL',40 );35 'tryEOL...{EOL...}EOL...catch (...)EOL...{EOL', 36 'doEOL...{EOL...}EOL...while (...);EOL', 37 'for (...)EOL...{EOL', 38 'if.(...)EOL...{EOL', 39 'foreach (...)EOL...{EOL', 40 '}EOL...else if (...)EOL...{EOL', 41 '}EOL...elseif (...)EOL...{EOL', 42 '}EOL...elseEOL{EOL...EOL', 43 'switch (...)EOL...{EOL', 44 ); 41 45 } 42 46 }
Note: See TracChangeset
for help on using the changeset viewer.
