protected function getLemmasStructured(array $structured = [])
    {
        foreach ($this->getLemmas() as $key => $value) {
            // Get the lemma family
            $family = substr($key, 0, strpos($key, '.'));

            // Check key against the ignore list
            if (in_array($family, $this->config('ignore_lang_files', []))) {
                if ($this->option('verbose')) {
                    $this->line('');
                    $this->info("    ! Skip lang file '{$family}' !");
                }

                continue;
            }

            // Sanity check
            if (strpos($key, '.') === false) {
                $this->line('    <error>' . $key . '</error> in file <comment>' . $this->getShortPath($value) . '</comment> <error>will not be included because it has no parent</error>');
            }
            else {
                Arr::set(
                    $structured, $this->encodeKey($key), $value
                );
            }
        }

        return $structured;
    }
protected function getLemmasStructured(array $structured = [])
    {
        foreach ($this->getLemmas() as $key => $value) {
            // Get the lemma family
            $family = substr($key, 0, strpos($key, '.'));

            // Check key against the ignore list
            if (in_array($family, $this->config('ignore_lang_files', []))) {
                if ($this->option('verbose')) {
                    $this->line('');
                    $this->info("    ! Skip lang file '{$family}' !");
                }

                continue;
            }

            // Sanity check
            if (strpos($key, '.') === false) {
                $this->line('    <error>' . $key . '</error> in file <comment>' . $this->getShortPath($value) . '</comment> <error>will not be included because it has no parent</error>');
            }
            else {
                Arr::set(
                    $structured, $this->encodeKey($key), $value
                );
            }
        }

        return $structured;
    }
protected function getLemmasStructured ( array $ structured = [ ] ) { foreach ( $ this -> getLemmas ( ) as $ key => $ value ) { // Get the lemma family $ family = substr ( $ key , 0 , strpos ( $ key , '.' ) ) ; // Check key against the ignore list if ( in_array ( $ family , $ this -> config ( 'ignore_lang_files' , [ ] ) ) ) { if ( $ this -> option ( 'verbose' ) ) { $ this -> line ( '' ) ; $ this -> info ( "    ! Skip lang file '{$family}' !" ) ; } continue ; } // Sanity check if ( strpos ( $ key , '.' ) === false ) { $ this -> line ( '    <error>' . $ key . '</error> in file <comment>' . $ this -> getShortPath ( $ value ) . '</comment> <error>will not be included because it has no parent</error>' ) ; } else { Arr :: set ( $ structured , $ this -> encodeKey ( $ key ) , $ value ) ; } } return $ structured ; }
Convert dot lemmas to structured lemmas.

@param array $structured

@return array
Convert dot lemmas to structured lemmas .