Code Duplication    Length = 8-9 lines in 2 locations

src/Resource/CustomerCreditCard.php 1 location

@@ 208-215 (lines=8) @@
205
     *
206
     * @return $this
207
     */
208
    public function setPhone($country_code, $area_code, $number)
209
    {
210
        $this->data->creditCard->holder->phone->countryCode = $country_code;
211
        $this->data->creditCard->holder->phone->areaCode = $area_code;
212
        $this->data->creditCard->holder->phone->number = $number;
213
214
        return $this;
215
    }
216
217
    /**
218
     * Get credit card id.

src/Resource/Account.php 1 location

@@ 545-553 (lines=9) @@
542
     *
543
     * @return \Moip\Resource\Account
544
     */
545
    public function setPhone($areaCode, $number, $countryCode = 55)
546
    {
547
        $this->data->person->phone = new stdClass();
548
        $this->data->person->phone->countryCode = $countryCode;
549
        $this->data->person->phone->areaCode = $areaCode;
550
        $this->data->person->phone->number = $number;
551
552
        return $this;
553
    }
554
555
    /**
556
     * Set identity document from account.