Code Duplication    Length = 8-8 lines in 2 locations

src/Networks/Effiliation.php 1 location

@@ 31-38 (lines=8) @@
28
    /**
29
     * @method __construct
30
     */
31
    public function __construct(string $username, string $password,string $idSite='')
32
    {
33
        $this->_network = new \Padosoft\AffiliateNetwork\EffiliationEx;
34
        $this->_username = $username;
35
        $this->_password = $password;
36
        $this->login( $this->_username, $this->_password );
37
        $this->_apiClient = null;
38
    }
39
    public function login(string $username, string $password,string $idSite=''): bool{
40
        $this->_logged = false;
41
        if (isNullOrEmpty( $password )) {

src/Networks/TradeDoubler.php 1 location

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