Code Duplication    Length = 7-7 lines in 3 locations

src/IsoCodesValidator.php 3 locations

@@ 322-328 (lines=7) @@
319
     * @param $parameters
320
     * @return mixed
321
     */
322
    public function validateOrganismeType12NormeB2($attribute, $value, $parameters)
323
    {
324
        $this->requireParameterCount(1, $parameters, 'organisme_type12_norme_b2');
325
        $clef = Arr::get($this->data, $parameters[0]);
326
327
        return $this->runIsoCodesValidator(\IsoCodes\OrganismeType12NormeB2::class, $value, $clef);
328
    }
329
330
    /**
331
     * Validate a phone number
@@ 338-344 (lines=7) @@
335
     * @param $parameters
336
     * @return mixed
337
     */
338
    public function validatePhonenumber($attribute, $value, $parameters)
339
    {
340
        $this->requireParameterCount(1, $parameters, 'phonenumber');
341
        $country = Arr::get($this->data, $parameters[0]);
342
343
        return $this->runIsoCodesValidator(\IsoCodes\PhoneNumber::class, $value, $country);
344
    }
345
346
    /**
347
     * Validate a Stock Exchange Daily Official List (SEDOL)
@@ 497-503 (lines=7) @@
494
     * @param $parameters
495
     * @return mixed
496
     */
497
    public function validateZipcode($attribute, $value, $parameters)
498
    {
499
        $this->requireParameterCount(1, $parameters, 'zipcode');
500
        $country = Arr::get($this->data, $parameters[0]);
501
502
        return $this->runIsoCodesValidator(\IsoCodes\ZipCode::class, $value, $country);
503
    }
504
505
    /**
506
     * Execute the validation function