| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testRecognizeBalanceError1() |
||
| 14 | { |
||
| 15 | $captcha = new \jumper423\decaptcha\services\TwoCaptcha([ |
||
| 16 | \jumper423\decaptcha\services\TwoCaptcha::PARAM_SPEC_API_KEY => '200a1ed2b6ca001d8171c655658086ed', |
||
| 17 | ]); |
||
| 18 | $captcha->setErrorLang(\jumper423\decaptcha\core\DeCaptchaErrors::LANG_RU); |
||
| 19 | $captcha->setCauseAnError(true); |
||
| 20 | $captcha->recognize(__DIR__ . '/data/Captcha.jpg'); |
||
| 21 | } |
||
| 22 | |||
| 36 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.