Code Duplication    Length = 8-8 lines in 2 locations

src/BenGorFile/File/Infrastructure/Persistence/InMemory/InMemoryFileRepository.php 2 locations

@@ 103-110 (lines=8) @@
100
    /**
101
     * {@inheritdoc}
102
     */
103
    public function persist(File $aFile)
104
    {
105
        $this->files[$aFile->id()->id()] = $aFile;
106
107
        if ($this->eventBus instanceof FileEventBus) {
108
            $this->handle($aFile->events());
109
        }
110
    }
111
112
    /**
113
     * {@inheritdoc}
@@ 115-122 (lines=8) @@
112
    /**
113
     * {@inheritdoc}
114
     */
115
    public function remove(File $aFile)
116
    {
117
        unset($this->files[$aFile->id()->id()]);
118
119
        if ($this->eventBus instanceof FileEventBus) {
120
            $this->handle($aFile->events());
121
        }
122
    }
123
124
    /**
125
     * {@inheritdoc}