if (empty($item['access_callback']) ||
is_numeric($item['access_callback'])
) {
- return (boolean ) $item['access_callback'];
+ return (bool) $item['access_callback'];
}
// check whether the following Ajax requests submitted the right key
$this->assign('events', $info);
// check if we're in shopping cart mode for events
- $enable_cart = (boolean) Civi::settings()->get('enable_cart');
+ $enable_cart = (bool) Civi::settings()->get('enable_cart');
$this->assign('eventCartEnabled', $enable_cart);
if ($enable_cart) {
"({$values['percentage']}%)";
}
$totalAmt = implode(', ', $totalAmount);
- $count = (boolean) CRM_Utils_Array::value('count', $values, 0) ? $values['count'] . " ({$values['percentage']}%)" : '';
+ $count = empty($values['count']) ? '' : "{$values['count']} ({$values['percentage']}%)";
$row[] = [
'civicrm_grant_total_grants' => $field,
'civicrm_grant_count' => $count,