Code Duplication    Length = 7-8 lines in 4 locations

htdocs/class/module.textsanitizer.php 4 locations

@@ 898-904 (lines=7) @@
895
     * @param  mixed $smiley
896
     * @return mixed|string
897
     */
898
    public function makeTboxData4Show($text, $smiley = 0)
899
    {
900
        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
901
        $text = $this->htmlSpecialChars($text);
902
903
        return $text;
904
    }
905
906
    /**
907
     * MyTextSanitizer::makeTboxData4Edit()
@@ 926-933 (lines=8) @@
923
     * @param  mixed $smiley
924
     * @return mixed|string
925
     */
926
    public function makeTboxData4Preview($text, $smiley = 0)
927
    {
928
        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
929
        $text = $this->stripSlashesGPC($text);
930
        $text = $this->htmlSpecialChars($text);
931
932
        return $text;
933
    }
934
935
    /**
936
     * MyTextSanitizer::makeTboxData4PreviewInForm()
@@ 941-947 (lines=7) @@
938
     * @param  mixed $text
939
     * @return string
940
     */
941
    public function makeTboxData4PreviewInForm($text)
942
    {
943
        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
944
        $text = $this->stripSlashesGPC($text);
945
946
        return $this->htmlSpecialChars($text);
947
    }
948
949
    /**
950
     * MyTextSanitizer::makeTareaData4Save()
@@ 1015-1022 (lines=8) @@
1012
     * @param  mixed $text
1013
     * @return string
1014
     */
1015
    public function makeTareaData4PreviewInForm($text)
1016
    {
1017
        $GLOBALS['xoopsLogger']->addDeprecated(__CLASS__ . '::' . __FUNCTION__ . ' is deprecated');
1018
        // if magic_quotes_gpc is on, do stipslashes
1019
        $text = $this->stripSlashesGPC($text);
1020
1021
        return $this->htmlSpecialChars($text);
1022
    }
1023
1024
    /**
1025
     * MyTextSanitizer::makeTareaData4InsideQuotes()