Code Duplication    Length = 6-6 lines in 3 locations

src/Support/EcuadorIdentification.php 3 locations

@@ 371-376 (lines=6) @@
368
    private function theLastDigitsValidation($value, $type)
369
    {
370
        switch ($type) {
371
            case self::NaturalPerson:
372
                $lastDigits = config('laravel-ecuador-identification.natural-ruc.last-digits');
373
                if ($value != $lastDigits) {
374
                    throw new EcuadorIdentificationException("Field does not have the last digits equal to {$lastDigits}");
375
                }
376
                break;
377
378
            case self::PrivateCompany:
379
                $lastDigits = config('laravel-ecuador-identification.private-ruc.last-digits');
@@ 378-383 (lines=6) @@
375
                }
376
                break;
377
378
            case self::PrivateCompany:
379
                $lastDigits = config('laravel-ecuador-identification.private-ruc.last-digits');
380
                if ($value != $lastDigits) {
381
                    throw new EcuadorIdentificationException("Field does not have the last digits equal to {$lastDigits}");
382
                }
383
                break;
384
385
            case self::PublicCompany:
386
                $lastDigits = config('laravel-ecuador-identification.public-ruc.last-digits');
@@ 385-390 (lines=6) @@
382
                }
383
                break;
384
385
            case self::PublicCompany:
386
                $lastDigits = config('laravel-ecuador-identification.public-ruc.last-digits');
387
                if ($value != $lastDigits) {
388
                    throw new EcuadorIdentificationException("Field does not have the last digits equal to {$lastDigits}");
389
                }
390
                break;
391
392
            default:
393
                throw new EcuadorIdentificationException('Field does not have this type of identification.');