X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCase%2FForm%2FReport.php;h=27301ee1e61f74f28e143a62745752996d80d946;hb=671232003fc7b673140e5407287b6a06af97c15d;hp=384f98a4f64d377636e14d71c273c39c6d37b19e;hpb=39c3fbcda92848d435b973f403d041fff51e4d4e;p=civicrm-core.git diff --git a/CRM/Case/Form/Report.php b/CRM/Case/Form/Report.php index 384f98a4f6..27301ee1e6 100644 --- a/CRM/Case/Form/Report.php +++ b/CRM/Case/Form/Report.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2019 | + | Copyright CiviCRM LLC (c) 2004-2020 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2019 + * @copyright CiviCRM LLC (c) 2004-2020 */ /** @@ -38,16 +38,19 @@ class CRM_Case_Form_Report extends CRM_Core_Form { /** * Case Id + * @var int */ public $_caseID = NULL; /** * Client Id + * @var int */ public $_clientID = NULL; /** * Activity set name + * @var string */ public $_activitySetName = NULL; @@ -79,10 +82,10 @@ class CRM_Case_Form_Report extends CRM_Core_Form { return; } - $includeActivites = array( + $includeActivites = [ 1 => ts('All Activities'), 2 => ts('Exclude Completed Activities'), - ); + ]; $includeActivitesGroup = $this->addRadio('include_activities', NULL, $includeActivites, @@ -97,18 +100,17 @@ class CRM_Case_Form_Report extends CRM_Core_Form { ts('Redact (hide) Client and Service Provider Data') ); - $this->addButtons(array( - array( - 'type' => 'refresh', - 'name' => ts('Generate Report'), - 'isDefault' => TRUE, - ), - array( - 'type' => 'cancel', - 'name' => ts('Cancel'), - ), - ) - ); + $this->addButtons([ + [ + 'type' => 'refresh', + 'name' => ts('Generate Report'), + 'isDefault' => TRUE, + ], + [ + 'type' => 'cancel', + 'name' => ts('Cancel'), + ], + ]); // We want this form to redirect to a full page $this->preventAjaxSubmit(); }