diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2020-04-21 18:57:18 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2020-04-21 18:57:18 +0200 |
commit | eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f (patch) | |
tree | 252d23b7713f364e7f7efafdd4f333188ceac5fa /app/class/Event.php | |
parent | 6984e737b706c73baaa5c3c921762706f958d4da (diff) | |
download | wcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.tar.gz wcms-eba4d7aa0ee5ea1bcb29e8254c28a272023ea54f.zip |
correct warning psr 12 : 120 characters lines
Diffstat (limited to 'app/class/Event.php')
-rw-r--r-- | app/class/Event.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/app/class/Event.php b/app/class/Event.php index c14b0e8..3317a1b 100644 --- a/app/class/Event.php +++ b/app/class/Event.php @@ -16,7 +16,15 @@ class Event extends Dbitem protected $message; protected $clap = 0; - public const EVENT_TYPES = ['message', 'page_add', 'page_edit', 'page_delete', 'media_add', 'media_delete', 'font_add']; + public const EVENT_TYPES = [ + 'message', + 'page_add', + 'page_edit', + 'page_delete', + 'media_add', + 'media_delete', + 'font_add' + ]; public const EVENT_BASE = ['message']; public const EVENT_ART = ['page_add', 'page_edit', 'page_delete']; public const EVENT_MEDIA = ['media_add', 'media_delete']; @@ -112,7 +120,11 @@ class Event extends Dbitem if ($date instanceof DateTimeImmutable) { $this->date = $date; } elseif (is_string($date)) { - $this->date = DateTimeImmutable::createFromFormat(DateTime::ISO8601, $date, new DateTimeZone('Europe/Paris')); + $this->date = DateTimeImmutable::createFromFormat( + DateTime::ISO8601, + $date, + new DateTimeZone('Europe/Paris') + ); } } |