Completed
Push — master ( e4687b...11ef10 )
by Владислав
02:14
created

Ripcaptcha::init()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 30
Code Lines 26

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 30
rs 8.8571
cc 1
eloc 26
nc 1
nop 0
1
<?php
2
3
namespace jumper423\decaptcha\services;
4
5
/**
6
 * Class Ripcaptcha.
7
 */
8
class Ripcaptcha extends RuCaptcha
9
{
10
    protected $host = 'ripcaptcha.com';
11
12
    public function init()
13
    {
14
        parent::init();
15
16
        unset(
17
            $this->paramsNames[self::ACTION_FIELD_PHRASE],
18
            $this->paramsNames[self::ACTION_FIELD_REGSENSE],
19
            $this->paramsNames[self::ACTION_FIELD_NUMERIC],
20
            $this->paramsNames[self::ACTION_FIELD_MIN_LEN],
21
            $this->paramsNames[self::ACTION_FIELD_MAX_LEN],
22
            $this->paramsNames[self::ACTION_FIELD_LANGUAGE],
23
            $this->paramsNames[self::ACTION_FIELD_HEADER_ACAO],
24
            $this->paramsNames[self::ACTION_FIELD_CALC],
25
            $this->paramsNames[self::ACTION_FIELD_QUESTION],
26
            $this->paramsNames[self::ACTION_FIELD_TEXTINSTRUCTIONS],
27
            $this->paramsNames[self::ACTION_FIELD_PINGBACK],
28
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_PHRASE],
29
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_REGSENSE],
30
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_NUMERIC],
31
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_MIN_LEN],
32
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_MAX_LEN],
33
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_LANGUAGE],
34
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_HEADER_ACAO],
35
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_CALC],
36
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_QUESTION],
37
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_TEXTINSTRUCTIONS],
38
            $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_PINGBACK]
39
        );
40
        $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][self::ACTION_FIELD_SOFT_ID][self::PARAM_SLUG_DEFAULT] = 0;
41
    }
42
}
43