Skip to content

Commit

Permalink
Update PixabayClient.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zoonman committed Aug 23, 2015
1 parent f6e92e4 commit ee83cdb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Zoonman/Pixabay/PixabayClient.php
Original file line number Diff line number Diff line change
@@ -77,7 +77,8 @@ public function __construct(array $options)
* @param array $options
* @param bool $resetOptions
*/
private function parseOptions(array $options, $resetOptions = false) {
private function parseOptions(array $options, $resetOptions = false)
{
foreach ($this->optionsList as $option) {
if (isset($options[$option])) {
$this->options[$option] = $options[$option];
@@ -95,7 +96,8 @@ private function parseOptions(array $options, $resetOptions = false) {
* @param bool $resetOptions
* @return mixed
*/
public function get(array $options = [], $returnObject = false, $resetOptions = false) {
public function get(array $options = [], $returnObject = false, $resetOptions = false)
{
$this->parseOptions($options, $resetOptions);
$response = $this->client->get(null, ['query' => $this->options]);
return $response->json(['object' => $returnObject]);

0 comments on commit ee83cdb

Please sign in to comment.