| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | protected function execSearchRequest($query, $scope) |
||
| 38 | { |
||
| 39 | $url = $this->response->hasBookmarks() ? |
||
| 40 | UrlBuilder::RESOURCE_SEARCH_WITH_PAGINATION : |
||
| 41 | UrlBuilder::RESOURCE_SEARCH; |
||
| 42 | |||
| 43 | $requestOptions = [ |
||
| 44 | 'scope' => $scope, |
||
| 45 | 'query' => $query, |
||
| 46 | ]; |
||
| 47 | |||
| 48 | $this->get($requestOptions, $url); |
||
| 49 | |||
| 50 | return new SearchResponse( |
||
| 51 | $this->response->getRawData() |
||
| 52 | ); |
||
| 53 | } |
||
| 54 | |||
| 70 |