src/Funstaff/Tika/Wrapper.php
private function generateCommand()
    {
        $java = $this->config->getJavaBinaryPath() ? : 'java';
        $command = sprintf(
            '%s -Djava.awt.headless=true -jar %s',
            $java,
            $this->config->getTikaBinaryPath()
        );

        if (!$this->config->getMetadataOnly()) {
            $command .= ' --'.$this->config->getOutputFormat();
        } else {
            $command .= ' --json';
        }

        $command .= sprintf(' --encoding=%s', $this->config->getOutputEncoding());

        return $command;
    }
private function generateCommand()
    {
        $java = $this->config->getJavaBinaryPath() ? : 'java';
        $command = sprintf(
            '%s -Djava.awt.headless=true -jar %s',
            $java,
            $this->config->getTikaBinaryPath()
        );

        if (!$this->config->getMetadataOnly()) {
            $command .= ' --'.$this->config->getOutputFormat();
        } else {
            $command .= ' --json';
        }

        $command .= sprintf(' --encoding=%s', $this->config->getOutputEncoding());

        return $command;
    }
Generate Command

@return string $command