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