Code Duplication    Length = 7-8 lines in 2 locations

Model/Api/Request/Addresscheck.php 1 location

@@ 173-179 (lines=7) @@
170
        $this->addParameter('language', Locale::getPrimaryLanguage(Locale::getDefault()));
171
        $this->addAddress($oAddress);
172
173
        if ($this->addressesChecked->wasAddressCheckedBefore($oAddress) === false) {
174
            $aResponse = $this->send();
175
            if ($aResponse['status'] == 'VALID') {
176
                $this->addressesChecked->addCheckedAddress($oAddress, $aResponse);
177
            }
178
            return $aResponse;
179
        }
180
        return true;
181
    }
182
}

Model/Api/Request/Consumerscore.php 1 location

@@ 100-107 (lines=8) @@
97
        $this->addParameter('language', Locale::getPrimaryLanguage(Locale::getDefault()));
98
99
        $this->addAddress($oAddress);
100
        if ($this->addressesChecked->wasAddressCheckedBefore($oAddress, true) === false) {
101
            $aResponse = $this->send();
102
            if ($aResponse['status'] == 'VALID') {
103
                $this->addressesChecked->addCheckedAddress($oAddress, $aResponse, true);
104
            }
105
106
            return $aResponse;
107
        }
108
        return true;
109
    }
110
}