@@ -46,9 +46,9 @@ |
||
| 46 | 46 | public function search($query, $limit = 30, $start = 0, $sort = null) |
| 47 | 47 | { |
| 48 | 48 | $queryParameters = Query::createFromPairs([ |
| 49 | - 'q' => $query, |
|
| 50 | - 'start' => (string) $start, |
|
| 51 | - 'limit' => (string) $limit, |
|
| 49 | + 'q' => $query, |
|
| 50 | + 'start' => (string) $start, |
|
| 51 | + 'limit' => (string) $limit, |
|
| 52 | 52 | ]); |
| 53 | 53 | $queryString = str_replace('+', '%2B', (string) $queryParameters); |
| 54 | 54 | $offerQueryUri = $this->searchLocation->withQuery($queryString); |
@@ -47,10 +47,10 @@ discard block |
||
| 47 | 47 | { |
| 48 | 48 | $queryParameters = Query::createFromPairs([ |
| 49 | 49 | 'q' => $query, |
| 50 | - 'start' => (string) $start, |
|
| 51 | - 'limit' => (string) $limit, |
|
| 50 | + 'start' => (string)$start, |
|
| 51 | + 'limit' => (string)$limit, |
|
| 52 | 52 | ]); |
| 53 | - $queryString = str_replace('+', '%2B', (string) $queryParameters); |
|
| 53 | + $queryString = str_replace('+', '%2B', (string)$queryParameters); |
|
| 54 | 54 | $offerQueryUri = $this->searchLocation->withQuery($queryString); |
| 55 | 55 | |
| 56 | 56 | $offerRequest = new Request('GET', $offerQueryUri); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | $offerIds = array_reduce( |
| 64 | 64 | $searchResponseData->{'member'}, |
| 65 | - function (OfferIdentifierCollection $offerIds, $item) { |
|
| 65 | + function(OfferIdentifierCollection $offerIds, $item) { |
|
| 66 | 66 | return $offerIds->with( |
| 67 | 67 | $this->offerIdentifier->fromIri(Url::fromNative($item->{'@id'})) |
| 68 | 68 | ); |