|
@@ 478-480 (lines=3) @@
|
| 475 |
|
$str .= "{$this->getText(['example', 'recognize', 'desc'])}".PHP_EOL; |
| 476 |
|
$str .= '```'.PHP_EOL; |
| 477 |
|
$str .= 'if ($captcha->recognize('; |
| 478 |
|
if ($this->texts['recognize_file']) { |
| 479 |
|
$str .= "'{$this->getText(['recognize', 'data', 'file'])}'"; |
| 480 |
|
} |
| 481 |
|
$str .= $this->getRecognizeData(); |
| 482 |
|
$str .= ')) {'.PHP_EOL; |
| 483 |
|
$str .= ' $code = $captcha->getCode();'.PHP_EOL; |
|
@@ 519-521 (lines=3) @@
|
| 516 |
|
$str .= PHP_EOL; |
| 517 |
|
$str .= 'try {'.PHP_EOL; |
| 518 |
|
$str .= ' $captcha->recognize('; |
| 519 |
|
if ($this->texts['recognize_file']) { |
| 520 |
|
$str .= "'{$this->getText(['recognize', 'data', 'file'])}'"; |
| 521 |
|
} |
| 522 |
|
$str .= $this->getRecognizeData(); |
| 523 |
|
$str .= ');'.PHP_EOL; |
| 524 |
|
$str .= ' $code = $captcha->getCode();'.PHP_EOL; |