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

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