@@ 352-356 (lines=5) @@ | ||
349 | throw new EcuadorIdentificationException("Field must have the third digit between {$min} and {$max}."); |
|
350 | break; |
|
351 | ||
352 | case self::PublicCompany: |
|
353 | $thirdDigit = config('laravel-ecuador-identification.public-ruc.third-digit'); |
|
354 | if ($value != $thirdDigit) |
|
355 | throw new EcuadorIdentificationException("Field must have the third digit equal to {$thirdDigit}."); |
|
356 | break; |
|
357 | ||
358 | case self::PrivateCompany: |
|
359 | $thirdDigit = config('laravel-ecuador-identification.private-ruc.third-digit'); |
|
@@ 358-362 (lines=5) @@ | ||
355 | throw new EcuadorIdentificationException("Field must have the third digit equal to {$thirdDigit}."); |
|
356 | break; |
|
357 | ||
358 | case self::PrivateCompany: |
|
359 | $thirdDigit = config('laravel-ecuador-identification.private-ruc.third-digit'); |
|
360 | if ($value != $thirdDigit) |
|
361 | throw new EcuadorIdentificationException("Field must have the third digit equal to {$thirdDigit}."); |
|
362 | break; |
|
363 | ||
364 | default: |
|
365 | throw new EcuadorIdentificationException('Field does not have this type of identification.'); |