original_string: private static function get_enabled() {
          global $CFG;
  
          $active = array();
          if (empty($CFG->antiviruses)) {
              return $active;
          }
  
          foreach (explode(',', $CFG->antiviruses) as $e) {
              if ($antivirus = self::get_antivirus($e)) {
                  if ($antivirus->is_configured()) {
                      $active[$e] = $antivirus;
                  }
              }
          }
          return $active;
      }
code: private static function get_enabled() {
          global $CFG;
  
          $active = array();
          if (empty($CFG->antiviruses)) {
              return $active;
          }
  
          foreach (explode(',', $CFG->antiviruses) as $e) {
              if ($antivirus = self::get_antivirus($e)) {
                  if ($antivirus->is_configured()) {
                      $active[$e] = $antivirus;
                  }
              }
          }
          return $active;
      }
code_tokens: private static function get_enabled ( ) { global $ CFG ; $ active = array ( ) ; if ( empty ( $ CFG -> antiviruses ) ) { return $ active ; } foreach ( explode ( ',' , $ CFG -> antiviruses ) as $ e ) { if ( $ antivirus = self :: get_antivirus ( $ e ) ) { if ( $ antivirus -> is_configured ( ) ) { $ active [ $ e ] = $ antivirus ; } } } return $ active ; }
docstring: Returns list of enabled antiviruses.
  
  @return array Array ('antivirusname'=>stdClass antivirus object).
docstring_tokens: Returns list of enabled antiviruses .