RuCaptchaInstruction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 2
dl 0
loc 31
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 28 1
1
<?php
2
3
namespace jumper423\decaptcha\services;
4
5
/**
6
 * Class RuCaptchaManual.
7
 */
8
class RuCaptchaInstruction extends RuCaptcha
9
{
10
    public function init()
11
    {
12
        parent::init();
13
14
        $this->actions[static::ACTION_RECOGNIZE][static::ACTION_FIELDS][static::ACTION_FIELD_INSTRUCTIONS][static::PARAM_SLUG_REQUIRE] = true;
15
16
        $this->wiki->setText(['service', 'name'], [
17
            'ru' => 'RuCaptcha Инструкция',
18
            'en' => 'RuCaptcha Manual',
19
        ]);
20
        $this->wiki->setText(['recognize', 'desc'], [
21
            'ru' => 'Распознание что написанно на картинке с пояснительной инструкцией',
22
            'en' => 'Recognizing what is written on the picture with the explanatory statement',
23
        ]);
24
        $this->wiki->setText(['recognize', 'data'], [
25
            static::ACTION_FIELD_INSTRUCTIONS => 'What\'s in the picture?',
26
        ]);
27
        $this->wiki->setText(['menu', 'from_service'], [
28
            RuCaptcha::class,
29
            RuCaptchaClick::class,
30
            RuCaptchaGrid::class,
31
            RuCaptchaReCaptcha::class,
32
            RuCaptchaKeyCaptcha::class,
33
            RuCaptchaFunCaptcha::class,
34
            RuCaptchaReCaptchaV3::class,
35
            RuCaptchaGeeTest::class,
36
        ]);
37
    }
38
}
39