| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | public function get($uuid) |
||
| 40 | { |
||
| 41 | $scenario = $this->scenarioService->getRepository()->findOneBy(['uuid' => $uuid]); |
||
| 42 | |||
| 43 | if (!$scenario) { |
||
| 44 | throw new NotFoundHttpException('Scenario not found.'); |
||
| 45 | } |
||
| 46 | |||
| 47 | $forms = $this->scenarioService->getForms($scenario); |
||
| 48 | |||
| 49 | foreach ($forms as $key => $value) { |
||
| 50 | $forms[$key] = $value->toObject(); |
||
| 51 | } |
||
| 52 | |||
| 53 | $response = new JsonResponse($forms); |
||
| 54 | |||
| 55 | return $response; |
||
| 56 | } |
||
| 58 |
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