|
@@ 338-342 (lines=5) @@
|
| 335 |
|
throw new EcuadorIdentificationException("Field must have the third digit between {$min} and {$max}."); |
| 336 |
|
break; |
| 337 |
|
|
| 338 |
|
case self::PublicCompany: |
| 339 |
|
$thirdDigit = config('laravel-ecuador-identification.public-ruc.third-digit'); |
| 340 |
|
if ($value != $thirdDigit) |
| 341 |
|
throw new EcuadorIdentificationException("Field must have the third digit equal to {$thirdDigit}."); |
| 342 |
|
break; |
| 343 |
|
|
| 344 |
|
case self::PrivateCompany: |
| 345 |
|
$thirdDigit = config('laravel-ecuador-identification.private-ruc.third-digit'); |
|
@@ 344-348 (lines=5) @@
|
| 341 |
|
throw new EcuadorIdentificationException("Field must have the third digit equal to {$thirdDigit}."); |
| 342 |
|
break; |
| 343 |
|
|
| 344 |
|
case self::PrivateCompany: |
| 345 |
|
$thirdDigit = config('laravel-ecuador-identification.private-ruc.third-digit'); |
| 346 |
|
if ($value != $thirdDigit) |
| 347 |
|
throw new EcuadorIdentificationException("Field must have the third digit equal to {$thirdDigit}."); |
| 348 |
|
break; |
| 349 |
|
|
| 350 |
|
default: |
| 351 |
|
throw new EcuadorIdentificationException('Field does not have this type of identification.'); |