original_string: protected function execute(array $arguments)
      {
          \array_unshift($arguments, $this->path);
          
          $builder = ProcessBuilder::create($arguments);
          $process = $builder->getProcess();
          $process->run();
          
          if (!$process->isSuccessful()) {
              throw CommandException::factory($process);
          }
          
          // E.g. tesseract --version returns output as error output
          return $process->getOutput() ? $process->getOutput() : $process->getErrorOutput();
      }
code: protected function execute(array $arguments)
      {
          \array_unshift($arguments, $this->path);
          
          $builder = ProcessBuilder::create($arguments);
          $process = $builder->getProcess();
          $process->run();
          
          if (!$process->isSuccessful()) {
              throw CommandException::factory($process);
          }
          
          // E.g. tesseract --version returns output as error output
          return $process->getOutput() ? $process->getOutput() : $process->getErrorOutput();
      }
code_tokens: protected function execute ( array $ arguments ) { \ array_unshift ( $ arguments , $ this -> path ) ; $ builder = ProcessBuilder :: create ( $ arguments ) ; $ process = $ builder -> getProcess ( ) ; $ process -> run ( ) ; if ( ! $ process -> isSuccessful ( ) ) { throw CommandException :: factory ( $ process ) ; } // E.g. tesseract --version returns output as error output return $ process -> getOutput ( ) ? $ process -> getOutput ( ) : $ process -> getErrorOutput ( ) ; }
docstring: Execute command and return output
  
  @param string $parameters
  @return array
  
  @throws \RuntimeException
docstring_tokens: Execute command and return output