| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function project(ReadModelProjector $projector): ReadModelProjector |
||
| 14 | { |
||
| 15 | $projector->fromStream('event_stream') |
||
| 16 | ->when([ |
||
| 17 | BookWasCreated::class => function ($state, BookWasCreated $event) { |
||
| 18 | /** @var BookReadModel $readModel */ |
||
| 19 | $readModel = $this->readModel(); |
||
| 20 | $readModel->stack('insert', [ |
||
| 21 | 'id' => $event->userId()->toString(), |
||
| 22 | 'name' => $event->name()->toString(), |
||
| 23 | 'email' => $event->emailAddress()->toString(), |
||
| 24 | ]); |
||
| 29 |
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