Code Duplication    Length = 16-16 lines in 2 locations

src/Factories/EvtMovOpFin.php 1 location

@@ 972-987 (lines=16) @@
969
                    );
970
                    $infoConta->appendChild($BalancoConta);
971
                    
972
                    foreach ($ic->pgtosacum as $pg) {
973
                        $PgtosAcum = $this->dom->createElement("PgtosAcum");
974
                        $this->dom->addChild(
975
                            $PgtosAcum,
976
                            "tpPgto",
977
                            $pg->tppgto,
978
                            true
979
                        );
980
                        $this->dom->addChild(
981
                            $PgtosAcum,
982
                            "totPgtosAcum",
983
                            number_format($pg->totpgtosacum, 2, ',', ''),
984
                            true
985
                        );
986
                        $infoConta->appendChild($PgtosAcum);
987
                    }
988
                    $Conta->appendChild($infoConta);
989
                }
990
                $movOpFin->appendChild($Conta);

src/Factories/EvtMovOpFinAnual.php 1 location

@@ 968-983 (lines=16) @@
965
                    );
966
                    $infoConta->appendChild($BalancoConta);
967
                    
968
                    foreach ($ic->pgtosacum as $pg) {
969
                        $PgtosAcum = $this->dom->createElement("PgtosAcum");
970
                        $this->dom->addChild(
971
                            $PgtosAcum,
972
                            "tpPgto",
973
                            $pg->tppgto,
974
                            true
975
                        );
976
                        $this->dom->addChild(
977
                            $PgtosAcum,
978
                            "totPgtosAcum",
979
                            number_format($pg->totpgtosacum, 2, ',', ''),
980
                            true
981
                        );
982
                        $infoConta->appendChild($PgtosAcum);
983
                    }
984
                    $Conta->appendChild($infoConta);
985
                }
986
                $movOpFin->appendChild($Conta);