| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | View Code Duplication | public static function reconstitute(Stream $stream) : self |
|
| 43 | { |
||
| 44 | $user = new self($stream->name()->aggregateId()); |
||
| 45 | $events = $stream->events()->toArray(); |
||
| 46 | foreach ($events as $event) { |
||
| 47 | $user->apply($event); |
||
| 48 | } |
||
| 49 | |||
| 50 | return $user; |
||
| 51 | } |
||
| 52 | |||
| 63 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.