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

@@ 361-373 (lines=13) @@
358
     * @param AwardPricing $awardPricing
359
     * @return PricingOptionGroup
360
     */
361
    protected static function loadAwardPricing($awardPricing)
362
    {
363
        $po = new PricingOptionGroup(PricingOptionKey::OPTION_AWARD_PRICING);
364
365
        $po->carrierInformation = new CarrierInformation($awardPricing->carrier);
366
367
        $po->frequentFlyerInformation = new FrequentFlyerInformation();
368
        $po->frequentFlyerInformation->frequentTravellerDetails[] = new FrequentTravellerDetails(
369
            $awardPricing->tierLevel
370
        );
371
372
        return $po;
373
    }
374
375
    /**
376
     * Load OB Fees