Code Duplication    Length = 13-13 lines in 2 locations

src/Amadeus/Client/Struct/Ticket/RepricePnrWithBookingClass.php 1 location

@@ 317-329 (lines=13) @@
314
     * @param AwardPricing $awardPricing
315
     * @return PricingOption
316
     */
317
    protected function loadAwardPricing($awardPricing)
318
    {
319
        $po = new PricingOption(PricingOptionKey::OPTION_AWARD);
320
321
        $po->carrierInformation = new CarrierInformation($awardPricing->carrier);
322
323
        $po->frequentFlyerInformation = new FrequentFlyerInformation();
324
        $po->frequentFlyerInformation->frequentTravellerDetails[] = new FrequentTravellerDetails(
325
            $awardPricing->tierLevel
326
        );
327
328
        return $po;
329
    }
330
331
    /**
332
     * @param FareBasis[] $pricingsFareBasis

src/Amadeus/Client/Struct/Fare/PricePNRWithBookingClass13.php 1 location

@@ 372-384 (lines=13) @@
369
     * @param AwardPricing $awardPricing
370
     * @return PricingOptionGroup
371
     */
372
    protected static function loadAwardPricing($awardPricing)
373
    {
374
        $po = new PricingOptionGroup(PricingOptionKey::OPTION_AWARD_PRICING);
375
376
        $po->carrierInformation = new CarrierInformation($awardPricing->carrier);
377
378
        $po->frequentFlyerInformation = new FrequentFlyerInformation();
379
        $po->frequentFlyerInformation->frequentTravellerDetails[] = new FrequentTravellerDetails(
380
            $awardPricing->tierLevel
381
        );
382
383
        return $po;
384
    }
385
386
    /**
387
     * Load OB Fees