Code Duplication    Length = 10-10 lines in 3 locations

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

class/category.php 1 location

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