Code Duplication    Length = 9-9 lines in 2 locations

src/InMemoryRepository.php 1 location

@@ 278-286 (lines=9) @@
275
    /**
276
     * @return EntityChangedEvent
277
     */
278
    protected function getEvent()
279
    {
280
        if (null === $this->event) {
281
            $this->event = new EntityChangedEvent();
282
            $this->event->setTarget($this);
283
        }
284
285
        return $this->event;
286
    }
287
288
    /**
289
     * @param EntityInterface $createdEntity

src/Repository.php 1 location

@@ 286-294 (lines=9) @@
283
    /**
284
     * @return EntityChangedEvent
285
     */
286
    protected function getEvent()
287
    {
288
        if (null === $this->event) {
289
            $this->event = new EntityChangedEvent();
290
            $this->event->setTarget($this);
291
        }
292
293
        return $this->event;
294
    }
295
296
    /**
297
     * @param EntityInterface $createdEntity