original_string: protected static function is_minimum_version_met() {
          global $CFG;
  
          $currentversion = 0;
          $supportedversion = 0.7;
          $unoconvbin = \escapeshellarg($CFG->pathtounoconv);
          $command = "$unoconvbin --version";
          exec($command, $output);
  
          // If the command execution returned some output, then get the unoconv version.
          if ($output) {
              foreach ($output as $response) {
                  if (preg_match('/unoconv (\\d+\\.\\d+)/', $response, $matches)) {
                      $currentversion = (float) $matches[1];
                  }
              }
              if ($currentversion < $supportedversion) {
                  return false;
              } else {
                  return true;
              }
          }
  
          return false;
      }
code: protected static function is_minimum_version_met() {
          global $CFG;
  
          $currentversion = 0;
          $supportedversion = 0.7;
          $unoconvbin = \escapeshellarg($CFG->pathtounoconv);
          $command = "$unoconvbin --version";
          exec($command, $output);
  
          // If the command execution returned some output, then get the unoconv version.
          if ($output) {
              foreach ($output as $response) {
                  if (preg_match('/unoconv (\\d+\\.\\d+)/', $response, $matches)) {
                      $currentversion = (float) $matches[1];
                  }
              }
              if ($currentversion < $supportedversion) {
                  return false;
              } else {
                  return true;
              }
          }
  
          return false;
      }
code_tokens: protected static function is_minimum_version_met ( ) { global $ CFG ; $ currentversion = 0 ; $ supportedversion = 0.7 ; $ unoconvbin = \ escapeshellarg ( $ CFG -> pathtounoconv ) ; $ command = "$unoconvbin --version" ; exec ( $ command , $ output ) ; // If the command execution returned some output, then get the unoconv version. if ( $ output ) { foreach ( $ output as $ response ) { if ( preg_match ( '/unoconv (\\d+\\.\\d+)/' , $ response , $ matches ) ) { $ currentversion = ( float ) $ matches [ 1 ] ; } } if ( $ currentversion < $ supportedversion ) { return false ; } else { return true ; } } return false ; }
docstring: Whether the minimum version of unoconv has been met.
  
  @return  bool
docstring_tokens: Whether the minimum version of unoconv has been met .