| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function indexAction(Request $request) |
||
| 26 | { |
||
| 27 | $factFinderSuggestRequestTransfer = new FactFinderSdkSuggestRequestTransfer(); |
||
| 28 | $query = $request->query->get('query', '*'); |
||
| 29 | |||
| 30 | $factFinderSuggestRequestTransfer->setQuery($query); |
||
| 31 | $factFinderSuggestRequestTransfer->setSid($request->cookies->get(FactFinderConstants::COOKIE_SID_NAME)); |
||
| 32 | |||
| 33 | $response = $this->getFactory() |
||
| 34 | ->getFactFinderClient() |
||
| 35 | ->getSuggestions($factFinderSuggestRequestTransfer); |
||
| 36 | |||
| 37 | if (!$response->getSuggestions()) { |
||
| 38 | return $this->jsonResponse(null, 400); |
||
| 39 | } |
||
| 40 | |||
| 41 | return $this->jsonResponse($response->getSuggestions()); |
||
| 42 | } |
||
| 44 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths