| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 3 |
| Changes | 4 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 59 | public static function reconstituteFromEvents(AggregateRootId $aggregateRootId, Generator $events): static |
||
| 60 | { |
||
| 61 | $aggregateRoot = new static($aggregateRootId); |
||
| 62 | |||
| 63 | 14 | /** @var object $event */ |
|
| 64 | foreach ($events as $event) { |
||
| 65 | 14 | $aggregateRoot->apply($event); |
|
| 66 | 14 | } |
|
| 67 | |||
| 68 | 14 | $aggregateRoot->aggregateRootVersion = $events->getReturn() ?: 0; |
|
| 69 | |||
| 70 | return $aggregateRoot; |
||
| 71 | } |
||
| 73 |
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