Code Duplication    Length = 14-14 lines in 3 locations

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

@@ 182-195 (lines=14) @@
179
     * @param string|null $currency
180
     * @return PricingOption[]
181
     */
182
    protected static function makePricingOptionForCurrencyOverride($currency)
183
    {
184
        $opt = [];
185
186
        if ($currency !== null) {
187
            $po = new PricingOption(PricingOptionKey::OVERRIDE_CURRENCY);
188
189
            $po->currency = new Currency($currency);
190
191
            $opt[] = $po;
192
        }
193
194
        return $opt;
195
    }
196
197
    /**
198
     * @param string $overrideCode

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

@@ 417-430 (lines=14) @@
414
     * @param string|null $currency
415
     * @return PricingOption[]
416
     */
417
    protected function makePricingOptionForCurrencyOverride($currency)
418
    {
419
        $opt = [];
420
421
        if ($currency !== null) {
422
            $po = new PricingOption(PricingOptionKey::OPTION_FARE_CURRENCY_OVERRIDE);
423
424
            $po->currency = new Currency($currency);
425
426
            $opt[] = $po;
427
        }
428
429
        return $opt;
430
    }
431
432
    /**
433
     * @param string[] $paxDiscount

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

@@ 265-278 (lines=14) @@
262
     * @param string|null $currency
263
     * @return PricePnr13\PricingOptionGroup[]
264
     */
265
    protected static function makePricingOptionForCurrencyOverride($currency)
266
    {
267
        $opt = [];
268
269
        if ($currency !== null) {
270
            $po = new PricingOptionGroup(PricingOptionKey::OPTION_FARE_CURRENCY_OVERRIDE);
271
272
            $po->currency = new Currency($currency);
273
274
            $opt[] = $po;
275
        }
276
277
        return $opt;
278
    }
279
280
281
    /**