]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Widget/CalendarExport.php
spelling: count
[friendica.git] / src / Content / Widget / CalendarExport.php
index 3d028ef478ca8f52272586440a44f48fe2940380..520c32063e4c5a20261c34d865ebbcb857e78ff8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -34,12 +34,14 @@ class CalendarExport
 {
        /**
         * Get the events widget.
+        *
         * @param int $uid
         *
         * @return string Formated HTML of the calendar widget.
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function getHTML(int $uid = 0) {
+       public static function getHTML(int $uid = 0): string
+       {
                if (empty($uid)) {
                        return '';
                }
@@ -49,11 +51,11 @@ class CalendarExport
                        return '';
                }
 
-               $tpl = Renderer::getMarkupTemplate("widget/events.tpl");
+               $tpl = Renderer::getMarkupTemplate('widget/events.tpl');
                $return = Renderer::replaceMacros($tpl, [
-                       '$etitle'      => DI::l10n()->t("Export"),
-                       '$export_ical' => DI::l10n()->t("Export calendar as ical"),
-                       '$export_csv'  => DI::l10n()->t("Export calendar as csv"),
+                       '$etitle'      => DI::l10n()->t('Export'),
+                       '$export_ical' => DI::l10n()->t('Export calendar as ical'),
+                       '$export_csv'  => DI::l10n()->t('Export calendar as csv'),
                        '$user'        => $user['nickname']
                ]);