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

DOT-4386: YouCan Pay > Fix bug when we generate an Token & documentation #7

Merged
merged 3 commits into from
Nov 3, 2021

Conversation

olyans
Copy link
Contributor

@olyans olyans commented Nov 3, 2021

YouCan Pay > Fix bug when we generate an Token & documentation

@olyans olyans requested a review from kitro November 3, 2021 14:04
@olyans olyans self-assigned this Nov 3, 2021
@@ -35,7 +35,7 @@ protected function parseHeaders($headers)

public function request(string $method, string $endpoint, array $params = [], array $headers = []): Response
{
$curl = curl_init(sprintf($this->getBaseUrl(), $endpoint));
$curl = curl_init(sprintf('%1$s%2$s', $this->getBaseUrl(), $endpoint));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think no need for positional argument, we can just use %s%s' 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@kitro kitro left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍 👍

@olyans olyans merged commit 048d9a0 into master Nov 3, 2021
@kitro kitro deleted the DOT-4386 branch November 3, 2021 14:22
olyans pushed a commit that referenced this pull request Nov 8, 2021
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.

2 participants