-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Class and Helper Functions #15
base: master
Are you sure you want to change the base?
Conversation
…te the base58_encode and base58_decode functions.
@@ -0,0 +1,33 @@ | |||
<?php | |||
|
|||
if (false === function_exists('base58_encode')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need in false ===
, it looks weird. I think
if (!function_exists('base58_encode'))
Is 100% enough and much more readable :)
Also I think there should be some usage example in README.md. In common, looks great! 👍 |
…ed to add unit tests for these methods.
document methods and add unit tests.
You shouldn't really define these functions in the global namespace. Put them in the use function StephenHill\base58_encode;
use function StephenHill\base58_decode; |
This pull request adds the following classes:
and adds the following functions:
This pull request is directly related to issue #14.
The master branch will be tagged with v1.2 when this branch is merged.
Still todo is document the changes in readme.md.