Code Duplication    Length = 17-17 lines in 2 locations

src/Amadeus/Client/Struct/Service/IntegratedPricing.php 1 location

@@ 226-242 (lines=17) @@
223
     * @param \DateTime|null $dateOverride
224
     * @return PricingOption[]
225
     */
226
    protected static function loadDateOverride($dateOverride)
227
    {
228
        $opt = [];
229
230
        if ($dateOverride instanceof \DateTime) {
231
            $po = new PricingOption(PricingOptionKey::OVERRIDE_PRICING_DATE);
232
233
            $po->dateInformation = new DateInformation(
234
                DateInformation::OPT_DATE_OVERRIDE,
235
                $dateOverride
236
            );
237
238
            $opt[] = $po;
239
        }
240
241
        return $opt;
242
    }
243
244
    /**
245
     * @param string|null $posOverride

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

@@ 582-598 (lines=17) @@
579
     * @param \DateTime|null $pastDate
580
     * @return PricingOptionGroup[]
581
     */
582
    protected static function loadPastDate($pastDate)
583
    {
584
        $opt = [];
585
586
        if ($pastDate instanceof \DateTime) {
587
            $po = new PricingOptionGroup(PricingOptionKey::OPTION_PAST_DATE_PRICING);
588
589
            $po->dateInformation = new DateInformation(
590
                DateInformation::OPT_DATE_OVERRIDE,
591
                $pastDate
592
            );
593
594
            $opt[] = $po;
595
        }
596
597
        return $opt;
598
    }
599
600
601
    /**