| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 1 | public function idCard(string $type, string $path) |
|
| 40 | { |
||
| 41 | 1 | if (!in_array($type, $this->allowTypes, true)) { |
|
| 42 | 1 | throw new InvalidArgumentException(sprintf("Unsupported type: '%s'", $type)); |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | return $this->httpGet('cv/ocr/idcard', [ |
|
| 46 | 1 | 'type' => $type, |
|
| 47 | 1 | 'img_url' => $path, |
|
| 48 | ]); |
||
| 79 |