Skip to content

Conversation

upchuk
Copy link

@upchuk upchuk commented May 27, 2016

Hey. Does this look right? An adapter for the official Elasticsearch PHP library

* @param array $params The array of parameters to use for performing the search.
* @param Client $client The Elasticsearch client.
*/
public function __construct(array $params, $client)
Copy link

Choose a reason for hiding this comment

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

Missing parameter typehint.

Copy link
Author

Choose a reason for hiding this comment

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

Indeed @sstok . Fixed.

@upchuk
Copy link
Author

upchuk commented Jun 9, 2016

@sstok all good?

*
* @var array
*/
private $params;
Copy link
Contributor

Choose a reason for hiding this comment

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

please use 4 spaces for the indentation to match the coding standards of the library

@stof
Copy link
Contributor

stof commented Jun 9, 2016

it would also be great to add some tests

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.

3 participants