original_string: public function activate(): void
      {
          if ($this->stopBuffering) {
              $this->buffering = false;
          }
          if (!$this->handler instanceof HandlerInterface) {
              $record = end($this->buffer) ?: null;
  
              $this->handler = call_user_func($this->handler, $record, $this);
              if (!$this->handler instanceof HandlerInterface) {
                  throw new \RuntimeException("The factory callable should return a HandlerInterface");
              }
          }
          $this->handler->handleBatch($this->buffer);
          $this->buffer = [];
      }
code: public function activate(): void
      {
          if ($this->stopBuffering) {
              $this->buffering = false;
          }
          if (!$this->handler instanceof HandlerInterface) {
              $record = end($this->buffer) ?: null;
  
              $this->handler = call_user_func($this->handler, $record, $this);
              if (!$this->handler instanceof HandlerInterface) {
                  throw new \RuntimeException("The factory callable should return a HandlerInterface");
              }
          }
          $this->handler->handleBatch($this->buffer);
          $this->buffer = [];
      }
code_tokens: public function activate ( ) : void { if ( $ this -> stopBuffering ) { $ this -> buffering = false ; } if ( ! $ this -> handler instanceof HandlerInterface ) { $ record = end ( $ this -> buffer ) ? : null ; $ this -> handler = call_user_func ( $ this -> handler , $ record , $ this ) ; if ( ! $ this -> handler instanceof HandlerInterface ) { throw new \ RuntimeException ( "The factory callable should return a HandlerInterface" ) ; } } $ this -> handler -> handleBatch ( $ this -> buffer ) ; $ this -> buffer = [ ] ; }
docstring: Manually activate this logger regardless of the activation strategy
docstring_tokens: Manually activate this logger regardless of the activation strategy