Passed
Pull Request — master (#9)
by Владислав
04:21
created

TwoCaptchaKeyCaptcha::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19

Duplication

Lines 19
Ratio 100 %

Importance

Changes 0
Metric Value
dl 19
loc 19
rs 9.6333
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace jumper423\decaptcha\services;
4
5
/**
6
 * Class TwoCaptchaKeyCaptcha.
7
 */
8 View Code Duplication
class TwoCaptchaKeyCaptcha extends RuCaptchaKeyCaptcha
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
{
10
    protected $host = '2captcha.com';
11
12
    public function init()
13
    {
14
        parent::init();
15
16
        $this->wiki->setText(['service', 'name'], [
17
            'ru' => '2Captcha KeyCaptcha',
18
            'en' => '2Captcha KeyCaptcha',
19
        ]);
20
        $this->wiki->setText(['service', 'href'], 'http://infoblog1.ru/goto/2captcha');
21
        $this->wiki->setText(['menu', 'from_service'], [
22
            TwoCaptcha::class,
23
            TwoCaptchaInstruction::class,
24
            TwoCaptchaClick::class,
25
            TwoCaptchaGrid::class,
26
            TwoCaptchaReCaptcha::class,
27
            TwoCaptchaReCaptchaV3::class,
28
            TwoCaptchaGeeTest::class,
29
        ]);
30
    }
31
}
32