diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2023-05-08 17:08:52 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2023-05-08 17:08:52 +0200 |
| commit | a1fda2758e9c241ac3eb980ac8716dfedbe9dd3c (patch) | |
| tree | 2190f0478fb153efdb8ba48ebb574c7691f4f351 /lib/models/CourseExDate.class.php | |
| parent | 244d00ed91ad2b4b83e902a45cd6def3d7bc7e86 (diff) | |
let phpcsfixer fix errors according to @PSR12 rules on lib/modelsphpcsfixer
Diffstat (limited to 'lib/models/CourseExDate.class.php')
| -rw-r--r-- | lib/models/CourseExDate.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/models/CourseExDate.class.php b/lib/models/CourseExDate.class.php index f2c75b5..e5b09c2 100644 --- a/lib/models/CourseExDate.class.php +++ b/lib/models/CourseExDate.class.php @@ -66,8 +66,8 @@ class CourseExDate extends SimpleORMap implements PrivacyObject parent::configure($config); } - const FORMAT_DEFAULT = 'default'; - const FORMAT_VERBOSE = 'verbose'; + public const FORMAT_DEFAULT = 'default'; + public const FORMAT_VERBOSE = 'verbose'; /** * Returns course dates by course id @@ -139,7 +139,7 @@ class CourseExDate extends SimpleORMap implements PrivacyObject : '%R'; if (($this->end_time - $this->date) / 60 / 60 > 23) { - return strftime('%a., %x' . ' (' . _('ganztägig') . ')' , $this->date) . " (" . _("fällt aus") . ")"; + return strftime('%a., %x' . ' (' . _('ganztägig') . ')', $this->date) . " (" . _("fällt aus") . ")"; } return strftime('%a., %x, %R', $this->date) . ' - ' @@ -236,7 +236,7 @@ class CourseExDate extends SimpleORMap implements PrivacyObject /** * @return string A string representation of the course date. */ - public function __toString() : string + public function __toString(): string { return sprintf( _('Ausgefallener Termin am %1$s, %2$s von %3$s bis %4$s Uhr'), |
