|
@@ 562-565 (lines=4) @@
|
| 559 |
|
try { |
| 560 |
|
switch (true) |
| 561 |
|
{ |
| 562 |
|
case array_key_exists($id, $this->references["alternative"]): |
| 563 |
|
$this->getReference("parent", "alternative")->removeChild($id); |
| 564 |
|
unset($this->references["alternative"][$id]); |
| 565 |
|
break; |
| 566 |
|
case array_key_exists($id, $this->references["related"]): |
| 567 |
|
$this->getReference("parent", "related")->removeChild($id); |
| 568 |
|
unset($this->references["related"][$id]); |
|
@@ 566-569 (lines=4) @@
|
| 563 |
|
$this->getReference("parent", "alternative")->removeChild($id); |
| 564 |
|
unset($this->references["alternative"][$id]); |
| 565 |
|
break; |
| 566 |
|
case array_key_exists($id, $this->references["related"]): |
| 567 |
|
$this->getReference("parent", "related")->removeChild($id); |
| 568 |
|
unset($this->references["related"][$id]); |
| 569 |
|
break; |
| 570 |
|
case array_key_exists($id, $this->references["mixed"]): |
| 571 |
|
$this->getReference("parent", "mixed")->removeChild($id); |
| 572 |
|
unset($this->references["mixed"][$id]); |
|
@@ 570-573 (lines=4) @@
|
| 567 |
|
$this->getReference("parent", "related")->removeChild($id); |
| 568 |
|
unset($this->references["related"][$id]); |
| 569 |
|
break; |
| 570 |
|
case array_key_exists($id, $this->references["mixed"]): |
| 571 |
|
$this->getReference("parent", "mixed")->removeChild($id); |
| 572 |
|
unset($this->references["mixed"][$id]); |
| 573 |
|
break; |
| 574 |
|
default: |
| 575 |
|
throw new Swift_Message_MimeException("Unable to detach part identified by ID '" . $id . "' since it's not registered."); |
| 576 |
|
break; |