Merge pull request #14249 from yashodha/959_dev
[civicrm-core.git] / CRM / Case / Form / Task / Restore.php
index 5bfdde5111d88a181f78a8d0225e70f10c81211f..8257943097c9bc838e05767fdc9e679ba7fa829a 100644 (file)
@@ -40,7 +40,7 @@ class CRM_Case_Form_Task_Restore extends CRM_Case_Form_Task {
    * Are we operating in "single mode", i.e. deleting one
    * specific case?
    *
-   * @var boolean
+   * @var bool
    */
   protected $_single = FALSE;
 
@@ -73,15 +73,15 @@ class CRM_Case_Form_Task_Restore extends CRM_Case_Form_Task {
     }
 
     if ($restoredCases) {
-      $msg = ts('%count case restored from trash.', array(
+      $msg = ts('%count case restored from trash.', [
         'plural' => '%count cases restored from trash.',
         'count' => $restoredCases,
-      ));
+      ]);
       CRM_Core_Session::setStatus($msg, ts('Restored'), 'success');
     }
 
     if ($failed) {
-      CRM_Core_Session::setStatus(ts('1 could not be restored.', array('plural' => '%count could not be restored.', 'count' => $failed)), ts('Error'), 'error');
+      CRM_Core_Session::setStatus(ts('1 could not be restored.', ['plural' => '%count could not be restored.', 'count' => $failed]), ts('Error'), 'error');
     }
   }