| @@ 302-309 (lines=8) @@ | ||
| 299 | ||
| 300 | $pair = $this->pairs->get($index); |
|
| 301 | ||
| 302 | if ($map->contains($newKey)){ |
|
| 303 | $map = $map->put( |
|
| 304 | $newKey, |
|
| 305 | $map->get($newKey)->add($pair) |
|
| 306 | ); |
|
| 307 | } else { |
|
| 308 | $map = $map->put($newKey, new Sequence($pair)); |
|
| 309 | } |
|
| 310 | } |
|
| 311 | ||
| 312 | return $map; |
|
| @@ 231-238 (lines=8) @@ | ||
| 228 | ); |
|
| 229 | } |
|
| 230 | ||
| 231 | if ($map->contains($key)){ |
|
| 232 | $map = $map->put( |
|
| 233 | $key, |
|
| 234 | $map->get($key)->add($value) |
|
| 235 | ); |
|
| 236 | } else { |
|
| 237 | $map = $map->put($key, new Sequence($value)); |
|
| 238 | } |
|
| 239 | } |
|
| 240 | ||
| 241 | return $map; |
|