Code Duplication    Length = 10-10 lines in 4 locations

src/Factories/EvtMovOpFin.php 2 locations

@@ 761-770 (lines=10) @@
758
                    $Proprietarios->appendChild($InfoNascimento);
759
                }
760
                
761
                foreach ($p->reportavel as $r) {
762
                    $Reportavel = $this->dom->createElement("Reportavel");
763
                    $this->dom->addChild(
764
                        $Reportavel,
765
                        "Pais",
766
                        $r->pais,
767
                        true
768
                    );
769
                    $Proprietarios->appendChild($Reportavel);
770
                }
771
                $ideDeclarado->appendChild($Proprietarios);
772
            }
773
        }
@@ 833-842 (lines=10) @@
830
                if (!empty($c->infoconta)) {
831
                    $ic = $c->infoconta;
832
                    $infoConta = $this->dom->createElement("infoConta");
833
                    foreach ($ic->reportavel as $r) {
834
                        $Reportavel = $this->dom->createElement("Reportavel");
835
                        $this->dom->addChild(
836
                            $Reportavel,
837
                            "Pais",
838
                            $r->pais,
839
                            true
840
                        );
841
                        $infoConta->appendChild($Reportavel);
842
                    }
843
                    $this->dom->addChild(
844
                        $infoConta,
845
                        "tpConta",

src/Factories/EvtMovOpFinAnual.php 2 locations

@@ 770-779 (lines=10) @@
767
                }
768
                
769
                
770
                foreach ($p->reportavel as $r) {
771
                    $Reportavel = $this->dom->createElement("Reportavel");
772
                    $this->dom->addChild(
773
                        $Reportavel,
774
                        "Pais",
775
                        $r->pais,
776
                        true
777
                    );
778
                    $Proprietarios->appendChild($Reportavel);
779
                }
780
                $ideDeclarado->appendChild($Proprietarios);
781
            }
782
        }
@@ 853-862 (lines=10) @@
850
                if (!empty($c->infoconta)) {
851
                    $ic = $c->infoconta;
852
                    $infoConta = $this->dom->createElement("infoConta");
853
                    foreach ($ic->reportavel as $r) {
854
                        $Reportavel = $this->dom->createElement("Reportavel");
855
                        $this->dom->addChild(
856
                            $Reportavel,
857
                            "Pais",
858
                            $r->pais,
859
                            true
860
                        );
861
                        $infoConta->appendChild($Reportavel);
862
                    }
863
                    $this->dom->addChild(
864
                        $infoConta,
865
                        "tpConta",