original_string: public static function get_new_registration_fields() {
          $fieldsneedconfirm = [];
          if (!self::is_registered()) {
              // Nothing to update if site is not registered.
              return $fieldsneedconfirm;
          }
  
          $cleanhuburl = clean_param(HUB_MOODLEORGHUBURL, PARAM_ALPHANUMEXT);
          $lastupdated = (int)get_config('hub', 'site_regupdateversion_' . $cleanhuburl);
          foreach (self::CONFIRM_NEW_FIELDS as $version => $fields) {
              if ($version > $lastupdated) {
                  $fieldsneedconfirm = array_merge($fieldsneedconfirm, $fields);
              }
          }
          return $fieldsneedconfirm;
      }
code: public static function get_new_registration_fields() {
          $fieldsneedconfirm = [];
          if (!self::is_registered()) {
              // Nothing to update if site is not registered.
              return $fieldsneedconfirm;
          }
  
          $cleanhuburl = clean_param(HUB_MOODLEORGHUBURL, PARAM_ALPHANUMEXT);
          $lastupdated = (int)get_config('hub', 'site_regupdateversion_' . $cleanhuburl);
          foreach (self::CONFIRM_NEW_FIELDS as $version => $fields) {
              if ($version > $lastupdated) {
                  $fieldsneedconfirm = array_merge($fieldsneedconfirm, $fields);
              }
          }
          return $fieldsneedconfirm;
      }
code_tokens: public static function get_new_registration_fields ( ) { $ fieldsneedconfirm = [ ] ; if ( ! self :: is_registered ( ) ) { // Nothing to update if site is not registered. return $ fieldsneedconfirm ; } $ cleanhuburl = clean_param ( HUB_MOODLEORGHUBURL , PARAM_ALPHANUMEXT ) ; $ lastupdated = ( int ) get_config ( 'hub' , 'site_regupdateversion_' . $ cleanhuburl ) ; foreach ( self :: CONFIRM_NEW_FIELDS as $ version => $ fields ) { if ( $ version > $ lastupdated ) { $ fieldsneedconfirm = array_merge ( $ fieldsneedconfirm , $ fields ) ; } } return $ fieldsneedconfirm ; }
docstring: Returns the list of the fields in the registration form that were added since registration or last manual update
  
  If this list is not empty the scheduled task will be paused and admin will be reminded to update registration manually.
  
  @return array
docstring_tokens: Returns the list of the fields in the registration form that were added since registration or last manual update