From fec9299557a439ba3e670cb28ffc96e7373794f4 Mon Sep 17 00:00:00 2001 From: Guillaume RODRIGUEZ <1820051+guillaume-ro-fr@users.noreply.github.com> Date: Thu, 14 Feb 2019 15:27:34 +0100 Subject: [PATCH] Fix namespace in composer --- composer.json | 2 +- html2text.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 8b86191..409bb9d 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ ], "autoload": { "psr-4": { - "Html2Text\\": "src" + "Soundasleep\\": "src" } }, "support": { diff --git a/html2text.php b/html2text.php index 149a1cc..ed52a3b 100644 --- a/html2text.php +++ b/html2text.php @@ -8,9 +8,9 @@ require_once(__DIR__ . "/src/Html2TextException.php"); function convert_html_to_text($html, $ignore_error = false) { - return Html2Text\Html2Text::convert($html, $ignore_error); + return Soundasleep\Html2Text::convert($html, $ignore_error); } function fix_newlines($text) { - return Html2Text\Html2Text::fixNewlines($text); + return Soundasleep\Html2Text::fixNewlines($text); }