original_string: public function main()
      {
          if ($this->isMaintenanceModeEnabled()) {
              $this->logger->info("Archiving won't run because maintenance mode is enabled");
              return;
          }
  
          $self = $this;
          Access::doAsSuperUser(function () use ($self) {
              $self->init();
              $self->run();
              $self->runScheduledTasks();
              $self->end();
          });
      }
code: public function main()
      {
          if ($this->isMaintenanceModeEnabled()) {
              $this->logger->info("Archiving won't run because maintenance mode is enabled");
              return;
          }
  
          $self = $this;
          Access::doAsSuperUser(function () use ($self) {
              $self->init();
              $self->run();
              $self->runScheduledTasks();
              $self->end();
          });
      }
code_tokens: public function main ( ) { if ( $ this -> isMaintenanceModeEnabled ( ) ) { $ this -> logger -> info ( "Archiving won't run because maintenance mode is enabled" ) ; return ; } $ self = $ this ; Access :: doAsSuperUser ( function ( ) use ( $ self ) { $ self -> init ( ) ; $ self -> run ( ) ; $ self -> runScheduledTasks ( ) ; $ self -> end ( ) ; } ) ; }
docstring: Initializes and runs the cron archiver.
docstring_tokens: Initializes and runs the cron archiver .