original_string: public static function update_issuer($data) {
          require_capability('moodle/site:config', context_system::instance());
          $issuer = new issuer(0, $data);
  
          // Will throw exceptions on validation failures.
          $issuer->update();
  
          // Perform service discovery.
          self::discover_endpoints($issuer);
          self::guess_image($issuer);
          return $issuer;
      }
code: public static function update_issuer($data) {
          require_capability('moodle/site:config', context_system::instance());
          $issuer = new issuer(0, $data);
  
          // Will throw exceptions on validation failures.
          $issuer->update();
  
          // Perform service discovery.
          self::discover_endpoints($issuer);
          self::guess_image($issuer);
          return $issuer;
      }
code_tokens: public static function update_issuer ( $ data ) { require_capability ( 'moodle/site:config' , context_system :: instance ( ) ) ; $ issuer = new issuer ( 0 , $ data ) ; // Will throw exceptions on validation failures. $ issuer -> update ( ) ; // Perform service discovery. self :: discover_endpoints ( $ issuer ) ; self :: guess_image ( $ issuer ) ; return $ issuer ; }
docstring: Take the data from the mform and update the issuer.
  
  @param stdClass $data
  @return \core\oauth2\issuer
docstring_tokens: Take the data from the mform and update the issuer .