Skip to content
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

Merged
merged 3 commits into from
Sep 16, 2023

Conversation

illuminatusds
Copy link
Contributor

Add support for Telepen / Telepen numeric codes

illuminatusds and others added 2 commits September 7, 2023 18:07
Minor corrections to construction, and comments
Copy link
Member

@casperbakker casperbakker left a 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.

Comment on lines 22 to 25
define('TELEPEN_START_CHAR', '_');
define('TELEPEN_STOP_CHAR', 'z');
define('TELEPEN_ALPHA', 'alpha');
define('TELEPEN_NUMERIC', 'numeric');
Copy link
Member

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.

Copy link
Contributor Author

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 = [
Copy link
Member

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?

Copy link
Contributor Author

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

@casperbakker
Copy link
Member

Thanks!

@casperbakker casperbakker merged commit 8f45f3f into picqer:main Sep 16, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants