original_string: public static function is_conversation_area_enabled(string $component, string $itemtype, int $itemid, int $contextid) : bool {
          global $DB;
  
          return $DB->record_exists('message_conversations',
              [
                  'itemid' => $itemid,
                  'contextid' => $contextid,
                  'component' => $component,
                  'itemtype' => $itemtype,
                  'enabled' => self::MESSAGE_CONVERSATION_ENABLED
              ]
          );
      }
code: public static function is_conversation_area_enabled(string $component, string $itemtype, int $itemid, int $contextid) : bool {
          global $DB;
  
          return $DB->record_exists('message_conversations',
              [
                  'itemid' => $itemid,
                  'contextid' => $contextid,
                  'component' => $component,
                  'itemtype' => $itemtype,
                  'enabled' => self::MESSAGE_CONVERSATION_ENABLED
              ]
          );
      }
code_tokens: public static function is_conversation_area_enabled ( string $ component , string $ itemtype , int $ itemid , int $ contextid ) : bool { global $ DB ; return $ DB -> record_exists ( 'message_conversations' , [ 'itemid' => $ itemid , 'contextid' => $ contextid , 'component' => $ component , 'itemtype' => $ itemtype , 'enabled' => self :: MESSAGE_CONVERSATION_ENABLED ] ) ; }
docstring: Checks whether or not a conversation area is enabled.
  
  @param string $component Defines the Moodle component which the area was added to.
  @param string $itemtype Defines the type of the component.
  @param int $itemid The id of the component.
  @param int $contextid The id of the context.
  @return bool Returns if a conversation area exists and is enabled, false otherwise
docstring_tokens: Checks whether or not a conversation area is enabled .