original_string: public static function is_enabled() {
          global $CFG;
  
          // Check whether Inbound Message is enabled at all.
          if (!isset($CFG->messageinbound_enabled) || !$CFG->messageinbound_enabled) {
              return false;
          }
  
          // Check whether the outgoing mailbox and domain are configured properly.
          if (!isset($CFG->messageinbound_mailbox) || empty($CFG->messageinbound_mailbox)) {
              return false;
          }
  
          if (!isset($CFG->messageinbound_domain) || empty($CFG->messageinbound_domain)) {
              return false;
          }
  
          return true;
      }
code: public static function is_enabled() {
          global $CFG;
  
          // Check whether Inbound Message is enabled at all.
          if (!isset($CFG->messageinbound_enabled) || !$CFG->messageinbound_enabled) {
              return false;
          }
  
          // Check whether the outgoing mailbox and domain are configured properly.
          if (!isset($CFG->messageinbound_mailbox) || empty($CFG->messageinbound_mailbox)) {
              return false;
          }
  
          if (!isset($CFG->messageinbound_domain) || empty($CFG->messageinbound_domain)) {
              return false;
          }
  
          return true;
      }
code_tokens: public static function is_enabled ( ) { global $ CFG ; // Check whether Inbound Message is enabled at all. if ( ! isset ( $ CFG -> messageinbound_enabled ) || ! $ CFG -> messageinbound_enabled ) { return false ; } // Check whether the outgoing mailbox and domain are configured properly. if ( ! isset ( $ CFG -> messageinbound_mailbox ) || empty ( $ CFG -> messageinbound_mailbox ) ) { return false ; } if ( ! isset ( $ CFG -> messageinbound_domain ) || empty ( $ CFG -> messageinbound_domain ) ) { return false ; } return true ; }
docstring: Whether the Inbound Message interface is enabled.
  
  @return bool
docstring_tokens: Whether the Inbound Message interface is enabled .