Code Duplication    Length = 8-8 lines in 2 locations

src/Infrastructure/Projector/ProjectionManager.php 2 locations

@@ 54-61 (lines=8) @@
51
     * @param EventInterface $event
52
     * @throws ProjectorDoesNotExistsException
53
     */
54
    public function project(EventInterface $event)
55
    {
56
        if (!isset($this->projectors[get_class($event)])) {
57
            throw new ProjectorDoesNotExistsException('No Projector found for event ' . get_class($event) . '.');
58
        }
59
60
        $this->projectors[get_class($event)]->handle($event);
61
    }
62
63
    /**
64
     * @param AggregateUuid $uuid
@@ 82-89 (lines=8) @@
79
     * @param EventInterface $event
80
     * @throws ProjectorDoesNotExistsException
81
     */
82
    public function rollback(EventInterface $event)
83
    {
84
        if (!isset($this->projectors[get_class($event)])) {
85
            throw new ProjectorDoesNotExistsException('No Projector found for event ' . get_class($event) . '.');
86
        }
87
88
        $this->projectors[get_class($event)]->rollback($event);
89
    }
90
91
    /**
92
     * @param AggregateUuid $eventUuid