Code Duplication    Length = 9-9 lines in 2 locations

class/answer.php 1 location

@@ 290-298 (lines=9) @@
287
     * @param  string $format
288
     * @return string
289
     */
290
    public function datesub($dateFormat = 'none', $format = 'S')
291
    {
292
        if ($dateFormat === 'none') {
293
            $smartModuleConfig = sf_getModuleConfig();
294
            $dateFormat        = $smartModuleConfig['dateformat'];
295
        }
296
297
        return formatTimestamp($this->getVar('datesub', $format), $dateFormat);
298
    }
299
300
    /**
301
     * @return mixed

class/faq.php 1 location

@@ 258-266 (lines=9) @@
255
     * @param  string $format
256
     * @return string
257
     */
258
    public function datesub($dateFormat = 'none', $format = 'S')
259
    {
260
        if ($dateFormat === 'none') {
261
            $smartConfig = sf_getModuleConfig();
262
            $dateFormat  = $smartConfig['dateformat'];
263
        }
264
265
        return formatTimestamp($this->getVar('datesub', $format), $dateFormat);
266
    }
267
268
    /**
269
     * @return mixed