Skip to content

Limpiar GenerateHash()#4

Open
joanhey wants to merge 1 commit intoPAYCOMET:masterfrom
joanhey:generate-hash
Open

Limpiar GenerateHash()#4
joanhey wants to merge 1 commit intoPAYCOMET:masterfrom
joanhey:generate-hash

Conversation

@joanhey
Copy link
Copy Markdown

@joanhey joanhey commented Mar 3, 2022

  • Quitar código repetito
  • Organizar, limpiar y optimizar el método.

Sólo se convierte 1 vez a int la variable $operationtype.
El bucle if ... else se debía recorrer por completo, con switch() no es necesario.

El código es legible ahora y fácil para próximos cambios.

Quitar código repetito,  organizar, limpiar y optimizar el método
@joanhey
Copy link
Copy Markdown
Author

joanhey commented Mar 3, 2022

Si aceptan los PRs enviaré más.
Actualmente tengo poco tiempo disponible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant