Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function get($uuid) |
||
41 | { |
||
42 | $scenario = $this->scenarioService->getRepository()->findOneBy(['uuid' => $uuid]); |
||
43 | |||
44 | if (!$scenario) { |
||
45 | throw new NotFoundHttpException('Scenario not found.'); |
||
46 | } |
||
47 | |||
48 | if (Scenario::TYPE_URL !== $scenario->getType()) { |
||
49 | throw new NotFoundHttpException('Scenario url not found.'); |
||
50 | } |
||
51 | |||
52 | $response = new RedirectResponse($scenario->getConfig()['url']); |
||
53 | |||
54 | return $response; |
||
55 | } |
||
57 |
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