original_string: public static function scan_data($data) {
          $antiviruses = self::get_enabled();
          foreach ($antiviruses as $antivirus) {
              $result = $antivirus->scan_data($data);
              if ($result === $antivirus::SCAN_RESULT_FOUND) {
                  throw new \core\antivirus\scanner_exception('virusfound', '', array('item' => get_string('datastream', 'antivirus')));
              }
          }
      }
code: public static function scan_data($data) {
          $antiviruses = self::get_enabled();
          foreach ($antiviruses as $antivirus) {
              $result = $antivirus->scan_data($data);
              if ($result === $antivirus::SCAN_RESULT_FOUND) {
                  throw new \core\antivirus\scanner_exception('virusfound', '', array('item' => get_string('datastream', 'antivirus')));
              }
          }
      }
code_tokens: public static function scan_data ( $ data ) { $ antiviruses = self :: get_enabled ( ) ; foreach ( $ antiviruses as $ antivirus ) { $ result = $ antivirus -> scan_data ( $ data ) ; if ( $ result === $ antivirus :: SCAN_RESULT_FOUND ) { throw new \ core \ antivirus \ scanner_exception ( 'virusfound' , '' , array ( 'item' => get_string ( 'datastream' , 'antivirus' ) ) ) ; } } }
docstring: Scan data steam using all enabled antiviruses, throws exception in case of infected data.
  
  @param string $data The varaible containing the data to scan.
  @throws \core\antivirus\scanner_exception If data is infected.
  @return void
docstring_tokens: Scan data steam using all enabled antiviruses throws exception in case of infected data .