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

Refactored to comply with PSR-4 #15

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

mstralka
Copy link

I refactored the package names and fixed the unit tests so it will comply with PSR-4 naming. This fixes #13

@@ -61,7 +61,7 @@ public function __construct($apiKey, Context $context, Host $host = null, $apiVe
$this->host = $host;
}
if ($apiVersion == null) {
$this->apiVersion = '5.0';
$this->apiVersion = '5.3';
Copy link

@yakushevi yakushevi May 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mstralka Tested this and unfortunately nameapi do not have a /5.3/ endpoint and the requests return 404.
You should revert it back to "5.0".

You can find a similar commit from 2017: f2ff68f

Edit: Solved it by changing the host from rc50-api.nameapi.org to rc53-api.nameapi.org so you should probably disregard this comment.

…ied the PersonNameParserService to use these functions because the API throws a 500 exception if the payload has attributes with NULL values.
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.

Package does not comply with PSR-4
2 participants