public function getVersion()
    {
        $code = $this->runShell('tika --version', $stdout);

        // Parse output
        if (!$code && preg_match('/Apache Tika (?<version>[\.\d]+)/', $stdout, $matches)) {
            return $matches['version'];
        }

        return 0;
    }
public function getVersion()
    {
        $code = $this->runShell('tika --version', $stdout);

        // Parse output
        if (!$code && preg_match('/Apache Tika (?<version>[\.\d]+)/', $stdout, $matches)) {
            return $matches['version'];
        }

        return 0;
    }
public function getVersion ( ) { $ code = $ this -> runShell ( 'tika --version' , $ stdout ) ; // Parse output if ( ! $ code && preg_match ( '/Apache Tika (?<version>[\.\d]+)/' , $ stdout , $ matches ) ) { return $ matches [ 'version' ] ; } return 0 ; }
Get the version of tika installed, or 0 if not installed

@return mixed float | int The version of tika
Get the version of tika installed or 0 if not installed