| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 11 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function filter(Collection $tickets): Collection |
||
| 32 | { |
||
| 33 | $configuration = $this->configuration; |
||
| 34 | $today = new \DateTime(); |
||
| 35 | |||
| 36 | $p = function (DiscountCode $discountCode) use ($configuration, $today) { |
||
| 37 | $metadata = $configuration->getDiscountCodeMetadata($discountCode->getCode()); |
||
| 38 | return $metadata->isAvailableOn($today); |
||
| 39 | }; |
||
| 40 | |||
| 41 | return $tickets->filter($p); |
||
| 42 | } |
||
| 43 | } |
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