Code Duplication    Length = 14-15 lines in 2 locations

lib/Payone/Settings/Service/XmlGenerate.php 2 locations

@@ 243-257 (lines=15) @@
240
     * @param DOMElement $protectXml
241
     * @return DOMElement
242
     */
243
    protected function mapConsumerscore(Payone_Settings_Data_ConfigFile_Protect_Consumerscore $consumerscoreConfig, DOMElement $protectXml)
244
    {
245
        $consumerscoreXml = $this->appendElement($protectXml, $consumerscoreConfig->getKey());
246
247
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'active');
248
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'mode');
249
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'min_order_total');
250
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'max_order_total');
251
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'addresscheck');
252
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'red');
253
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'yellow');
254
        $this->addChild($consumerscoreXml, $consumerscoreConfig, 'duetime');
255
256
        return $protectXml;
257
    }
258
259
    /**
260
     * @param Payone_Settings_Data_ConfigFile_Protect_Addresscheck $addresscheckConfig
@@ 264-277 (lines=14) @@
261
     * @param DOMElement $protectXml
262
     * @return DOMElement
263
     */
264
    protected function mapAddresscheck(Payone_Settings_Data_ConfigFile_Protect_Addresscheck $addresscheckConfig, DOMElement $protectXml)
265
    {
266
        $addresscheckXml = $this->appendElement($protectXml, $addresscheckConfig->getKey());
267
268
        $this->addChild($addresscheckXml, $addresscheckConfig, 'active');
269
        $this->addChild($addresscheckXml, $addresscheckConfig, 'mode');
270
        $this->addChild($addresscheckXml, $addresscheckConfig, 'min_order_total');
271
        $this->addChild($addresscheckXml, $addresscheckConfig, 'max_order_total');
272
        $this->addChild($addresscheckXml, $addresscheckConfig, 'checkbilling');
273
        $this->addChild($addresscheckXml, $addresscheckConfig, 'checkshipping');
274
        $this->addChild($addresscheckXml, $addresscheckConfig, 'personstatusmapping');
275
276
        return $protectXml;
277
    }
278
279
    /**
280
     * @param Payone_Settings_Data_ConfigFile_Shop_Global $globalConfig