Code Duplication    Length = 27-27 lines in 2 locations

src/Make.php 2 locations

@@ 1350-1376 (lines=27) @@
1347
     *
1348
     * @return \DOMElement
1349
     */
1350
    public function noPeriodoTag($tpPer = '', $dIni = '', $dFim = '')
1351
    {
1352
        $identificador = '#75 <noPeriodo> - ';
1353
        $this->noPeriodo = $this->dom->createElement('noPeriodo');
1354
        $this->dom->addChild(
1355
            $this->noPeriodo,
1356
            'tpPer',
1357
            $tpPer,
1358
            true,
1359
            $identificador . 'Tipo de data/perĂ­odo programado para entrega'
1360
        );
1361
        $this->dom->addChild(
1362
            $this->noPeriodo,
1363
            'dIni',
1364
            $dIni,
1365
            true,
1366
            $identificador . 'Data inicial'
1367
        );
1368
        $this->dom->addChild(
1369
            $this->noPeriodo,
1370
            'dFim',
1371
            $dFim,
1372
            true,
1373
            $identificador . 'Data final'
1374
        );
1375
        return $this->noPeriodo;
1376
    }
1377
1378
    /**
1379
     * Gera as tags para o elemento: "semHora" (Entrega sem hora definida)
@@ 1449-1475 (lines=27) @@
1446
     *
1447
     * @return \DOMElement
1448
     */
1449
    public function noInterTag($tpHor = '', $hIni = '', $hFim = '')
1450
    {
1451
        $identificador = '#84 <noInter> - ';
1452
        $this->noInter = $this->dom->createElement('noInter');
1453
        $this->dom->addChild(
1454
            $this->noInter,
1455
            'tpHor',
1456
            $tpHor,
1457
            true,
1458
            $identificador . 'Tipo de hora'
1459
        );
1460
        $this->dom->addChild(
1461
            $this->noInter,
1462
            'hIni',
1463
            $hIni,
1464
            true,
1465
            $identificador . 'Hora inicial'
1466
        );
1467
        $this->dom->addChild(
1468
            $this->noInter,
1469
            'hFim',
1470
            $hFim,
1471
            true,
1472
            $identificador . 'Hora final'
1473
        );
1474
        return $this->noInter;
1475
    }
1476
1477
    /**
1478
     * Gera as tags para o elemento: "ObsCont" (Campo de uso livre do contribuinte)