Completed
Push — master ( ca27a5...bdc860 )
by Владислав
02:06
created

Captcha24::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 9.4285
cc 1
eloc 10
nc 1
nop 0
1
<?php
2
3
namespace jumper423\decaptcha\services;
4
5
/**
6
 * Class Captcha24
7
 * @package jumper423\decaptcha\services
8
 */
9
class Captcha24 extends RuCaptcha
10
{
11
    public $domain = 'captcha24.com';
12
13
    public function init()
14
    {
15
        parent::init();
16
        unset(
17
            $this->paramsNames[self::ACTION_FIELD_QUESTION],
18
            $this->paramsNames[self::ACTION_FIELD_TEXTINSTRUCTIONS],
19
            $this->paramsNames[self::ACTION_FIELD_PINGBACK],
20
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_QUESTION],
21
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_TEXTINSTRUCTIONS],
22
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_PINGBACK]
23
        );
24
        $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_SOFT_ID][self::PARAM_SLUG_DEFAULT] = 0;
25
    }
26
}
27