Code Duplication    Length = 8-8 lines in 2 locations

app/Models/Task/Base/Task.php 1 location

@@ 287-294 (lines=8) @@
284
     * @param  boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE.
285
     * @return string  The exported data
286
     */
287
    public function exportTo($parser, $includeLazyLoadColumns = true)
288
    {
289
        if (!$parser instanceof AbstractParser) {
290
            $parser = AbstractParser::getParser($parser);
291
        }
292
293
        return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true));
294
    }
295
296
    /**
297
     * Clean up internal collections prior to serializing

app/Models/User/Base/User.php 1 location

@@ 311-318 (lines=8) @@
308
     * @param  boolean $includeLazyLoadColumns (optional) Whether to include lazy load(ed) columns. Defaults to TRUE.
309
     * @return string  The exported data
310
     */
311
    public function exportTo($parser, $includeLazyLoadColumns = true)
312
    {
313
        if (!$parser instanceof AbstractParser) {
314
            $parser = AbstractParser::getParser($parser);
315
        }
316
317
        return $parser->fromArray($this->toArray(TableMap::TYPE_PHPNAME, $includeLazyLoadColumns, array(), true));
318
    }
319
320
    /**
321
     * Clean up internal collections prior to serializing