<?php

namespace App\Support;

use Illuminate\Support\HtmlString;

if (!function_exists('content')) {
    /**
     * Format user content.
     *
     * @param string $text
     *
     * @return HtmlString
     */
    function format_content(string $text): HtmlString
    {
        return new HtmlString(nl2br(e($text)));
    }
}

<?php

namespace App\Support;

use Illuminate\Support\HtmlString;

if (!function_exists('format_content')) {
    /**
     * Format user content.
     *
     * @param string $text
     *
     * @return HtmlString
     */
    function format_content(string $text): HtmlString
    {
        return new HtmlString(nl2br(e($text)));
    }
}

Fix if statement for format_content declaration
Fix if statement for format_content declaration
