original_string: public static function get_token($strictness = IGNORE_MISSING) {
          if ($strictness == MUST_EXIST) {
              $registration = self::require_registration();
          } else if (!$registration = self::get_registration()) {
              return null;
          }
          return $registration->token;
      }
code: public static function get_token($strictness = IGNORE_MISSING) {
          if ($strictness == MUST_EXIST) {
              $registration = self::require_registration();
          } else if (!$registration = self::get_registration()) {
              return null;
          }
          return $registration->token;
      }
code_tokens: public static function get_token ( $ strictness = IGNORE_MISSING ) { if ( $ strictness == MUST_EXIST ) { $ registration = self :: require_registration ( ) ; } else if ( ! $ registration = self :: get_registration ( ) ) { return null ; } return $ registration -> token ; }
docstring: Returns registration token
  
  @param int $strictness if set to MUST_EXIST and site is not registered will throw an exception
  @return null
  @throws moodle_exception
docstring_tokens: Returns registration token