From 5a953816e1475f948c41728dc3dc99533b028486 Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 24 Jun 2024 05:14:33 +0300 Subject: [PATCH] enshort condition --- src/Entity/Code.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Entity/Code.php b/src/Entity/Code.php index e54871d..26e16a0 100644 --- a/src/Entity/Code.php +++ b/src/Entity/Code.php @@ -58,12 +58,6 @@ class Code public function toString(): string { - if ($this->_inline) - { - return $this->_alt ? self::TAG . $this->_alt . self::TAG - : self::TAG; - } - - return self::TAG . $this->_alt; + return self::TAG . $this->_alt . ($this->_inline ? self::TAG : null); } } \ No newline at end of file