Code Duplication    Length = 14-14 lines in 3 locations

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

@@ 246-259 (lines=14) @@
243
     * @param string|null $currency
244
     * @return PricePnr13\PricingOptionGroup[]
245
     */
246
    protected static function makePricingOptionForCurrencyOverride($currency)
247
    {
248
        $opt = [];
249
250
        if ($currency !== null) {
251
            $po = new PricingOptionGroup(PricingOptionKey::OPTION_FARE_CURRENCY_OVERRIDE);
252
253
            $po->currency = new Currency($currency);
254
255
            $opt[] = $po;
256
        }
257
258
        return $opt;
259
    }
260
261
    /**
262
     * @param FareBasis[] $pricingsFareBasis

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

@@ 196-209 (lines=14) @@
193
     * @param string|null $currency
194
     * @return PricingOption[]
195
     */
196
    protected static function makePricingOptionForCurrencyOverride($currency)
197
    {
198
        $opt = [];
199
200
        if ($currency !== null) {
201
            $po = new PricingOption(PricingOptionKey::OVERRIDE_CURRENCY);
202
203
            $po->currency = new Currency($currency);
204
205
            $opt[] = $po;
206
        }
207
208
        return $opt;
209
    }
210
211
    /**
212
     * @param string $overrideCode