Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
33 | protected function execSearchRequest($query, $scope) |
||
34 | { |
||
35 | $url = $this->getResponse()->hasBookmarks() ? |
||
36 | UrlBuilder::RESOURCE_SEARCH_WITH_PAGINATION : |
||
37 | UrlBuilder::RESOURCE_SEARCH; |
||
38 | |||
39 | $requestOptions = [ |
||
40 | 'scope' => $scope, |
||
41 | 'query' => $query, |
||
42 | ]; |
||
43 | |||
44 | $this->get($url, $requestOptions); |
||
45 | |||
46 | return new SearchResponse( |
||
47 | $this->getResponse()->getRawData() |
||
48 | ); |
||
66 |