From bd806432db7290ef5afad757f83aa6b456cae3d6 Mon Sep 17 00:00:00 2001 From: "Igor Barkov (iwork)" Date: Tue, 23 Jun 2020 16:48:07 +0300 Subject: [PATCH] EOL fix --- chat.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chat.php b/chat.php index 5a07afe..945fba2 100644 --- a/chat.php +++ b/chat.php @@ -35,9 +35,9 @@ function show_messages() $d = new DateTime($message['msgdate']); $m = htmlspecialchars($message['msg']); if ($message['type'] == 'sys') { /* Системка */ - echo sprintf("%s %s", $d->format('H:i'), $m) . PHP_EOL; + echo sprintf('%s %s', $d->format('H:i'), $m) . PHP_EOL; } elseif ($message['type'] == 'sms') { /* Телеграмма */ - echo sprintf("[Телеграмма]: %s %s", $d->format('H:i'), $m) . PHP_EOL; + echo sprintf('[Телеграмма]: %s %s', $d->format('H:i'), $m) . PHP_EOL; } else { echo sprintf('%s [%s]: %s', $d->format('H:i'), $message['from'], $m) . PHP_EOL; }