Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 328-339 (lines=12) @@
325
     * @param PricingOption[] $priceOptions
326
     * @return PricingOption[]
327
     */
328
    protected static function makeOverrideOptions($overrideOptions, $priceOptions)
329
    {
330
        $opt = [];
331
332
        foreach ($overrideOptions as $overrideOption) {
333
            if (!self::hasPricingGroup($overrideOption, $priceOptions)) {
334
                $opt[] = new PricingOption($overrideOption);
335
            }
336
        }
337
338
        return $opt;
339
    }
340
341
    /**
342
     * Merges Pricing options

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

@@ 211-222 (lines=12) @@
208
     * @param PricingOptionGroup[] $priceOptions
209
     * @return PricingOptionGroup[]
210
     */
211
    protected static function makeOverrideOptions($overrideOptions, $priceOptions)
212
    {
213
        $opt = [];
214
215
        foreach ($overrideOptions as $overrideOption) {
216
            if (!self::hasPricingGroup($overrideOption, $priceOptions)) {
217
                $opt[] = new PricingOptionGroup($overrideOption);
218
            }
219
        }
220
221
        return $opt;
222
    }
223
224
    /**
225
     * @param string[] $overrideOptionsWithCriteria