Code Duplication    Length = 9-21 lines in 2 locations

src/Make.php 2 locations

@@ 2689-2709 (lines=21) @@
2686
     *
2687
     * @return \DOMElement
2688
     */
2689
    public function compTag($xNome = '', $vComp = '')
2690
    {
2691
        $identificador = '#65 <pass> - ';
2692
        $this->comp[] = $this->dom->createElement('Comp');
2693
        $posicao = (integer)count($this->comp) - 1;
2694
        $this->dom->addChild(
2695
            $this->comp[$posicao],
2696
            'xNome',
2697
            $xNome,
2698
            false,
2699
            $identificador . 'Nome do componente'
2700
        );
2701
        $this->dom->addChild(
2702
            $this->comp[$posicao],
2703
            'vComp',
2704
            $vComp,
2705
            false,
2706
            $identificador . 'Valor do componente'
2707
        );
2708
        return $this->comp[$posicao];
2709
    }
2710
2711
    /**
2712
     * Tag raiz do documento xml
@@ 3269-3277 (lines=9) @@
3266
     * @param string $CPF
3267
     * @return mixed
3268
     */
3269
    public function motoTag($xNome = '', $CPF = '')
3270
    {
3271
        $identificador = '#43 <moto> - ';
3272
        $this->moto[] = $this->dom->createElement('moto');
3273
        $posicao = (integer)count($this->moto) - 1;
3274
        $this->dom->addChild(
3275
            $this->moto[$posicao],
3276
            'xNome',
3277
            $xNome,
3278
            false,
3279
            $identificador . 'Nome do motorista'
3280
        );