Code Duplication    Length = 24-25 lines in 7 locations

src/services/TwoCaptchaFunCaptcha.php 1 location

@@ 8-32 (lines=25) @@
5
/**
6
 * Class TwoCaptchaFunCaptcha.
7
 */
8
class TwoCaptchaFunCaptcha extends RuCaptchaFunCaptcha
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 FunCaptcha',
18
            'en' => '2Captcha FunCaptcha',
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
            TwoCaptchaFunCaptcha::class,
28
            TwoCaptchaReCaptchaV3::class,
29
            TwoCaptchaGeeTest::class,
30
        ]);
31
    }
32
}
33

src/services/TwoCaptchaGeeTest.php 1 location

@@ 8-32 (lines=25) @@
5
/**
6
 * Class TwoCaptchaGeeTest.
7
 */
8
class TwoCaptchaGeeTest extends RuCaptchaGeeTest
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

src/services/TwoCaptchaGrid.php 1 location

@@ 8-32 (lines=25) @@
5
/**
6
 * Class TwoCaptchaGrid.
7
 */
8
class TwoCaptchaGrid extends RuCaptchaGrid
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 Сетка (ReCaptcha v2)',
18
            'en' => '2Captcha Grid (ReCaptcha v2)',
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
            TwoCaptchaReCaptcha::class,
26
            TwoCaptchaKeyCaptcha::class,
27
            TwoCaptchaFunCaptcha::class,
28
            TwoCaptchaReCaptchaV3::class,
29
            TwoCaptchaGeeTest::class,
30
        ]);
31
    }
32
}
33

src/services/TwoCaptchaInstruction.php 1 location

@@ 8-32 (lines=25) @@
5
/**
6
 * Class TwoCaptchaInstruction.
7
 */
8
class TwoCaptchaInstruction extends RuCaptchaInstruction
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 Инструкция',
18
            'en' => '2Captcha Manual',
19
        ]);
20
        $this->wiki->setText(['service', 'href'], 'http://infoblog1.ru/goto/2captcha');
21
        $this->wiki->setText(['menu', 'from_service'], [
22
            TwoCaptcha::class,
23
            TwoCaptchaClick::class,
24
            TwoCaptchaGrid::class,
25
            TwoCaptchaReCaptcha::class,
26
            TwoCaptchaKeyCaptcha::class,
27
            TwoCaptchaFunCaptcha::class,
28
            TwoCaptchaReCaptchaV3::class,
29
            TwoCaptchaGeeTest::class,
30
        ]);
31
    }
32
}
33

src/services/TwoCaptchaKeyCaptcha.php 1 location

@@ 8-31 (lines=24) @@
5
/**
6
 * Class TwoCaptchaKeyCaptcha.
7
 */
8
class TwoCaptchaKeyCaptcha extends RuCaptchaKeyCaptcha
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

src/services/TwoCaptchaReCaptcha.php 1 location

@@ 8-32 (lines=25) @@
5
/**
6
 * Class TwoCaptchaReCaptcha.
7
 */
8
class TwoCaptchaReCaptcha extends RuCaptchaReCaptcha
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 ReCaptcha v2 без браузера',
18
            'en' => '2Captcha ReCaptcha v2 without a browser',
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
            TwoCaptchaReCaptchaV3::class,
29
            TwoCaptchaGeeTest::class,
30
        ]);
31
    }
32
}
33

src/services/TwoCaptchaReCaptchaV3.php 1 location

@@ 8-32 (lines=25) @@
5
/**
6
 * Class TwoCaptchaReCaptchaV3.
7
 */
8
class TwoCaptchaReCaptchaV3 extends RuCaptchaReCaptchaV3
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 ReCaptcha v3',
18
            'en' => '2Captcha ReCaptcha v3',
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
            TwoCaptchaGeeTest::class,
30
        ]);
31
    }
32
}
33