Code Duplication    Length = 10-12 lines in 2 locations

src/eXpansion/Bundle/Maps/Services/JukeboxService.php 2 locations

@@ 154-165 (lines=12) @@
151
     *
152
     * @return bool
153
     */
154
    private function remove(Map $map)
155
    {
156
        foreach ($this->mapQueue as $idx => $jukeboxMap) {
157
            if ($jukeboxMap->getMap() === $map) {
158
                unset($this->mapQueue[$idx]);
159
160
                return true;
161
            }
162
        }
163
164
        return false;
165
    }
166
167
168
    /**
@@ 189-198 (lines=10) @@
186
     * @param Map $map
187
     * @return bool
188
     */
189
    private function checkMap(Map $map)
190
    {
191
        foreach ($this->mapQueue as $jukeboxMap) {
192
            if ($jukeboxMap->getMap() === $map) {
193
                return true;
194
            }
195
        }
196
197
        return false;
198
    }
199
200
    /**
201
     *