Code Duplication    Length = 9-9 lines in 2 locations

src/Sms/Alpha/Worker.php 1 location

@@ 44-52 (lines=9) @@
41
    /**
42
     * @return \AlphaSMS\Client
43
     */
44
    protected function getTransport()
45
    {
46
        if (null === $this->transport) {
47
            $clientConfig = self::getConfig(self::CONFIG_P_CLIENT);
48
            $this->transport = new \AlphaSMS\Client($clientConfig['login'], $clientConfig['password']);
49
        }
50
51
        return $this->transport;
52
    }
53
54
    // endregion *************************************************************
55

src/Sms/Infobip/Worker.php 1 location

@@ 42-50 (lines=9) @@
39
    /**
40
     * @return \infobip\SmsClient
41
     */
42
    protected function getTransport()
43
    {
44
        if (null === $this->transport) {
45
            $clientConfig = self::getConfig(self::CONFIG_P_CLIENT);
46
            $this->transport = new \infobip\SmsClient($clientConfig['login'], $clientConfig['password']);
47
        }
48
49
        return $this->transport;
50
    }
51
52
    /**
53
     * @param AbstractJob|Job $job