Changeset 5950


Ignore:
Timestamp:
01/20/12 01:35:38 (4 months ago)
Author:
vain
Message:
  • fixed parent class not found error
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build-tools/CodeSniffer/Standards/Clansuite/Sniffs/ControlStructures/ControlSignatureSniff.php

    r5856 r5950  
    11<?php 
     2if (class_exists('PHP_CodeSniffer_Standards_AbstractPatternSniff', true) === false) 
     3{ 
     4    throw new PHP_CodeSniffer_Exception('Class PHP_CodeSniffer_Standards_AbstractPatternSniff not found'); 
     5} 
    26/** 
    37 * Verifies that control structures conform to their coding standards. 
     
    2933    { 
    3034        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        ); 
    4145    } 
    4246} 
Note: See TracChangeset for help on using the changeset viewer.