Code Duplication    Length = 14-14 lines in 2 locations

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

@@ 163-176 (lines=14) @@
160
     * @param string|null $validatingCarrier
161
     * @return PricingOption[]
162
     */
163
    protected static function makePricingOptionForValidatingCarrier($validatingCarrier)
164
    {
165
        $opt = [];
166
167
        if ($validatingCarrier !== null) {
168
            $po = new PricingOption(PricingOptionKey::OVERRIDE_VALIDATING_CARRIER);
169
170
            $po->carrierInformation = new CarrierInformation($validatingCarrier);
171
172
            $opt[] = $po;
173
        }
174
175
        return $opt;
176
    }
177
178
    /**
179
     * @param string|null $currency

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

@@ 239-252 (lines=14) @@
236
     * @param string|null $validatingCarrier
237
     * @return PricePnr13\PricingOptionGroup[]
238
     */
239
    protected static function makePricingOptionForValidatingCarrier($validatingCarrier)
240
    {
241
        $opt = [];
242
243
        if ($validatingCarrier !== null) {
244
            $po = new PricingOptionGroup(PricingOptionKey::OPTION_VALIDATING_CARRIER);
245
246
            $po->carrierInformation = new CarrierInformation($validatingCarrier);
247
248
            $opt[] = $po;
249
        }
250
251
        return $opt;
252
    }
253
254
    /**
255
     * @param string|null $currency