original_string: protected function generateKey($processArgs)
      {
          $process = new Process(sprintf('openssl %s', $processArgs));
          $process->setTimeout(3600);
  
          $process->run(function ($type, $buffer) {
              $this->io->write($buffer);
          });
  
          if (!$process->isSuccessful()) {
              throw new ProcessFailedException($process);
          }
  
          $process->getExitCode();
      }
code: protected function generateKey($processArgs)
      {
          $process = new Process(sprintf('openssl %s', $processArgs));
          $process->setTimeout(3600);
  
          $process->run(function ($type, $buffer) {
              $this->io->write($buffer);
          });
  
          if (!$process->isSuccessful()) {
              throw new ProcessFailedException($process);
          }
  
          $process->getExitCode();
      }
code_tokens: protected function generateKey ( $ processArgs ) { $ process = new Process ( sprintf ( 'openssl %s' , $ processArgs ) ) ; $ process -> setTimeout ( 3600 ) ; $ process -> run ( function ( $ type , $ buffer ) { $ this -> io -> write ( $ buffer ) ; } ) ; if ( ! $ process -> isSuccessful ( ) ) { throw new ProcessFailedException ( $ process ) ; } $ process -> getExitCode ( ) ; }
docstring: Generate a RSA key.
  
  @param string          $processArgs
  @param Outputinterface $output
  
  @throws ProcessFailedException
docstring_tokens: Generate a RSA key .