Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 192-203 (lines=12) @@
189
     * @param PricingOptionGroup[] $priceOptions
190
     * @return PricingOptionGroup[]
191
     */
192
    protected static function makeOverrideOptions($overrideOptions, $priceOptions)
193
    {
194
        $opt = [];
195
196
        foreach ($overrideOptions as $overrideOption) {
197
            if (!self::hasPricingGroup($overrideOption, $priceOptions)) {
198
                $opt[] = new PricingOptionGroup($overrideOption);
199
            }
200
        }
201
202
        return $opt;
203
    }
204
205
    /**
206
     * @param string[] $overrideOptionsWithCriteria

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

@@ 342-353 (lines=12) @@
339
     * @param PricingOption[] $priceOptions
340
     * @return PricingOption[]
341
     */
342
    protected static function makeOverrideOptions($overrideOptions, $priceOptions)
343
    {
344
        $opt = [];
345
346
        foreach ($overrideOptions as $overrideOption) {
347
            if (!self::hasPricingGroup($overrideOption, $priceOptions)) {
348
                $opt[] = new PricingOption($overrideOption);
349
            }
350
        }
351
352
        return $opt;
353
    }
354
355
    /**
356
     * Merges Pricing options