Code Duplication    Length = 5-6 lines in 2 locations

src/Repository/Mapping/UpdateConflicts.php 2 locations

@@ 80-85 (lines=6) @@
77
78
        // Mark all as resolved
79
        foreach ($this->repositoryPaths as $repositoryPath) {
80
            if ($this->conflicts->has($repositoryPath)) {
81
                $conflict = $this->conflicts->get($repositoryPath);
82
                $this->conflicts->remove($repositoryPath);
83
                $this->removedConflicts[$repositoryPath] = $conflict->getMappings();
84
                $conflict->resolve();
85
            }
86
        }
87
88
        $moduleConflicts = $this->conflictDetector->detectConflicts($this->repositoryPaths);
@@ 111-115 (lines=5) @@
108
    public function rollback()
109
    {
110
        foreach ($this->addedConflicts as $repositoryPath) {
111
            if ($this->conflicts->has($repositoryPath)) {
112
                $conflict = $this->conflicts->get($repositoryPath);
113
                $conflict->resolve();
114
                $this->conflicts->remove($repositoryPath);
115
            }
116
        }
117
118
        foreach ($this->removedConflicts as $repositoryPath => $conflictingMappings) {