Code Duplication    Length = 23-23 lines in 2 locations

src/Factories/EvtMovOpFin.php 1 location

@@ 874-896 (lines=23) @@
871
                        true
872
                    );
873
874
                    if (!empty($ic->intermediario)) {
875
                        $i = $ic->intermediario;
876
                        $Intermediario = $this->dom->createElement("Intermediario");
877
                        $this->dom->addChild(
878
                            $Intermediario,
879
                            "GIIN",
880
                            !empty($i->giin) ? $i->giin : null,
881
                            false
882
                        );
883
                        $this->dom->addChild(
884
                            $Intermediario,
885
                            "tpNI",
886
                            !empty($i->tpni) ? $i->tpni : null,
887
                            false
888
                        );
889
                        $this->dom->addChild(
890
                            $Intermediario,
891
                            "NIIntermediario",
892
                            !empty($i->niintermediario) ? $i->niintermediario : null,
893
                            false
894
                        );
895
                        $infoConta->appendChild($Intermediario);
896
                    }
897
                    $this->dom->addChild(
898
                        $infoConta,
899
                        "NoTitulares",

src/Factories/EvtMovOpFinAnual.php 1 location

@@ 894-916 (lines=23) @@
891
                        true
892
                    );
893
894
                    if (!empty($ic->intermediario)) {
895
                        $i = $ic->intermediario;
896
                        $Intermediario = $this->dom->createElement("Intermediario");
897
                        $this->dom->addChild(
898
                            $Intermediario,
899
                            "GIIN",
900
                            !empty($i->giin) ? $i->giin : null,
901
                            false
902
                        );
903
                        $this->dom->addChild(
904
                            $Intermediario,
905
                            "tpNI",
906
                            !empty($i->tpni) ? $i->tpni : null,
907
                            false
908
                        );
909
                        $this->dom->addChild(
910
                            $Intermediario,
911
                            "NIIntermediario",
912
                            !empty($i->niintermediario) ? $i->niintermediario : null,
913
                            false
914
                        );
915
                        $infoConta->appendChild($Intermediario);
916
                    }
917
                    $this->dom->addChild(
918
                        $infoConta,
919
                        "NoTitulares",