Code Duplication    Length = 9-21 lines in 2 locations

src/Make.php 2 locations

@@ 2645-2665 (lines=21) @@
2642
     *
2643
     * @return \DOMElement
2644
     */
2645
    public function compTag($xNome = '', $vComp = '')
2646
    {
2647
        $identificador = '#65 <pass> - ';
2648
        $this->comp[] = $this->dom->createElement('Comp');
2649
        $posicao = (integer)count($this->comp) - 1;
2650
        $this->dom->addChild(
2651
            $this->comp[$posicao],
2652
            'xNome',
2653
            $xNome,
2654
            false,
2655
            $identificador . 'Nome do componente'
2656
        );
2657
        $this->dom->addChild(
2658
            $this->comp[$posicao],
2659
            'vComp',
2660
            $vComp,
2661
            false,
2662
            $identificador . 'Valor do componente'
2663
        );
2664
        return $this->comp[$posicao];
2665
    }
2666
2667
    /**
2668
     * Tag raiz do documento xml
@@ 3224-3232 (lines=9) @@
3221
     * @param string $CPF
3222
     * @return mixed
3223
     */
3224
    public function motoTag($xNome = '', $CPF = '')
3225
    {
3226
        $identificador = '#43 <moto> - ';
3227
        $this->moto[] = $this->dom->createElement('moto');
3228
        $posicao = (integer)count($this->moto) - 1;
3229
        $this->dom->addChild(
3230
            $this->moto[$posicao],
3231
            'xNome',
3232
            $xNome,
3233
            false,
3234
            $identificador . 'Nome do motorista'
3235
        );