make scale() public

This commit is contained in:
Evan Prodromou 2012-03-05 09:32:25 -06:00
parent 1d46a1288f
commit 8a1911322f

View File

@ -154,7 +154,7 @@ class Spam_score extends Managed_DataObject
} }
} }
protected static function scale($score) public static function scale($score)
{ {
$raw = round($score * Spam_score::MAX_SCALE); $raw = round($score * Spam_score::MAX_SCALE);
return max(0, min(Spam_score::MAX_SCALE, $raw)); return max(0, min(Spam_score::MAX_SCALE, $raw));