Code Duplication    Length = 10-10 lines in 2 locations

src/Resource/Account.php 1 location

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

src/Resource/Customer.php 1 location

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