PygmentsElephant/PygmentizeBinary.php
public function executeCommand($command)
    {
        $cmd = sprintf('%s %s', $this->binaryPath, $command);
        $p = new Process($cmd);
        $p->run();
        if ($p->isSuccessful()) {
            return $p->getOutput();
        } else {
            throw new \RuntimeException(sprintf('pygmentize failed with the error: %s', $p->getErrorOutput()));
        }
    }
public function executeCommand($command)
    {
        $cmd = sprintf('%s %s', $this->binaryPath, $command);
        $p = new Process($cmd);
        $p->run();
        if ($p->isSuccessful()) {
            return $p->getOutput();
        } else {
            throw new \RuntimeException(sprintf('pygmentize failed with the error: %s', $p->getErrorOutput()));
        }
    }
public function executeCommand ( $ command ) { $ cmd = sprintf ( '%s %s' , $ this -> binaryPath , $ command ) ; $ p = new Process ( $ cmd ) ; $ p -> run ( ) ; if ( $ p -> isSuccessful ( ) ) { return $ p -> getOutput ( ) ; } else { throw new \ RuntimeException ( sprintf ( 'pygmentize failed with the error: %s' , $ p -> getErrorOutput ( ) ) ) ; } }
executes a command

@param string $command command

@return string
@throws \RuntimeException
executes a command