Code Duplication    Length = 5-5 lines in 2 locations

system/vendor/swift/Swift/Message.php 2 locations

@@ 529-533 (lines=5) @@
526
    try {
527
      switch ($child->getLevel())
528
      {
529
        case Swift_Message_Mime::LEVEL_ALTERNATIVE:
530
          $sign = (strtolower($child->getContentType()) == "text/plain") ? -1 : 1;
531
          $id = $this->getReference("parent", "alternative")->addChild($child, $id, $sign);
532
          $this->setReference("alternative", $id, $child);
533
          break;
534
        case Swift_Message_Mime::LEVEL_RELATED:
535
          $id = "cid:" . $child->getContentId();
536
          $id = $this->getReference("parent", "related")->addChild($child, $id, 1);
@@ 534-538 (lines=5) @@
531
          $id = $this->getReference("parent", "alternative")->addChild($child, $id, $sign);
532
          $this->setReference("alternative", $id, $child);
533
          break;
534
        case Swift_Message_Mime::LEVEL_RELATED:
535
          $id = "cid:" . $child->getContentId();
536
          $id = $this->getReference("parent", "related")->addChild($child, $id, 1);
537
          $this->setReference("related", $id, $child);
538
          break;
539
        case Swift_Message_Mime::LEVEL_MIXED: default:
540
          $id = $this->getReference("parent", "mixed")->addChild($child, $id, 1);
541
          $this->setReference("mixed", $id, $child);