original_string: protected static function is_developer() {
          global $CFG;
  
          // Note we can not rely on $CFG->debug here because DB is not initialised yet.
          if (isset($CFG->config_php_settings['debug'])) {
              $debug = (int)$CFG->config_php_settings['debug'];
          } else {
              return false;
          }
  
          if ($debug & E_ALL and $debug & E_STRICT) {
              return true;
          }
  
          return false;
      }
code: protected static function is_developer() {
          global $CFG;
  
          // Note we can not rely on $CFG->debug here because DB is not initialised yet.
          if (isset($CFG->config_php_settings['debug'])) {
              $debug = (int)$CFG->config_php_settings['debug'];
          } else {
              return false;
          }
  
          if ($debug & E_ALL and $debug & E_STRICT) {
              return true;
          }
  
          return false;
      }
code_tokens: protected static function is_developer ( ) { global $ CFG ; // Note we can not rely on $CFG->debug here because DB is not initialised yet. if ( isset ( $ CFG -> config_php_settings [ 'debug' ] ) ) { $ debug = ( int ) $ CFG -> config_php_settings [ 'debug' ] ; } else { return false ; } if ( $ debug & E_ALL and $ debug & E_STRICT ) { return true ; } return false ; }
docstring: Are we in developer debug mode?
  
  Note: You need to set "$CFG->debug = (E_ALL | E_STRICT);" in config.php,
  the reason is we need to use this before we setup DB connection or caches for CFG.
  
  @return bool
docstring_tokens: Are we in developer debug mode?