Completed
Push — master ( e0bd91...8d4979 )
by Владислав
21:54 queued 18:18
created

RuCaptchaInstruction   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
B init() 0 24 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
        ]);
33
    }
34
}
35