private function processViolationsIfDirty() { if ($this->violationsDirty) { $this->sortViolations(); $this->violationsDirty = false; } }