Code Duplication    Length = 10-12 lines in 2 locations

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

@@ 197-208 (lines=12) @@
194
     *
195
     * @return bool
196
     */
197
    private function remove(Map $map)
198
    {
199
        foreach ($this->mapQueue as $idx => $jukeboxMap) {
200
            if ($jukeboxMap->getMap() === $map) {
201
                unset($this->mapQueue[$idx]);
202
203
                return true;
204
            }
205
        }
206
207
        return false;
208
    }
209
210
211
    /**
@@ 233-242 (lines=10) @@
230
     *
231
     * @return bool
232
     */
233
    private function checkMap(Map $map)
234
    {
235
        foreach ($this->mapQueue as $jukeboxMap) {
236
            if ($jukeboxMap->getMap() === $map) {
237
                return true;
238
            }
239
        }
240
241
        return false;
242
    }
243
244
    /**
245
     *