Fix inconsistent coding style in RuleMemoryCalculator