Code Duplication    Length = 25-26 lines in 3 locations

src/Make.php 3 locations

@@ 383-408 (lines=26) @@
380
     *
381
     * @return DOMElement
382
     */
383
    public function taginfMunCarrega(stdClass $std)
384
    {
385
        $possible = [
386
            'cMunCarrega',
387
            'xMunCarrega'
388
        ];
389
390
        $std = $this->equilizeParameters($std, $possible);
391
        $infMunCarrega = $this->dom->createElement("infMunCarrega");
392
        $this->dom->addChild(
393
            $infMunCarrega,
394
            "cMunCarrega",
395
            $std->cMunCarrega,
396
            true,
397
            "Código do Município de Carregamento"
398
        );
399
        $this->dom->addChild(
400
            $infMunCarrega,
401
            "xMunCarrega",
402
            $std->xMunCarrega,
403
            true,
404
            "Nome do Município de Carregamento"
405
        );
406
        $this->aInfMunCarrega[] = $infMunCarrega;
407
        return $infMunCarrega;
408
    }
409
410
    /**
411
     * tagInfPercurso
@@ 1365-1389 (lines=25) @@
1362
     *
1363
     * @return DOMElement
1364
     */
1365
    public function taginfAdic(stdClass $std)
1366
    {
1367
        $possible = [
1368
            'infAdFisco',
1369
            'infCpl'
1370
        ];
1371
        $std = $this->equilizeParameters($std, $possible);
1372
        $infAdic = $this->dom->createElement("infAdic");
1373
        $this->dom->addChild(
1374
            $infAdic,
1375
            "infAdFisco",
1376
            $std->infAdFisco,
1377
            false,
1378
            "Informações Adicionais de Interesse do Fisco"
1379
        );
1380
        $this->dom->addChild(
1381
            $infAdic,
1382
            "infCpl",
1383
            $std->infCpl,
1384
            false,
1385
            "Informações Complementares de interesse do Contribuinte"
1386
        );
1387
        $this->infAdic = $infAdic;
1388
        return $infAdic;
1389
    }
1390
1391
    /**
1392
     * tagautXML
@@ 1402-1426 (lines=25) @@
1399
     *
1400
     * @return DOMElement
1401
     */
1402
    public function tagautXML(stdClass $std)
1403
    {
1404
        $possible = [
1405
            'CNPJ',
1406
            'CPF'
1407
        ];
1408
        $std = $this->equilizeParameters($std, $possible);
1409
        $autXML = $this->dom->createElement("autXML");
1410
        $this->dom->addChild(
1411
            $autXML,
1412
            "CNPJ",
1413
            $std->CNPJ,
1414
            false,
1415
            "CNPJ do autorizado"
1416
        );
1417
        $this->dom->addChild(
1418
            $autXML,
1419
            "CPF",
1420
            $std->CPF,
1421
            false,
1422
            "CPF do autorizado"
1423
        );
1424
        $this->autXML[] = $autXML;
1425
        return $this->autXML;
1426
    }
1427
1428
    /**
1429
     * buildInfModal