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

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