original_string: public static function get_dpo_role_names() : array {
          global $DB;
  
          $dporoleids = self::get_assigned_privacy_officer_roles();
          $dponames = array();
  
          if (!empty($dporoleids)) {
              list($insql, $inparams) = $DB->get_in_or_equal($dporoleids);
              $dponames = $DB->get_fieldset_select('role', 'shortname', "id {$insql}", $inparams);
          }
  
          return $dponames;
      }
code: public static function get_dpo_role_names() : array {
          global $DB;
  
          $dporoleids = self::get_assigned_privacy_officer_roles();
          $dponames = array();
  
          if (!empty($dporoleids)) {
              list($insql, $inparams) = $DB->get_in_or_equal($dporoleids);
              $dponames = $DB->get_fieldset_select('role', 'shortname', "id {$insql}", $inparams);
          }
  
          return $dponames;
      }
code_tokens: public static function get_dpo_role_names ( ) : array { global $ DB ; $ dporoleids = self :: get_assigned_privacy_officer_roles ( ) ; $ dponames = array ( ) ; if ( ! empty ( $ dporoleids ) ) { list ( $ insql , $ inparams ) = $ DB -> get_in_or_equal ( $ dporoleids ) ; $ dponames = $ DB -> get_fieldset_select ( 'role' , 'shortname' , "id {$insql}" , $ inparams ) ; } return $ dponames ; }
docstring: Fetches the role shortnames of Data Protection Officer roles.
  
  @return array An array of the DPO role shortnames
docstring_tokens: Fetches the role shortnames of Data Protection Officer roles .