Code Duplication    Length = 14-17 lines in 9 locations

src/Concrete/BetaSms.php 1 location

@@ 23-39 (lines=17) @@
20
     * Class Constructor.
21
     * @param null $message
22
     */
23
    public function __construct($message = null)
24
    {
25
        $this->username = config('laravel-sms.beta_sms.username');
26
        $this->password = config('laravel-sms.beta_sms.password');
27
28
        if ($message) {
29
            $this->text($message);
30
        }
31
32
        $this->client = new Client([
33
            'base_uri' => $this->baseUrl,
34
            'headers' => [
35
                'header' => 'Content-type: application/x-www-form-urlencoded',
36
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
37
            ],
38
        ]);
39
    }
40
41
    /**
42
     * @param null $text

src/Concrete/BulkSmsNigeria.php 1 location

@@ 23-38 (lines=16) @@
20
     * Class Constructor.
21
     * @param null $message
22
     */
23
    public function __construct($message = null)
24
    {
25
        $this->username = config('laravel-sms.bulk_sms_nigeria.token');
26
27
        if ($message) {
28
            $this->text($message);
29
        }
30
31
        $this->client = new Client([
32
            'base_uri' => $this->baseUrl,
33
            'headers' => [
34
                'header' => 'Content-type: application/x-www-form-urlencoded',
35
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
36
            ],
37
        ]);
38
    }
39
40
    /**
41
     * @param null $text

src/Concrete/GoldSms247.php 1 location

@@ 51-67 (lines=17) @@
48
     * Class Constructor.
49
     * @param null $message
50
     */
51
    public function __construct($message = null)
52
    {
53
        $this->username = config('laravel-sms.gold_sms_247.username');
54
        $this->password = config('laravel-sms.gold_sms_247.password');
55
56
        if ($message) {
57
            $this->text($message);
58
        }
59
60
        $this->client = new Client([
61
            'base_uri' => $this->baseUrl,
62
            'headers' => [
63
                'header' => 'Content-type: application/x-www-form-urlencoded',
64
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
65
            ],
66
        ]);
67
    }
68
69
    public function getResponse()
70
    {

src/Concrete/MultiTexter.php 1 location

@@ 17-30 (lines=14) @@
14
     * Class Constructor.
15
     * @param null $message
16
     */
17
    public function __construct($message = null)
18
    {
19
        $this->username = config('laravel-sms.multitexter.username');
20
        $this->password = config('laravel-sms.multitexter.password');
21
        if ($message) {
22
            $this->text($message);
23
        }
24
        $this->client = new Client([
25
            'base_uri' => $this->baseUrl,
26
            'headers' => [
27
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
28
            ],
29
        ]);
30
    }
31
32
    /**
33
     * @param null $text

src/Concrete/Nexmo.php 1 location

@@ 17-30 (lines=14) @@
14
     * Class Constructor.
15
     * @param null $message
16
     */
17
    public function __construct($message = null)
18
    {
19
        $this->username = config('laravel-sms.nexmo.api_key');
20
        $this->password = config('laravel-sms.nexmo.api_secret');
21
        if ($message) {
22
            $this->text($message);
23
        }
24
        $this->client = new Client([
25
            'base_uri' => $this->baseUrl,
26
            'headers' => [
27
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
28
            ],
29
        ]);
30
    }
31
32
    /**
33
     * @param null $text

src/Concrete/RingCaptcha.php 1 location

@@ 17-30 (lines=14) @@
14
     * Class Constructor.
15
     * @param null $message
16
     */
17
    public function __construct($message = null)
18
    {
19
        $this->username = config('laravel-sms.ring_captcha.app_key');
20
        $this->password = config('laravel-sms.ring_captcha.api_key');
21
        if ($message) {
22
            $this->text($message);
23
        }
24
        $this->client = new Client([
25
            'base_uri' => $this->baseUrl,
26
            'headers' => [
27
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
28
            ],
29
        ]);
30
    }
31
32
    /**
33
     * @param null $text

src/Concrete/SmartSmsSolutions.php 1 location

@@ 24-38 (lines=15) @@
21
     *
22
     * @param null $message
23
     */
24
    public function __construct($message = null)
25
    {
26
        $this->username = config('laravel-sms.smart_sms.token');
27
        if ($message) {
28
            $this->text($message);
29
        }
30
31
        $this->client = new Client([
32
            'base_uri' => $this->baseUrl,
33
            'headers' => [
34
                'header' => 'Content-type: application/x-www-form-urlencoded',
35
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
36
            ],
37
        ]);
38
    }
39
40
    /**
41
     * @param null $text

src/Concrete/SmsLive247.php 1 location

@@ 25-39 (lines=15) @@
22
     *
23
     * @param null $message
24
     */
25
    public function __construct($message = null)
26
    {
27
        $this->username = config('laravel-sms.smslive247.token');
28
        if ($message) {
29
            $this->text($message);
30
        }
31
32
        $this->client = new Client([
33
            'base_uri' => $this->baseUrl,
34
            'headers' => [
35
                'header' => 'Content-type: application/x-www-form-urlencoded',
36
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
37
            ],
38
        ]);
39
    }
40
41
    public function type(bool $type)
42
    {

src/Concrete/XWireless.php 1 location

@@ 50-66 (lines=17) @@
47
     * Class Constructor.
48
     * @param null $message
49
     */
50
    public function __construct($message = null)
51
    {
52
        $this->username = config('laravel-sms.x_wireless.api_key');
53
        $this->password = config('laravel-sms.x_wireless.client_id');
54
55
        if ($message) {
56
            $this->text($message);
57
        }
58
59
        $this->client = new Client([
60
            'base_uri' => $this->baseUrl,
61
            'headers' => [
62
                'header' => 'Content-type: application/jxon',
63
                'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36 OPR/47.0.2631.39',
64
            ],
65
        ]);
66
    }
67
68
    public function getResponse()
69
    {