Code Duplication    Length = 9-10 lines in 2 locations

plugin/sepe/ws/Sepe.php 2 locations

@@ 236-245 (lines=10) @@
233
        $contactAction = $crearAccionInput->ACCION_FORMATIVA->DESCRIPCION_ACCION->CONTACTO_ACCION;
234
      
235
236
        if (empty($actionOrigin) || empty($actionCode)) {
237
            error_log('2 - error en parametros - l244');
238
            return array(
239
                "RESPUESTA_OBT_ACCION" => array(
240
                    "CODIGO_RETORNO"=>"2",
241
                    "ETIQUETA_ERROR"=>"Error en parametro",
242
                    "ACCION_FORMATIVA"=> $crearAccionInputArray['ACCION_FORMATIVA']
243
                )
244
            );
245
        }
246
247
        // Comprobamos si existen datos almacenados previamente
248
        $table = Database::get_main_table('plugin_sepe_actions');
@@ 700-708 (lines=9) @@
697
        $actionOrigin = $obtenerAccionInput->ID_ACCION->ORIGEN_ACCION;
698
        $actionCode = $obtenerAccionInput->ID_ACCION->CODIGO_ACCION;
699
700
        if (empty($actionOrigin) || empty($actionCode)) {
701
            return array(
702
                "RESPUESTA_OBT_ACCION" => array(
703
                    "CODIGO_RETORNO" => "2",
704
                    "ETIQUETA_ERROR" => "Error en parametro",
705
                    "ACCION_FORMATIVA" => ""
706
                )
707
            );
708
        }
709
710
        $table = Database::get_main_table('plugin_sepe_actions');
711
        $tableCenters = Database::get_main_table('plugin_sepe_centers');