/**
  * {@inheritdoc}
  */
 protected function outputRuleChecked(RuleCheckedEvent $event)
 {
     $nbErrors = count($event->getViolations());
     if (0 === $nbErrors) {
         $this->output->write('<passed>.</passed>');
     } else {
         $this->output->write('<broken-bg>E</broken-bg>');
     }
     $this->displayProgress($this->output, $this->checkingRuleIteration, $this->ruleCount);
 }
 /**
  * @param RuleCheckedEvent $event
  */
 public function ruleChecked(RuleCheckedEvent $event)
 {
     ++$this->checkingRuleIteration;
     $this->checkingNodeIteration = 0;
     $key = $event->getRule()->getSubject() . $event->getRule()->getType();
     $nbErrors = count($event->getViolations());
     if (0 !== $nbErrors && !in_array($key, $this->rulesOnError)) {
         $this->rulesOnError[$key] = $event->getRule();
         $this->violationsCount += $nbErrors;
     }
     $this->outputRuleChecked($event);
 }