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

Fix bugs #128 and #129 in Stations.php #130

Merged
merged 2 commits into from
Apr 16, 2018

Conversation

Bertware
Copy link
Member

@Bertware Bertware commented Apr 14, 2018

Bug #128 fixed: Dashes and spaces are correctly sanitized
Bug #129 fixed: When an exact match is found, the exact match will be at index 0 in the array. Partial matches can be found in the next indices.

This PR includes fixes for both issues, tests to ensure these issues won't occur again, and general improvements to readability and remove code duplication by moving 2 complex if-statements to their own function.

PHPUnit might fail on a broken dependency for PHP 7.2:
lanthaler/JsonLD#88
lanthaler/JsonLD#92

Dashes and spaces are correctly sanitized #128
@Bertware Bertware added the bug label Apr 14, 2018
@Bertware Bertware requested a review from pietercolpaert April 14, 2018 13:44
@pietercolpaert
Copy link
Member

This is a neat PR! Thanks!

@pietercolpaert pietercolpaert merged commit 03f68fb into master Apr 16, 2018
@pietercolpaert pietercolpaert deleted the bug/128-129-exact-matches-dashes branch April 16, 2018 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants