Code Duplication    Length = 10-10 lines in 2 locations

src/Resource/Account.php 1 location

@@ 508-517 (lines=10) @@
505
     *
506
     * @return \Moip\Resource\Account
507
     */
508
    public function setBirthDate($birthDate)
509
    {
510
        if ($birthDate instanceof \DateTime) {
511
            $birthDate = $birthDate->format('Y-m-d');
512
        }
513
514
        $this->data->person->birthDate = $birthDate;
515
516
        return $this;
517
    }
518
519
    /**
520
     * Set tax document from account.

src/Resource/Customer.php 1 location

@@ 391-400 (lines=10) @@
388
     *
389
     * @return $this
390
     */
391
    public function setBirthDate($birthDate)
392
    {
393
        if ($birthDate instanceof \DateTime) {
394
            $birthDate = $birthDate->format('Y-m-d');
395
        }
396
397
        $this->data->birthDate = $birthDate;
398
399
        return $this;
400
    }
401
402
    /**
403
     * Set tax document (CPF) from customer.