| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function postValidation() |
||
| 45 | { |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Verifica a chave cfe |
||
| 49 | */ |
||
| 50 | if ($this->std->chv_cfe and !Keys::isValid($this->std->chv_cfe)) { |
||
| 51 | throw new \InvalidArgumentException("[" . self::REG . "] " . |
||
| 52 | " Dígito verificador incorreto no da Chave " . |
||
| 53 | "do Cupom Fiscal Eletrônico (CHV_CFE)"); |
||
| 54 | } |
||
| 55 | } |
||
| 56 | } |
||
| 57 |