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

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