original_string: public static function is_minor($age, $country) {
          global $CFG;
  
          $ageconsentmap = $CFG->agedigitalconsentmap;
          $agedigitalconsentmap = self::parse_age_digital_consent_map($ageconsentmap);
  
          return array_key_exists($country, $agedigitalconsentmap) ?
              $age < $agedigitalconsentmap[$country] : $age < $agedigitalconsentmap['*'];
      }
code: public static function is_minor($age, $country) {
          global $CFG;
  
          $ageconsentmap = $CFG->agedigitalconsentmap;
          $agedigitalconsentmap = self::parse_age_digital_consent_map($ageconsentmap);
  
          return array_key_exists($country, $agedigitalconsentmap) ?
              $age < $agedigitalconsentmap[$country] : $age < $agedigitalconsentmap['*'];
      }
code_tokens: public static function is_minor ( $ age , $ country ) { global $ CFG ; $ ageconsentmap = $ CFG -> agedigitalconsentmap ; $ agedigitalconsentmap = self :: parse_age_digital_consent_map ( $ ageconsentmap ) ; return array_key_exists ( $ country , $ agedigitalconsentmap ) ? $ age < $ agedigitalconsentmap [ $ country ] : $ age < $ agedigitalconsentmap [ '*' ] ; }
docstring: Checks if a user is a digital minor.
  
  @param int $age
  @param string $country The country code (ISO 3166-2)
  @return bool
docstring_tokens: Checks if a user is a digital minor .