@@ -14,11 +14,17 @@ discard block |
||
14 | 14 | private $class; |
15 | 15 | private $lang = 'en'; |
16 | 16 | |
17 | + /** |
|
18 | + * @param string $lang |
|
19 | + */ |
|
17 | 20 | public function setLang($lang) |
18 | 21 | { |
19 | 22 | $this->lang = $lang; |
20 | 23 | } |
21 | 24 | |
25 | + /** |
|
26 | + * @param DeCaptchaBase $class |
|
27 | + */ |
|
22 | 28 | public function __construct($class) |
23 | 29 | { |
24 | 30 | $this->class = $class; |
@@ -251,7 +257,7 @@ discard block |
||
251 | 257 | } |
252 | 258 | |
253 | 259 | /** |
254 | - * @param string|array $name |
|
260 | + * @param string[] $name |
|
255 | 261 | * @param string $separator |
256 | 262 | * |
257 | 263 | * @return string|array |
@@ -397,6 +403,9 @@ discard block |
||
397 | 403 | return $str; |
398 | 404 | } |
399 | 405 | |
406 | + /** |
|
407 | + * @param string $keyMask |
|
408 | + */ |
|
400 | 409 | private function getNameConst($keyMask, $value) |
401 | 410 | { |
402 | 411 | $constants = (new \ReflectionClass($this->class))->getConstants(); |
@@ -24,23 +24,23 @@ |
||
24 | 24 | |
25 | 25 | foreach (['ru', 'en'] as $lang) { |
26 | 26 | foreach ([ |
27 | - new \jumper423\decaptcha\services\RuCaptcha([]), |
|
28 | - new \jumper423\decaptcha\services\RuCaptchaReCaptcha([]), |
|
29 | - new \jumper423\decaptcha\services\RuCaptchaInstruction([]), |
|
30 | - new \jumper423\decaptcha\services\RuCaptchaGrid([]), |
|
31 | - new \jumper423\decaptcha\services\RuCaptchaClick([]), |
|
32 | - new \jumper423\decaptcha\services\TwoCaptcha([]), |
|
33 | - new \jumper423\decaptcha\services\TwoCaptchaReCaptcha([]), |
|
34 | - new \jumper423\decaptcha\services\TwoCaptchaInstruction([]), |
|
35 | - new \jumper423\decaptcha\services\TwoCaptchaGrid([]), |
|
36 | - new \jumper423\decaptcha\services\TwoCaptchaClick([]), |
|
37 | - new \jumper423\decaptcha\services\Anticaptcha([]), |
|
38 | - new \jumper423\decaptcha\services\AnticaptchaReCaptcha([]), |
|
39 | - new \jumper423\decaptcha\services\AnticaptchaReCaptchaProxeless([]), |
|
40 | - new \jumper423\decaptcha\services\Captcha24([]), |
|
41 | - new \jumper423\decaptcha\services\Pixodrom([]), |
|
42 | - new \jumper423\decaptcha\services\Ripcaptcha([]), |
|
43 | - ] as $class) { |
|
27 | + new \jumper423\decaptcha\services\RuCaptcha([]), |
|
28 | + new \jumper423\decaptcha\services\RuCaptchaReCaptcha([]), |
|
29 | + new \jumper423\decaptcha\services\RuCaptchaInstruction([]), |
|
30 | + new \jumper423\decaptcha\services\RuCaptchaGrid([]), |
|
31 | + new \jumper423\decaptcha\services\RuCaptchaClick([]), |
|
32 | + new \jumper423\decaptcha\services\TwoCaptcha([]), |
|
33 | + new \jumper423\decaptcha\services\TwoCaptchaReCaptcha([]), |
|
34 | + new \jumper423\decaptcha\services\TwoCaptchaInstruction([]), |
|
35 | + new \jumper423\decaptcha\services\TwoCaptchaGrid([]), |
|
36 | + new \jumper423\decaptcha\services\TwoCaptchaClick([]), |
|
37 | + new \jumper423\decaptcha\services\Anticaptcha([]), |
|
38 | + new \jumper423\decaptcha\services\AnticaptchaReCaptcha([]), |
|
39 | + new \jumper423\decaptcha\services\AnticaptchaReCaptchaProxeless([]), |
|
40 | + new \jumper423\decaptcha\services\Captcha24([]), |
|
41 | + new \jumper423\decaptcha\services\Pixodrom([]), |
|
42 | + new \jumper423\decaptcha\services\Ripcaptcha([]), |
|
43 | + ] as $class) { |
|
44 | 44 | $tt = $class->getWiki($lang); |
45 | 45 | $tt->save(); |
46 | 46 | } |