Code Duplication    Length = 9-9 lines in 2 locations

src/InMemoryRepository.php 1 location

@@ 246-254 (lines=9) @@
243
    /**
244
     * @return EntityChangedEvent
245
     */
246
    protected function getEvent()
247
    {
248
        if (null === $this->event) {
249
            $this->event = new EntityChangedEvent();
250
            $this->event->setTarget($this);
251
        }
252
253
        return $this->event;
254
    }
255
256
    /**
257
     * @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