protected function computeCount(array $messages): array
    {
        $count = [
            TranslatorContract::MESSAGE_DEFINED         => 0,
            TranslatorContract::MESSAGE_MISSING         => 0,
            TranslatorContract::MESSAGE_EQUALS_FALLBACK => 0,
        ];

        foreach ($messages as $message) {
            $count[$message['state']]++;
        }

        return $count;
    }
protected function computeCount(array $messages): array
    {
        $count = [
            TranslatorContract::MESSAGE_DEFINED         => 0,
            TranslatorContract::MESSAGE_MISSING         => 0,
            TranslatorContract::MESSAGE_EQUALS_FALLBACK => 0,
        ];

        foreach ($messages as $message) {
            $count[$message['state']]++;
        }

        return $count;
    }
protected function computeCount ( array $ messages ) : array { $ count = [ TranslatorContract :: MESSAGE_DEFINED => 0 , TranslatorContract :: MESSAGE_MISSING => 0 , TranslatorContract :: MESSAGE_EQUALS_FALLBACK => 0 , ] ; foreach ( $ messages as $ message ) { $ count [ $ message [ 'state' ] ] ++ ; } return $ count ; }
Counter for message types.

@param array $messages

@return array
Counter for message types .