Code Duplication    Length = 10-10 lines in 3 locations

class/Category.php 1 location

@@ 129-138 (lines=10) @@
126
     * @param  string $format
127
     * @return mixed
128
     */
129
    public function name($format = 'S')
130
    {
131
        $ret = $this->getVar('name', $format);
132
        if (('s' === $format) || ('S' === $format) || ('show' === $format)) {
133
            $myts = \MyTextSanitizer::getInstance();
134
            $ret  = $myts->displayTarea($ret);
135
        }
136
137
        return $ret;
138
    }
139
140
    /**
141
     * @param  string $format

class/Faq.php 2 locations

@@ 202-211 (lines=10) @@
199
     * @param  string $format
200
     * @return mixed
201
     */
202
    public function howdoi($format = 'S')
203
    {
204
        $ret = $this->getVar('howdoi', $format);
205
        if (('s' === $format) || ('S' === $format) || ('show' === $format)) {
206
            $myts = \MyTextSanitizer::getInstance();
207
            $ret  = $myts->displayTarea($ret);
208
        }
209
210
        return $ret;
211
    }
212
213
    /**
214
     * @param  string $format
@@ 217-226 (lines=10) @@
214
     * @param  string $format
215
     * @return mixed
216
     */
217
    public function diduno($format = 'S')
218
    {
219
        $ret = $this->getVar('diduno', $format);
220
        if (('s' === $format) || ('S' === $format) || ('show' === $format)) {
221
            $myts = \MyTextSanitizer::getInstance();
222
            $ret  = $myts->displayTarea($ret);
223
        }
224
225
        return $ret;
226
    }
227
228
    /**
229
     * @return mixed