Code Duplication    Length = 10-10 lines in 3 locations

class/category.php 1 location

@@ 120-129 (lines=10) @@
117
     * @param  string $format
118
     * @return mixed
119
     */
120
    public function name($format = 'S')
121
    {
122
        $ret = $this->getVar('name', $format);
123
        if (($format === 's') || ($format === 'S') || ($format === 'show')) {
124
            $myts = MyTextSanitizer::getInstance();
125
            $ret  = $myts->displayTarea($ret);
126
        }
127
128
        return $ret;
129
    }
130
131
    /**
132
     * @param  string $format

class/faq.php 2 locations

@@ 219-228 (lines=10) @@
216
     * @param  string $format
217
     * @return mixed
218
     */
219
    public function howdoi($format = 'S')
220
    {
221
        $ret = $this->getVar('howdoi', $format);
222
        if (($format === 's') || ($format === 'S') || ($format === 'show')) {
223
            $myts = MyTextSanitizer:: getInstance();
224
            $ret  = $myts->displayTarea($ret);
225
        }
226
227
        return $ret;
228
    }
229
230
    /**
231
     * @param  string $format
@@ 234-243 (lines=10) @@
231
     * @param  string $format
232
     * @return mixed
233
     */
234
    public function diduno($format = 'S')
235
    {
236
        $ret = $this->getVar('diduno', $format);
237
        if (($format === 's') || ($format === 'S') || ($format === 'show')) {
238
            $myts = MyTextSanitizer:: getInstance();
239
            $ret  = $myts->displayTarea($ret);
240
        }
241
242
        return $ret;
243
    }
244
245
    /**
246
     * @return mixed