Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 49-60 (lines=12) @@
46
     * @param PricingOptionGroup[]|ServicePriceOpt[] $priceOptions
47
     * @return bool
48
     */
49
    protected static function hasPricingGroup($optionKey, $priceOptions)
50
    {
51
        $found = false;
52
53
        foreach ($priceOptions as $pog) {
54
            if ($pog->pricingOptionKey->pricingOptionKey === $optionKey) {
55
                $found = true;
56
            }
57
        }
58
59
        return $found;
60
    }
61
62
    /**
63
     * Merges Pricing options

src/Amadeus/Client/Struct/Ticket/RepricePnrWithBookingClass.php 1 location

@@ 557-568 (lines=12) @@
554
     * @param PricingOption[] $priceOptions
555
     * @return bool
556
     */
557
    protected function hasPricingOption($optionKey, $priceOptions)
558
    {
559
        $found = false;
560
561
        foreach ($priceOptions as $pog) {
562
            if ($pog->pricingOptionKey->pricingOptionKey === $optionKey) {
563
                $found = true;
564
            }
565
        }
566
567
        return $found;
568
    }
569
}
570