Merge pull request #14127 from civicrm/5.13
[civicrm-core.git] / CRM / Utils / ICalendar.php
index b9a84c95e04b4b45f4ff2911d464e3a3924c5b92..8081b335ab4d58603538ae039c46f76211e449d9 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018                                |
+ | Copyright CiviCRM LLC (c) 2004-2019                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2018
+ * @copyright CiviCRM LLC (c) 2004-2019
  */
 
 /**
@@ -52,7 +52,7 @@ class CRM_Utils_ICalendar {
     $text = str_replace("\\", "\\\\", $text);
     $text = str_replace(',', '\,', $text);
     $text = str_replace(';', '\;', $text);
-    $text = str_replace(array("\r\n", "\n", "\r"), "\\n ", $text);
+    $text = str_replace(["\r\n", "\n", "\r"], "\\n ", $text);
     $text = implode("\n ", str_split($text, 50));
     return $text;
   }