Code Duplication    Length = 8-8 lines in 2 locations

packages/core/src/Models/Task/Base/Task.php 1 location

@@ 328-335 (lines=8) @@
325
     *
326
     * @throws PropelException - if unable to parse/validate the date/time value.
327
     */
328
    public function getCreatedAt($format = NULL)
329
    {
330
        if ($format === null) {
331
            return $this->created_at;
332
        } else {
333
            return $this->created_at instanceof \DateTime ? $this->created_at->format($format) : null;
334
        }
335
    }
336
337
    /**
338
     * Get the [optionally formatted] temporal [updated_at] column value.

packages/core/src/Models/User/Base/User.php 1 location

@@ 419-426 (lines=8) @@
416
     *
417
     * @throws PropelException - if unable to parse/validate the date/time value.
418
     */
419
    public function getCreatedAt($format = NULL)
420
    {
421
        if ($format === null) {
422
            return $this->created_at;
423
        } else {
424
            return $this->created_at instanceof \DateTime ? $this->created_at->format($format) : null;
425
        }
426
    }
427
428
    /**
429
     * Get the [optionally formatted] temporal [updated_at] column value.