-
Notifications
You must be signed in to change notification settings - Fork 406
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
Add Telepen/Telepen Numeric #188
Conversation
Minor corrections to construction, and comments
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.
I would be happy to add Telepen to this library. Could you look at my comments and improve the code a bit? Then I can add it to the library.
src/Types/TypeTelepen.php
Outdated
define('TELEPEN_START_CHAR', '_'); | ||
define('TELEPEN_STOP_CHAR', 'z'); | ||
define('TELEPEN_ALPHA', 'alpha'); | ||
define('TELEPEN_NUMERIC', 'numeric'); |
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.
I don't like these broad define's in de codebase. I think these can be private constants in the class itself, so it is encapsuled from the rest of the application.
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.
changed to const
|
||
private function createTelepenConversionTable() | ||
{ | ||
$this->telepen_lookup_table = [ |
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.
Can this be formatted better? Can you also provide a comment about how this lookup table works?
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.
Small amount of explanation added to table creation, and grouped items into consistent rows of 4 items
Thanks! |
Add support for Telepen / Telepen numeric codes