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

TwoCaptchaGeeTest::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 20

Duplication

Lines 20
Ratio 100 %

Importance

Changes 0
Metric Value
dl 20
loc 20
rs 9.6
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace jumper423\decaptcha\services;
4
5
/**
6
 * Class TwoCaptchaGeeTest.
7
 */
8 View Code Duplication
class TwoCaptchaGeeTest extends RuCaptchaGeeTest
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 GeeTest',
18
            'en' => '2Captcha GeeTest',
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
            TwoCaptchaKeyCaptcha::class,
27
            TwoCaptchaFunCaptcha::class,
28
            TwoCaptchaReCaptcha::class,
29
            TwoCaptchaReCaptchaV3::class,
30
        ]);
31
    }
32
}
33