Update copyright date for 2020
[civicrm-core.git] / CRM / Report / Page / Instance.php
index 89c0adb7850d119597b979351920aa6f713d134e..6dcd5a72142b445c803c2efaa3677785d6a2e055 100644 (file)
@@ -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.                                    |
  |                                                                    |
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC (c) 2004-2020
  */
 
 /**
  * Page for invoking report instances
  */
 class CRM_Report_Page_Instance extends CRM_Core_Page {
+
   /**
    * Run this page (figure out the action needed and perform it).
    */
@@ -73,8 +74,8 @@ class CRM_Report_Page_Instance extends CRM_Core_Page {
     }
 
     if (strstr($templateInfo['name'], '_Form') || !is_null($reportClass)) {
-      $instanceInfo = array();
-      CRM_Report_BAO_ReportInstance::retrieve(array('id' => $instanceId), $instanceInfo);
+      $instanceInfo = [];
+      CRM_Report_BAO_ReportInstance::retrieve(['id' => $instanceId], $instanceInfo);
 
       if (!empty($instanceInfo['title'])) {
         CRM_Utils_System::setTitle($instanceInfo['title']);