original_string: public function executeCommand(array $arguments, $processBuilderCallback = null)
      {
          $processBuilder = clone $this->processBuilder;
          $processBuilder->setArguments($arguments);
  
          if (is_callable($processBuilderCallback)) {
              $processBuilderCallback($processBuilder);
          }
  
          $process = $processBuilder->getProcess();
          $process->run();
  
          if (!$process->isSuccessful()) {
              if (127 === $process->getExitCode()) {
                  throw new ExecutableNotFoundException($process);
              }
  
              throw new ProcessFailedException($process);
          }
  
          return $process;
      }
code: public function executeCommand(array $arguments, $processBuilderCallback = null)
      {
          $processBuilder = clone $this->processBuilder;
          $processBuilder->setArguments($arguments);
  
          if (is_callable($processBuilderCallback)) {
              $processBuilderCallback($processBuilder);
          }
  
          $process = $processBuilder->getProcess();
          $process->run();
  
          if (!$process->isSuccessful()) {
              if (127 === $process->getExitCode()) {
                  throw new ExecutableNotFoundException($process);
              }
  
              throw new ProcessFailedException($process);
          }
  
          return $process;
      }
code_tokens: public function executeCommand ( array $ arguments , $ processBuilderCallback = null ) { $ processBuilder = clone $ this -> processBuilder ; $ processBuilder -> setArguments ( $ arguments ) ; if ( is_callable ( $ processBuilderCallback ) ) { $ processBuilderCallback ( $ processBuilder ) ; } $ process = $ processBuilder -> getProcess ( ) ; $ process -> run ( ) ; if ( ! $ process -> isSuccessful ( ) ) { if ( 127 === $ process -> getExitCode ( ) ) { throw new ExecutableNotFoundException ( $ process ) ; } throw new ProcessFailedException ( $ process ) ; } return $ process ; }
docstring: Executes given command
  @param array $arguments
  @param null $processBuilderCallback
  @return \Symfony\Component\Process\Process
  @throws ExecutableNotFoundException
  @throws ProcessFailedException
docstring_tokens: Executes given command