original_string: public function getGuards(): array
      {
          if ($this->guards) {
              return $this->guards;
          }
  
          if (empty($this->guardsConfig)) {
              return [];
          }
  
          $this->guards = [];
          foreach ($this->guardsConfig as $guardConfig) {
              $this->guards[] = $this->getGuardFactory()->create($guardConfig);
          }
  
          $this->sortGuardsByPriority();
          return $this->guards;
      }
code: public function getGuards(): array
      {
          if ($this->guards) {
              return $this->guards;
          }
  
          if (empty($this->guardsConfig)) {
              return [];
          }
  
          $this->guards = [];
          foreach ($this->guardsConfig as $guardConfig) {
              $this->guards[] = $this->getGuardFactory()->create($guardConfig);
          }
  
          $this->sortGuardsByPriority();
          return $this->guards;
      }
code_tokens: public function getGuards ( ) : array { if ( $ this -> guards ) { return $ this -> guards ; } if ( empty ( $ this -> guardsConfig ) ) { return [ ] ; } $ this -> guards = [ ] ; foreach ( $ this -> guardsConfig as $ guardConfig ) { $ this -> guards [ ] = $ this -> getGuardFactory ( ) -> create ( $ guardConfig ) ; } $ this -> sortGuardsByPriority ( ) ; return $ this -> guards ; }
docstring: Gets the  cached guard list or creates it from the config
  @return GuardInterface[]
docstring_tokens: Gets the cached guard list or creates it from the config