diff options
author | MaurĂcio Meneghini Fauth <mauricio@fauth.dev> | 2019-05-05 01:00:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-05 01:00:16 +0300 |
commit | 3ec6d02578394d93806f009d46bae8f66719a7f1 (patch) | |
tree | e7bd05f475e9fd8cb890f6a399b3bbcbe0fb8222 /libraries/classes/Message.php | |
parent | 0ccae90725e531bf1d7c0294b2ca86fbc0d24b77 (diff) | |
parent | d8f9695830e109a6ddfd2f38e81d63e881577e92 (diff) |
Merge pull request #15244 from Tithugues/feature/minor-improvements-on-message-class
Minor improvements in Message class
Diffstat (limited to 'libraries/classes/Message.php')
-rw-r--r-- | libraries/classes/Message.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libraries/classes/Message.php b/libraries/classes/Message.php index a9824fcdf4..49cee3d2be 100644 --- a/libraries/classes/Message.php +++ b/libraries/classes/Message.php @@ -654,7 +654,7 @@ class Message $params = $params[1]; } - return call_user_func_array('sprintf', $params); + return sprintf(...$params); } /** @@ -760,7 +760,6 @@ class Message public function display(): void { echo $this->getDisplay(); - $this->isDisplayed(true); } /** @@ -800,9 +799,9 @@ class Message */ public function getMessageWithIcon(string $message): string { - if ('error' == $this->getLevel()) { + if ('error' === $this->getLevel()) { $image = 's_error'; - } elseif ('success' == $this->getLevel()) { + } elseif ('success' === $this->getLevel()) { $image = 's_success'; } else { $image = 's_notice'; |