original_string: public static function is_blocked(int $userid, int $blockeduserid) : bool {
          global $DB;
  
          return $DB->record_exists('message_users_blocked', ['userid' => $userid, 'blockeduserid' => $blockeduserid]);
      }
code: public static function is_blocked(int $userid, int $blockeduserid) : bool {
          global $DB;
  
          return $DB->record_exists('message_users_blocked', ['userid' => $userid, 'blockeduserid' => $blockeduserid]);
      }
code_tokens: public static function is_blocked ( int $ userid , int $ blockeduserid ) : bool { global $ DB ; return $ DB -> record_exists ( 'message_users_blocked' , [ 'userid' => $ userid , 'blockeduserid' => $ blockeduserid ] ) ; }
docstring: Checks if a user is already blocked.
  
  @param int $userid
  @param int $blockeduserid
  @return bool Returns true if they are a blocked, false otherwise
docstring_tokens: Checks if a user is already blocked .