original_string: public function enqueue()
      {
          $this->outputTitle('Queuing a job');
  
          $args = $this->input->getArguments();
  
          if (count($args) >= 2) {
              $queue = array_shift($args);
              $class = array_shift($args);
  
              $result = call_user_func_array(self::$Resque . '::enqueue', array($queue, $class, $args));
              $this->output->outputLine('The job was enqueued successfully', 'success');
              $this->output->outputLine('Job ID : #' . $result . "\n");
          } else {
              $this->output->outputLine('Enqueue takes at least 2 arguments', 'failure');
              $this->output->outputLine('Usage : enqueue <queue> <job> <args>');
              $this->output->outputLine('   queue <string>  Name of the queue');
              $this->output->outputLine('   job   <string>  Job class name');
              $this->output->outputLine('   args  <string>  Comma separated list of arguments');
              $this->output->outputLine();
          }
      }
code: public function enqueue()
      {
          $this->outputTitle('Queuing a job');
  
          $args = $this->input->getArguments();
  
          if (count($args) >= 2) {
              $queue = array_shift($args);
              $class = array_shift($args);
  
              $result = call_user_func_array(self::$Resque . '::enqueue', array($queue, $class, $args));
              $this->output->outputLine('The job was enqueued successfully', 'success');
              $this->output->outputLine('Job ID : #' . $result . "\n");
          } else {
              $this->output->outputLine('Enqueue takes at least 2 arguments', 'failure');
              $this->output->outputLine('Usage : enqueue <queue> <job> <args>');
              $this->output->outputLine('   queue <string>  Name of the queue');
              $this->output->outputLine('   job   <string>  Job class name');
              $this->output->outputLine('   args  <string>  Comma separated list of arguments');
              $this->output->outputLine();
          }
      }
code_tokens: public function enqueue ( ) { $ this -> outputTitle ( 'Queuing a job' ) ; $ args = $ this -> input -> getArguments ( ) ; if ( count ( $ args ) >= 2 ) { $ queue = array_shift ( $ args ) ; $ class = array_shift ( $ args ) ; $ result = call_user_func_array ( self :: $ Resque . '::enqueue' , array ( $ queue , $ class , $ args ) ) ; $ this -> output -> outputLine ( 'The job was enqueued successfully' , 'success' ) ; $ this -> output -> outputLine ( 'Job ID : #' . $ result . "\n" ) ; } else { $ this -> output -> outputLine ( 'Enqueue takes at least 2 arguments' , 'failure' ) ; $ this -> output -> outputLine ( 'Usage : enqueue <queue> <job> <args>' ) ; $ this -> output -> outputLine ( '   queue <string>  Name of the queue' ) ; $ this -> output -> outputLine ( '   job   <string>  Job class name' ) ; $ this -> output -> outputLine ( '   args  <string>  Comma separated list of arguments' ) ; $ this -> output -> outputLine ( ) ; } }
docstring: Add a job to a queue
  
  @return  void
docstring_tokens: Add a job to a queue