| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function __invoke(Request $request) |
||
| 21 | { |
||
| 22 | $domain = $this->domainService->getDomain($request); |
||
| 23 | $peopleDomain = $this->manager->getRepository(PeopleDomain::class)->findOneBy(['domain' => $domain]); |
||
| 24 | |||
| 25 | if (!$peopleDomain) { |
||
| 26 | return new Response('', Response::HTTP_NOT_FOUND); |
||
| 27 | } |
||
| 28 | |||
| 29 | $theme = $peopleDomain->getTheme(); |
||
| 30 | $css = ':root{' . PHP_EOL; |
||
| 31 | foreach ($theme->getColors(true) as $index => $color) { |
||
| 32 | $css .= ' --q-' . $index . ': ' . $color . ';' . PHP_EOL; |
||
| 33 | $css .= ' --' . $index . ': ' . $color . ';' . PHP_EOL; |
||
| 34 | } |
||
| 35 | $css .= '}'; |
||
| 36 | return new Response($css, Response::HTTP_OK, [ |
||
| 37 | 'Content-Type' => 'text/css', |
||
| 38 | ]); |
||
| 41 |
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