Code Duplication    Length = 9-9 lines in 3 locations

plugin/sepe/ws/Sepe.php 3 locations

@@ 834-842 (lines=9) @@
831
832
                    $obj = new stdClass();
833
834
                    if (!empty($aux['mornings_participants_number']) ||
835
                        !empty($aux['mornings_access_number']) ||
836
                        !empty($aux['morning_total_duration'])
837
                    ) {
838
                        $obj->HORARIO_MANANA = new stdClass();
839
                        $obj->HORARIO_MANANA->NUM_PARTICIPANTES = $aux['mornings_participants_number'];
840
                        $obj->HORARIO_MANANA->NUMERO_ACCESOS = $aux['mornings_access_number'];
841
                        $obj->HORARIO_MANANA->DURACION_TOTAL = $aux['morning_total_duration'];
842
                    }
843
844
                    if (!empty($aux['afternoon_participants_number']) ||
845
                        !empty($aux['afternoon_access_number']) ||
@@ 844-852 (lines=9) @@
841
                        $obj->HORARIO_MANANA->DURACION_TOTAL = $aux['morning_total_duration'];
842
                    }
843
844
                    if (!empty($aux['afternoon_participants_number']) ||
845
                        !empty($aux['afternoon_access_number']) ||
846
                        !empty($aux['afternoon_total_duration'])
847
                    ) {
848
                        $obj->HORARIO_TARDE = new stdClass();
849
                        $obj->HORARIO_TARDE->NUM_PARTICIPANTES = $aux['afternoon_participants_number'];
850
                        $obj->HORARIO_TARDE->NUMERO_ACCESOS = $aux['afternoon_access_number'];
851
                        $obj->HORARIO_TARDE->DURACION_TOTAL = $aux['afternoon_total_duration'];
852
                    }
853
854
                    if (!empty($aux['night_participants_number'])  ||
855
                        !empty($aux['night_access_number'])  ||
@@ 854-862 (lines=9) @@
851
                        $obj->HORARIO_TARDE->DURACION_TOTAL = $aux['afternoon_total_duration'];
852
                    }
853
854
                    if (!empty($aux['night_participants_number'])  ||
855
                        !empty($aux['night_access_number'])  ||
856
                        !empty($aux['night_total_duration'])
857
                    ) {
858
                        $obj->HORARIO_NOCHE = new stdClass();
859
                        $obj->HORARIO_NOCHE->NUM_PARTICIPANTES = $aux['night_participants_number'];
860
                        $obj->HORARIO_NOCHE->NUMERO_ACCESOS = $aux['night_access_number'];
861
                        $obj->HORARIO_NOCHE->DURACION_TOTAL = $aux['night_total_duration'];
862
                    }
863
864
                    if (!empty($aux['attendees_count'])  ||
865
                        !empty($aux['learning_activity_count'])  ||