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

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