<commit_before><?php
function _civicrm_api3_case_getcaselist_spec(&$spec) {
  $result = civicrm_api3('Case', 'getfields', array('api_action' => 'get'));
  $spec = $result['values'];

  $spec['case_manager'] = array(
    'title' => 'Case Manager',
    'description' => 'Contact id of the case manager',
    'type' => CRM_Utils_Type::T_INT,
  );

  $spec['contact_is_deleted'] = array(
    'title' => 'Contact Is Deleted',
    'description' => 'Set FALSE to filter out cases for deleted contacts, TRUE to return only cases of deleted contacts',
    'type' => CRM_Utils_Type::T_BOOLEAN,
  );
}

function civicrm_api3_case_getcaselist($params) {
  return CRM_Civicase_Utils_Caselist::getCaseList($params);
}<commit_msg>CATL-939: Access Array Values Directly On Method Call<commit_after><?php
function _civicrm_api3_case_getcaselist_spec(&$spec) {
  $spec = civicrm_api3('Case', 'getfields', array('api_action' => 'get'))['values'];

  $spec['case_manager'] = array(
    'title' => 'Case Manager',
    'description' => 'Contact id of the case manager',
    'type' => CRM_Utils_Type::T_INT,
  );

  $spec['contact_is_deleted'] = array(
    'title' => 'Contact Is Deleted',
    'description' => 'Set FALSE to filter out cases for deleted contacts, TRUE to return only cases of deleted contacts',
    'type' => CRM_Utils_Type::T_BOOLEAN,
  );
}

function civicrm_api3_case_getcaselist($params) {
  return CRM_Civicase_Utils_Caselist::getCaseList($params);
}
{'fraction_non_alphanumeric': 0.15044858523119392, 'fraction_numerical': 0.006211180124223602, 'mean_word_length': 5.415929203539823, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1432999', 'n_tokens_mistral': 512, 'n_tokens_neox': 493, 'n_words': 113}