Merge pull request #14127 from civicrm/5.13
[civicrm-core.git] / CRM / Utils / ICalendar.php
index 9774df8d5a937ba85f21c76d932c6e4d7a59a5a0..8081b335ab4d58603538ae039c46f76211e449d9 100644 (file)
@@ -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;
   }