protected function processExistingLemmas($family, array $old_lemmas = [], array $new_lemmas = [])
    {
        // Get existing lemmas
        $lemmas = array_intersect_key($old_lemmas, $new_lemmas);

        if (count($lemmas) > 0) {
            // Sort lemmas by key
            ksort($lemmas);

            if ($this->option('verbose')) {
                $this->line("            " . count($lemmas) . " already translated strings");
            }

            foreach ($lemmas as $key => $value) {
                Arr::set(
                    $this->final_lemmas, $key, $value
                );
            }

            return true;
        }

        return false;
    }
protected function processExistingLemmas($family, array $old_lemmas = [], array $new_lemmas = [])
    {
        // Get existing lemmas
        $lemmas = array_intersect_key($old_lemmas, $new_lemmas);

        if (count($lemmas) > 0) {
            // Sort lemmas by key
            ksort($lemmas);

            if ($this->option('verbose')) {
                $this->line("            " . count($lemmas) . " already translated strings");
            }

            foreach ($lemmas as $key => $value) {
                Arr::set(
                    $this->final_lemmas, $key, $value
                );
            }

            return true;
        }

        return false;
    }
protected function processExistingLemmas ( $ family , array $ old_lemmas = [ ] , array $ new_lemmas = [ ] ) { // Get existing lemmas $ lemmas = array_intersect_key ( $ old_lemmas , $ new_lemmas ) ; if ( count ( $ lemmas ) > 0 ) { // Sort lemmas by key ksort ( $ lemmas ) ; if ( $ this -> option ( 'verbose' ) ) { $ this -> line ( "            " . count ( $ lemmas ) . " already translated strings" ) ; } foreach ( $ lemmas as $ key => $ value ) { Arr :: set ( $ this -> final_lemmas , $ key , $ value ) ; } return true ; } return false ; }
Process existing lemmas.

@param string $family
@param array  $old_lemmas
@param array  $new_lemmas

@return bool
Process existing lemmas .