From 20a1646fc6336635cee89426e3a60bb22cb138de Mon Sep 17 00:00:00 2001 From: JoshyPHP Date: Fri, 6 Mar 2015 10:50:05 +0100 Subject: [PATCH] [ticket/11768] Renamed utils PHPBB3-11768 --- phpBB/phpbb/textformatter/s9e/utils.php | 2 +- .../textformatter/{utils.php => utils_interface.php} | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) rename phpBB/phpbb/textformatter/{utils.php => utils_interface.php} (80%) diff --git a/phpBB/phpbb/textformatter/s9e/utils.php b/phpBB/phpbb/textformatter/s9e/utils.php index 57e836d2d4..df4ae4b9ec 100644 --- a/phpBB/phpbb/textformatter/s9e/utils.php +++ b/phpBB/phpbb/textformatter/s9e/utils.php @@ -16,7 +16,7 @@ namespace phpbb\textformatter\s9e; /** * Text manipulation utilities */ -class utils extends \phpbb\textformatter\utils +class utils implements \phpbb\textformatter\utils_interface { /** * {@inheritdoc} diff --git a/phpBB/phpbb/textformatter/utils.php b/phpBB/phpbb/textformatter/utils_interface.php similarity index 80% rename from phpBB/phpbb/textformatter/utils.php rename to phpBB/phpbb/textformatter/utils_interface.php index 13942b9248..45610f7ecb 100644 --- a/phpBB/phpbb/textformatter/utils.php +++ b/phpBB/phpbb/textformatter/utils_interface.php @@ -16,7 +16,7 @@ namespace phpbb\textformatter; /** * Used to manipulate a parsed text */ -abstract class utils +interface utils_interface { /** * Replace BBCodes and other formatting elements with whitespace @@ -26,7 +26,7 @@ abstract class utils * @param string $text * @return string */ - abstract public function clean_formatting($text); + public function clean_formatting($text); /** * Remove given BBCode at given nesting depth @@ -36,7 +36,7 @@ abstract class utils * @param integer $depth Minimum nesting depth (number of parents of the same name) * @return string */ - abstract public function remove_bbcode($text, $bbcode_name, $depth = 0); + public function remove_bbcode($text, $bbcode_name, $depth = 0); /** * Remove BBCodes and other formatting from a parsed text @@ -46,7 +46,7 @@ abstract class utils * @param string $text * @return string */ - abstract public function remove_formatting($text); + public function remove_formatting($text); /** * Return a parsed text to its original form @@ -54,5 +54,5 @@ abstract class utils * @param string $text * @return string */ - abstract public function unparse($text); + public function unparse($text); }