Changeset 1144

Show
Ignore:
Timestamp:
12/13/07 18:46:41 (8 months ago)
Author:
mikey
Message:

allowed "vfs" as class name prefix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/org/stubbles/codeSniffer/stubbles/sniffs/Classes/stubValidClassNameSniff.php

    r1131 r1144  
    6767        // Check for 'stub' prefix in class name. 
    6868        $stubPrefix = (substr($className,0,4) === 'stub')? true : false; 
    69         if ($stubPrefix === false) { 
     69        $vfsPrefix  = (substr($className,0,3) === 'vfs')? true : false; 
     70        if (false === $stubPrefix && false === $vfsPrefix) { 
    7071            $type  = ucfirst($tokens[$stackPtr]['content']); 
    7172            $error = "$type \"$className\" is not prefixed with \"stub\"";