@@ 524-529 (lines=6) @@ | ||
521 | protected function moduleEleven($number, $type) |
|
522 | { |
|
523 | switch ($type) { |
|
524 | case self::PrivateCompany: |
|
525 | $coefficients = config('laravel-ecuador-identification.private-ruc.coefficients'); |
|
526 | $check_digit_position = config('laravel-ecuador-identification.private-ruc.check-digit-position'); |
|
527 | $check_digit_value = $number[$check_digit_position - 1]; |
|
528 | $numbers = str_split(substr($number, 0, 9)); |
|
529 | break; |
|
530 | case self::PublicCompany: |
|
531 | $coefficients = config('laravel-ecuador-identification.public-ruc.coefficients'); |
|
532 | $check_digit_position = config('laravel-ecuador-identification.public-ruc.check-digit-position'); |
|
@@ 530-535 (lines=6) @@ | ||
527 | $check_digit_value = $number[$check_digit_position - 1]; |
|
528 | $numbers = str_split(substr($number, 0, 9)); |
|
529 | break; |
|
530 | case self::PublicCompany: |
|
531 | $coefficients = config('laravel-ecuador-identification.public-ruc.coefficients'); |
|
532 | $check_digit_position = config('laravel-ecuador-identification.public-ruc.check-digit-position'); |
|
533 | $check_digit_value = $number[$check_digit_position - 1]; |
|
534 | $numbers = str_split(substr($number, 0, 8)); |
|
535 | break; |
|
536 | default: |
|
537 | throw new EcuadorIdentificationException('Field does not have this type of identification.'); |
|
538 | break; |