Skip to content

Conversation

@igordrnobrega
Copy link

Problem
I think is a problem to have transport method hardcoded in line 81 cause it removes the flexibility of the code.

Solution
I'm adding the viability of setting it in the constructor without the need of creating or setting a new client for it and letting the class handle the client.
I also made some fix on some standards like optional parameters at the end of function declaration and type hinted $method in doRequest function

Choose a reason for hiding this comment

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

Why are you using yield here?

Copy link
Author

Choose a reason for hiding this comment

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

Data providers do not indeed need an array as a return, but an iterator can fit better for making them a little more readable.

Choose a reason for hiding this comment

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

Your code here doesn't match the constructor signature.

@NoelDavies
Copy link

@igordrnobrega, any updates to the PR review above?

@igordrnobrega igordrnobrega force-pushed the feature/transport-method branch from d3269e2 to 82218c8 Compare January 28, 2020 22:26
@igordrnobrega
Copy link
Author

Sorry for the, almost, 2 months delay on this, but I was really busy this end of the year.

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