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