original_string: protected function controlMaintenanceMode()
      {
          $allowed_path = $this->is_install
              || $this->is_backend
              || in_array($this->path, array('login', 'logout', 'forgot'));
  
          if ($this->is_maintenance && !$allowed_path) {
  
              if (!$this->isFront()) {
                  $this->redirect('/');
              }
  
              $this->outputMaintenance();
          }
      }
code: protected function controlMaintenanceMode()
      {
          $allowed_path = $this->is_install
              || $this->is_backend
              || in_array($this->path, array('login', 'logout', 'forgot'));
  
          if ($this->is_maintenance && !$allowed_path) {
  
              if (!$this->isFront()) {
                  $this->redirect('/');
              }
  
              $this->outputMaintenance();
          }
      }
code_tokens: protected function controlMaintenanceMode ( ) { $ allowed_path = $ this -> is_install || $ this -> is_backend || in_array ( $ this -> path , array ( 'login' , 'logout' , 'forgot' ) ) ; if ( $ this -> is_maintenance && ! $ allowed_path ) { if ( ! $ this -> isFront ( ) ) { $ this -> redirect ( '/' ) ; } $ this -> outputMaintenance ( ) ; } }
docstring: Switches the site to maintenance mode
docstring_tokens: Switches the site to maintenance mode