Code Duplication    Length = 10-10 lines in 2 locations

src/Resource/Account.php 1 location

@@ 312-321 (lines=10) @@
309
     *
310
     * @return \Moip\Resource\Account
311
     */
312
    public function setBirthDate($birthDate)
313
    {
314
        if ($birthDate instanceof \DateTime) {
315
            $birthDate = $birthDate->format('Y-m-d');
316
        }
317
318
        $this->data->person->birthDate = $birthDate;
319
320
        return $this;
321
    }
322
323
    /**
324
     * Set tax document from account.

src/Resource/Customer.php 1 location

@@ 360-369 (lines=10) @@
357
     *
358
     * @return $this
359
     */
360
    public function setBirthDate($birthDate)
361
    {
362
        if ($birthDate instanceof \DateTime) {
363
            $birthDate = $birthDate->format('Y-m-d');
364
        }
365
366
        $this->data->birthDate = $birthDate;
367
368
        return $this;
369
    }
370
371
    /**
372
     * Set tax document from customer.