You are here

private function TranslationDataCollector::computeCount in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/DataCollector/TranslationDataCollector.php \Symfony\Component\Translation\DataCollector\TranslationDataCollector::computeCount()
1 call to TranslationDataCollector::computeCount()
TranslationDataCollector::lateCollect in vendor/symfony/translation/DataCollector/TranslationDataCollector.php
Collects data as late as possible.

File

vendor/symfony/translation/DataCollector/TranslationDataCollector.php, line 116

Class

TranslationDataCollector
@author Abdellatif Ait boudad <a.aitboudad@gmail.com>

Namespace

Symfony\Component\Translation\DataCollector

Code

private function computeCount($messages) {
  $count = array(
    DataCollectorTranslator::MESSAGE_DEFINED => 0,
    DataCollectorTranslator::MESSAGE_MISSING => 0,
    DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK => 0,
  );
  foreach ($messages as $message) {
    ++$count[$message['state']];
  }
  return $count;
}