Code Duplication    Length = 7-7 lines in 3 locations

src/IsoCodesValidator.php 3 locations

@@ 236-242 (lines=7) @@
233
     * @param $parameters
234
     * @return mixed
235
     */
236
    public function validateOrganismeType12NormeB2($attribute, $value, $parameters)
237
    {
238
        $this->requireParameterCount(1, $parameters, 'organisme_type12_norme_b2');
239
        $clef = Arr::get($this->data, $parameters[0]);
240
241
        return $this->runIsoCodesValidator(\IsoCodes\OrganismeType12NormeB2::class, $value, $clef);
242
    }
243
244
    /**
245
     * Validate a phone number
@@ 252-258 (lines=7) @@
249
     * @param $parameters
250
     * @return mixed
251
     */
252
    public function validatePhonenumber($attribute, $value, $parameters)
253
    {
254
        $this->requireParameterCount(1, $parameters, 'phonenumber');
255
        $country = Arr::get($this->data, $parameters[0]);
256
257
        return $this->runIsoCodesValidator(\IsoCodes\PhoneNumber::class, $value, $country);
258
    }
259
260
    /**
261
     * Validate a Stock Exchange Daily Official List (SEDOL)
@@ 398-404 (lines=7) @@
395
     * @param $parameters
396
     * @return mixed
397
     */
398
    public function validateZipcode($attribute, $value, $parameters)
399
    {
400
        $this->requireParameterCount(1, $parameters, 'zipcode');
401
        $country = Arr::get($this->data, $parameters[0]);
402
403
        return $this->runIsoCodesValidator(\IsoCodes\ZipCode::class, $value, $country);
404
    }
405
406
    /**
407
     * Execute the validation function