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

@@ 252-265 (lines=14) @@
249
     * @param string|null $currency
250
     * @return PricePnr13\PricingOptionGroup[]
251
     */
252
    protected static function makePricingOptionForCurrencyOverride($currency)
253
    {
254
        $opt = [];
255
256
        if ($currency !== null) {
257
            $po = new PricingOptionGroup(PricingOptionKey::OPTION_FARE_CURRENCY_OVERRIDE);
258
259
            $po->currency = new Currency($currency);
260
261
            $opt[] = $po;
262
        }
263
264
        return $opt;
265
    }
266
267
    /**
268
     * @param Cabin $cabin