original_string: public function load_available_updates_for_plugin($component) {
          global $CFG;
  
          $provider = \core\update\checker::instance();
  
          if (!$provider->enabled() or during_initial_install()) {
              return null;
          }
  
          if (isset($CFG->updateminmaturity)) {
              $minmaturity = $CFG->updateminmaturity;
          } else {
              // This can happen during the very first upgrade to 2.3.
              $minmaturity = MATURITY_STABLE;
          }
  
          return $provider->get_update_info($component, array('minmaturity' => $minmaturity));
      }
code: public function load_available_updates_for_plugin($component) {
          global $CFG;
  
          $provider = \core\update\checker::instance();
  
          if (!$provider->enabled() or during_initial_install()) {
              return null;
          }
  
          if (isset($CFG->updateminmaturity)) {
              $minmaturity = $CFG->updateminmaturity;
          } else {
              // This can happen during the very first upgrade to 2.3.
              $minmaturity = MATURITY_STABLE;
          }
  
          return $provider->get_update_info($component, array('minmaturity' => $minmaturity));
      }
code_tokens: public function load_available_updates_for_plugin ( $ component ) { global $ CFG ; $ provider = \ core \ update \ checker :: instance ( ) ; if ( ! $ provider -> enabled ( ) or during_initial_install ( ) ) { return null ; } if ( isset ( $ CFG -> updateminmaturity ) ) { $ minmaturity = $ CFG -> updateminmaturity ; } else { // This can happen during the very first upgrade to 2.3. $ minmaturity = MATURITY_STABLE ; } return $ provider -> get_update_info ( $ component , array ( 'minmaturity' => $ minmaturity ) ) ; }
docstring: Returns list of available updates for the given component.
  
  This method should be considered as internal API and is supposed to be
  called by {@link \core\plugininfo\base::available_updates()} only
  to lazy load the data once they are first requested.
  
  @param string $component frankenstyle name of the plugin
  @return null|array array of \core\update\info objects or null
docstring_tokens: Returns list of available updates for the given component .