protected function getOldLemmas($file_lang_path, array $values = [])
    {
        if (!is_writable(dirname($file_lang_path))) {
            $this->error("    > Unable to write file in directory " . dirname($file_lang_path));
            die();
        }

        if (!file_exists($file_lang_path)) {
            $this->info("    > File has been created");
        }

        if (!touch($file_lang_path)) {
            $this->error("    > Unable to touch file {$file_lang_path}");
            die();
        }

        if (!is_readable($file_lang_path)) {
            $this->error("    > Unable to read file {$file_lang_path}");
            die();
        }

        if (!is_writable($file_lang_path)) {
            $this->error("    > Unable to write in file {$file_lang_path}");
            die();
        }

        // Get lang file values
        $lang = include($file_lang_path);

        // Parse values
        $lang = is_array($lang) ? Arr::dot($lang) : [];

        foreach ($lang as $key => $value) {
            $values[$this->encodeKey($key)] = $value;
        }

        return $values;
    }
protected function getOldLemmas($file_lang_path, array $values = [])
    {
        if (!is_writable(dirname($file_lang_path))) {
            $this->error("    > Unable to write file in directory " . dirname($file_lang_path));
            die();
        }

        if (!file_exists($file_lang_path)) {
            $this->info("    > File has been created");
        }

        if (!touch($file_lang_path)) {
            $this->error("    > Unable to touch file {$file_lang_path}");
            die();
        }

        if (!is_readable($file_lang_path)) {
            $this->error("    > Unable to read file {$file_lang_path}");
            die();
        }

        if (!is_writable($file_lang_path)) {
            $this->error("    > Unable to write in file {$file_lang_path}");
            die();
        }

        // Get lang file values
        $lang = include($file_lang_path);

        // Parse values
        $lang = is_array($lang) ? Arr::dot($lang) : [];

        foreach ($lang as $key => $value) {
            $values[$this->encodeKey($key)] = $value;
        }

        return $values;
    }
protected function getOldLemmas ( $ file_lang_path , array $ values = [ ] ) { if ( ! is_writable ( dirname ( $ file_lang_path ) ) ) { $ this -> error ( "    > Unable to write file in directory " . dirname ( $ file_lang_path ) ) ; die ( ) ; } if ( ! file_exists ( $ file_lang_path ) ) { $ this -> info ( "    > File has been created" ) ; } if ( ! touch ( $ file_lang_path ) ) { $ this -> error ( "    > Unable to touch file {$file_lang_path}" ) ; die ( ) ; } if ( ! is_readable ( $ file_lang_path ) ) { $ this -> error ( "    > Unable to read file {$file_lang_path}" ) ; die ( ) ; } if ( ! is_writable ( $ file_lang_path ) ) { $ this -> error ( "    > Unable to write in file {$file_lang_path}" ) ; die ( ) ; } // Get lang file values $ lang = include ( $ file_lang_path ) ; // Parse values $ lang = is_array ( $ lang ) ? Arr :: dot ( $ lang ) : [ ] ; foreach ( $ lang as $ key => $ value ) { $ values [ $ this -> encodeKey ( $ key ) ] = $ value ; } return $ values ; }
Get the old lemmas values.

@param string $file_lang_path
@param array  $values

@return array
Get the old lemmas values .