| @@ 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 | * |
|