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

Captcha24   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 13 1
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