| Conditions | 5 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function __invoke(GetSettings $query): ?Settings |
||
| 36 | { |
||
| 37 | if (null === $query->currency() && null === $query->locale()) { |
||
| 38 | return (new DoctrineSettingsRepository($this->registry)) |
||
| 39 | ->findOne() |
||
| 40 | ; |
||
| 41 | } |
||
| 42 | if (null !== $query->locale()) { |
||
| 43 | return (new DoctrineSettingsRepository($this->registry)) |
||
| 44 | ->findByLocale($query->locale()) |
||
| 45 | ; |
||
| 46 | } |
||
| 47 | if (null !== $query->currency()) { |
||
| 48 | return (new DoctrineSettingsRepository($this->registry)) |
||
| 49 | ->findByCurrency($query->currency()) |
||
| 50 | ; |
||
| 51 | } |
||
| 52 | |||
| 53 | return null; |
||
| 54 | } |
||
| 56 |
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