Merge pull request #15214 from civicrm/5.17
[civicrm-core.git] / CRM / Activity / Form / Task / Print.php
index 90893d6cb562f39e56a78d7717feeba77882cb06..69f822bd74b76cc46ac3f45a2fbd572982acab97 100644 (file)
@@ -71,18 +71,18 @@ class CRM_Activity_Form_Task_Print extends CRM_Activity_Form_Task {
   public function buildQuickForm() {
 
     // just need to add a javacript to popup the window for printing
-    $this->addButtons(array(
-      array(
+    $this->addButtons([
+      [
         'type' => 'next',
         'name' => ts('Print Activities'),
-        'js' => array('onclick' => 'window.print()'),
+        'js' => ['onclick' => 'window.print()'],
         'isDefault' => TRUE,
-      ),
-      array(
+      ],
+      [
         'type' => 'back',
         'name' => ts('Done'),
-      ),
-    ));
+      ],
+    ]);
   }
 
 }