Changeset 1317

Show
Ignore:
Timestamp:
01/31/08 15:22:06 (7 months ago)
Author:
richi
Message:

coding standards: fixed minor bug

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/org/stubbles/codeSniffer/Stubbles/Sniffs/Classes/stubClassExcluder.php

    r1309 r1317  
    1818     * @var  array<string> 
    1919     */ 
    20     protected static $classPatterns = array('/Binford/', 
     20    protected static $classPatterns = array('/^Binford$/', 
    2121                                            '/ClassLoader$/', 
     22                                            '/ClassNotFoundException$/', 
    2223                                            '/TestSuite$/', 
    2324                                            '/^Stubbles_Sniffs/' 
  • trunk/src/main/php/org/stubbles/codeSniffer/Stubbles/Sniffs/Classes/stubClassFileNameSniff.php

    r1309 r1317  
    4949            && stubClassExcluder::isExcluded($className) === false) { 
    5050            $error  = ucfirst($tokens[$stackPtr]['content']); 
    51             $error .= ' name doesn\'t match filename. Expected '; 
     51            $error .= ' name (' . $className . ') doesn\'t match filename. Expected '; 
    5252            $error .= '"'.$tokens[$stackPtr]['content'].' '; 
    5353            $error .= $fileName.'".';