protected function getLangPhrases(array $labels, array &$messagesToRegister)
    {
        $messages = [];

        foreach ($labels as $label) {
            if (!$this->isMessageExists($label->localeGroup, $label->lang) || $this->option('force')) {
                $messages[] = $this->getMessage($label);
                $messagesToRegister[$label->localeGroup] = $label->text;
            }
        }

        $glue = "," . PHP_EOL;

        return !isset($messages[0]) ? '' : implode($glue, $messages) . $glue;
    }
protected function getLangPhrases(array $labels, array &$messagesToRegister)
    {
        $messages = [];

        foreach ($labels as $label) {
            if (!$this->isMessageExists($label->localeGroup, $label->lang) || $this->option('force')) {
                $messages[] = $this->getMessage($label);
                $messagesToRegister[$label->localeGroup] = $label->text;
            }
        }

        $glue = "," . PHP_EOL;

        return !isset($messages[0]) ? '' : implode($glue, $messages) . $glue;
    }
protected function getLangPhrases ( array $ labels , array & $ messagesToRegister ) { $ messages = [ ] ; foreach ( $ labels as $ label ) { if ( ! $ this -> isMessageExists ( $ label -> localeGroup , $ label -> lang ) || $ this -> option ( 'force' ) ) { $ messages [ ] = $ this -> getMessage ( $ label ) ; $ messagesToRegister [ $ label -> localeGroup ] = $ label -> text ; } } $ glue = "," . PHP_EOL ; return ! isset ( $ messages [ 0 ] ) ? '' : implode ( $ glue , $ messages ) . $ glue ; }
Creates a string on phrases.

@param array $fields
@param array & $messagesToRegister

@return string
Creates a string on phrases .