From 26e4ac381acad1e83cf8cca74f059847eb79f032 Mon Sep 17 00:00:00 2001 From: eileen Date: Fri, 1 Nov 2019 11:13:20 +1300 Subject: [PATCH] [NFC] define variable type --- api/v3/ReportTemplate.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/v3/ReportTemplate.php b/api/v3/ReportTemplate.php index 5fd7474318..7e0e1f3b0f 100644 --- a/api/v3/ReportTemplate.php +++ b/api/v3/ReportTemplate.php @@ -56,6 +56,8 @@ function civicrm_api3_report_template_get($params) { * * @return array * API result array + * + * @throws \API_Exception */ function civicrm_api3_report_template_create($params) { require_once 'api/v3/OptionValue.php'; @@ -95,6 +97,8 @@ function _civicrm_api3_report_template_create_spec(&$params) { * * @return array * API result array + * + * @throws \API_Exception */ function civicrm_api3_report_template_delete($params) { require_once 'api/v3/OptionValue.php'; @@ -138,6 +142,7 @@ function _civicrm_api3_report_template_getrows($params) { ] ); + /* @var \CRM_Report_Form $reportInstance */ $reportInstance = new $class(); if (!empty($params['instance_id'])) { $reportInstance->setID($params['instance_id']); @@ -184,6 +189,9 @@ function _civicrm_api3_report_template_getrows($params) { * * @return array * API result array + * + * @throws \API_Exception + * @throws \CiviCRM_API3_Exception */ function civicrm_api3_report_template_getstatistics($params) { list($rows, $reportInstance, $metadata) = _civicrm_api3_report_template_getrows($params); -- 2.25.1