1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-25 12:33:29 +01:00

[ticket/14345] Move new line to ternary comparison

PHPBB3-14345
This commit is contained in:
Marc Alexander 2015-12-07 16:59:04 +01:00
parent 1b9ae803c5
commit 41b4fee655

View File

@ -126,7 +126,7 @@ class cli_iohandler extends iohandler_base
$this->io->newLine();
$message = $this->translate_message($error_title, $error_description);
$message_string = $message['title'] . "\n" . (!empty($message['description']) ? $message['description'] : '');
$message_string = $message['title'] . (!empty($message['description']) ? "\n" . $message['description'] : '');
$this->io->error($message_string);
if ($this->progress_bar !== null)
@ -144,7 +144,7 @@ class cli_iohandler extends iohandler_base
$this->io->newLine();
$message = $this->translate_message($warning_title, $warning_description);
$message_string = $message['title'] . "\n" . (!empty($message['description']) ? $message['description'] : '');
$message_string = $message['title'] . (!empty($message['description']) ? "\n" . $message['description'] : '');
$this->io->warning($message_string);
if ($this->progress_bar !== null)
@ -174,7 +174,7 @@ class cli_iohandler extends iohandler_base
$this->io->newLine();
$message = $this->translate_message($error_title, $error_description);
$message_string = $message['title'] . "\n" . (!empty($message['description']) ? $message['description'] : '');
$message_string = $message['title'] . (!empty($message['description']) ? "\n" . $message['description'] : '');
$this->io->success($message_string);
if ($this->progress_bar !== null)