original_string: public function onCommand(ConsoleCommandEvent $event)
      {
          $output = $event->getOutput();
          if ($output instanceof ConsoleOutputInterface) {
              $output = $output->getErrorOutput();
          }
  
          $this->setOutput($output);
      }
code: public function onCommand(ConsoleCommandEvent $event)
      {
          $output = $event->getOutput();
          if ($output instanceof ConsoleOutputInterface) {
              $output = $output->getErrorOutput();
          }
  
          $this->setOutput($output);
      }
code_tokens: public function onCommand ( ConsoleCommandEvent $ event ) { $ output = $ event -> getOutput ( ) ; if ( $ output instanceof ConsoleOutputInterface ) { $ output = $ output -> getErrorOutput ( ) ; } $ this -> setOutput ( $ output ) ; }
docstring: Before a command is executed, the handler gets activated and the console output
  is set in order to know where to write the logs.
docstring_tokens: Before a command is executed the handler gets activated and the console output is set in order to know where to write the logs .