Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 87-94 (lines=8) @@
84
    /**
85
     * {@inheritdoc}
86
     */
87
    public function persist(File $aFile)
88
    {
89
        $this->files[$aFile->id()->id()] = $aFile;
90
91
        if ($this->eventBus instanceof FileEventBus) {
92
            $this->handle($aFile->events());
93
        }
94
    }
95
96
    /**
97
     * {@inheritdoc}
@@ 99-106 (lines=8) @@
96
    /**
97
     * {@inheritdoc}
98
     */
99
    public function remove(File $aFile)
100
    {
101
        unset($this->files[$aFile->id()->id()]);
102
103
        if ($this->eventBus instanceof FileEventBus) {
104
            $this->handle($aFile->events());
105
        }
106
    }
107
108
    /**
109
     * {@inheritdoc}