Code Duplication    Length = 9-14 lines in 2 locations

src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass13.php 2 locations

@@ 319-327 (lines=9) @@
316
                /**
317
                 * @var FareFamily $item
318
                 */
319
                foreach ($fareFamily as $item) {
320
                    $po = new PricingOptionGroup(PricingOptionKey::OPTION_FARE_FAMILY);
321
                    $po->optionDetail = new OptionDetail([['FF' => $item->fareFamily]]);
322
                    $po->paxSegTstReference = new PaxSegTstReference($item->paxSegRefs);
323
324
                    $opt[] = $po;
325
                }
326
            } else {
327
                $po = new PricingOptionGroup(PricingOptionKey::OPTION_FARE_FAMILY);
328
                $po->optionDetail = new OptionDetail([['FF' => $fareFamily]]);
329
330
                $opt[] = $po;
@@ 649-662 (lines=14) @@
646
    {
647
        $opt = [];
648
        if (!empty($zapOffs)) {
649
            foreach ($zapOffs as $zapOff) {
650
                $po = new PricingOptionGroup(PricingOptionKey::OPTION_ZAP_OFF);
651
652
                $po->penDisInformation = new PenDisInformation(
653
                    PenDisInformation::QUAL_ZAPOFF_DISCOUNT,
654
                    [$zapOff]
655
                );
656
657
                if (!empty($zapOff->paxSegRefs)) {
658
                    $po->paxSegTstReference = new PaxSegTstReference($zapOff->paxSegRefs);
659
                }
660
661
                $opt[] = $po;
662
            }
663
        }
664
665
        return $opt;