Changeset 1144
- Timestamp:
- 12/13/07 18:46:41 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/org/stubbles/codeSniffer/stubbles/sniffs/Classes/stubValidClassNameSniff.php
r1131 r1144 67 67 // Check for 'stub' prefix in class name. 68 68 $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) { 70 71 $type = ucfirst($tokens[$stackPtr]['content']); 71 72 $error = "$type \"$className\" is not prefixed with \"stub\"";
