Code Duplication    Length = 8-8 lines in 2 locations

src/Networks/TradeDoubler.php 1 location

@@ 37-44 (lines=8) @@
34
    /**
35
     * @method __construct
36
     */
37
    public function __construct(string $username, string $password,string $idSite='')
38
    {
39
        $this->_network = new TradeDoublerEx;
40
        $this->_username = $username;
41
        $this->_password = $password;
42
        $this->_apiClient = null;
43
        $this->login( $this->_username, $this->_password );
44
    }
45
46
    public function login(string $username, string $password,string $idSite=''): bool
47
    {

src/Networks/AffiliateWindow.php 1 location

@@ 34-41 (lines=8) @@
31
    /**
32
     * @method __construct
33
     */
34
    public function __construct(string $username, string $password)
35
    {
36
        $this->_network = new AffiliateWindowEx;
37
        $this->_username = $username;
38
        $this->_password = $password;
39
        $this->_apiClient = null;
40
        $this->login( $this->_username, $this->_password );
41
    }
42
43
    public function login(string $username, string $password): bool
44
    {