Commit: b81dc079f2262abf126fadc3b24ca3e38e638ebc
Author: David Persson | Date: 2009-12-10 20:14:07 +0100
diff --git a/extensions/phpca/Rule/NoShortTypeNamesRule.php b/extensions/phpca/Rule/NoShortTypeNamesRule.php
index e448e69..fc37261 100644
--- a/extensions/phpca/Rule/NoShortTypeNamesRule.php
+++ b/extensions/phpca/Rule/NoShortTypeNamesRule.php
@@ -21,8 +21,7 @@ class NoShortTypeNamesRule extends Rule
foreach ($enforce as $id => $text) {
while ($this->file->seekTokenId($id)) {
$token = $this->file->current();
-
- if ($token->getText() !== $text) {
+ if (strpos($token->getText(), $text) === false) {
$this->addViolation('Short type name', $token);
}
$this->file->next();