Code Duplication    Length = 8-8 lines in 2 locations

src/cli/Database/Base/Connection.php 1 location

@@ 404-411 (lines=8) @@
401
     *
402
     * @throws PropelException - if unable to parse/validate the date/time value.
403
     */
404
    public function getStarted($format = NULL)
405
    {
406
        if ($format === null) {
407
            return $this->started;
408
        } else {
409
            return $this->started instanceof \DateTime ? $this->started->format($format) : null;
410
        }
411
    }
412
413
    /**
414
     * Get the [type] column value.

src/cli/Database/Base/Subscription.php 1 location

@@ 442-449 (lines=8) @@
439
     *
440
     * @throws PropelException - if unable to parse/validate the date/time value.
441
     */
442
    public function getStarted($format = NULL)
443
    {
444
        if ($format === null) {
445
            return $this->started;
446
        } else {
447
            return $this->started instanceof \DateTime ? $this->started->format($format) : null;
448
        }
449
    }
450
451
    /**
452
     * Get the [optionally formatted] temporal [stopped] column value.