Code Duplication    Length = 21-21 lines in 2 locations

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

@@ 140-160 (lines=21) @@
137
            $this->loadOfficeId($officeId);
138
        }
139
140
        if ($this->checkAnyNotEmpty(
141
            $options->cabinClass,
142
            $options->cabinOption,
143
            $options->requestedFlightTypes,
144
            $options->airlineOptions,
145
            $options->progressiveLegsMin,
146
            $options->progressiveLegsMax,
147
            $options->maxLayoverPerConnectionHours,
148
            $options->maxLayoverPerConnectionMinutes
149
        )) {
150
            $this->travelFlightInfo = new MasterPricer\TravelFlightInfo(
151
            $options->cabinClass,
152
            $options->cabinOption,
153
            $options->requestedFlightTypes,
154
            $options->airlineOptions,
155
            $options->progressiveLegsMin,
156
            $options->progressiveLegsMax,
157
            $options->maxLayoverPerConnectionHours,
158
            $options->maxLayoverPerConnectionMinutes
159
        );
160
        }
161
162
        if (!empty($options->priceToBeat)) {
163
            $this->priceToBeat = new MasterPricer\PriceToBeat(

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

@@ 220-240 (lines=21) @@
217
        );
218
        $tmpItinerary->timeDetails = new MasterPricer\TimeDetails($opt->date);
219
220
        if ($this->checkAnyNotEmpty(
221
            $opt->airlineOptions,
222
            $opt->requestedFlightTypes,
223
            $opt->includedConnections,
224
            $opt->excludedConnections,
225
            $opt->nrOfConnections,
226
            $opt->noAirportChange,
227
            $opt->cabinClass,
228
            $opt->cabinOption
229
        )) {
230
            $tmpItinerary->flightInfo = new MasterPricer\FlightInfo(
231
                $opt->airlineOptions,
232
                $opt->requestedFlightTypes,
233
                $opt->includedConnections,
234
                $opt->excludedConnections,
235
                $opt->nrOfConnections,
236
                $opt->noAirportChange,
237
                $opt->cabinClass,
238
                $opt->cabinOption
239
            );
240
        }
241
242
        $this->itinerary[] = $tmpItinerary;
243