Code Duplication    Length = 8-8 lines in 2 locations

src/Sylius/Behat/Page/Shop/Checkout/SummaryPage.php 2 locations

@@ 100-107 (lines=8) @@
97
    /**
98
     * {@inheritdoc}
99
     */
100
    public function hasShippingMethod(ShippingMethodInterface $shippingMethod)
101
    {
102
        if (!$this->hasElement('shipping_method')) {
103
            return false;
104
        }
105
106
        return false !== strpos($this->getElement('shipping_method')->getText(), $shippingMethod->getName());
107
    }
108
109
    /**
110
     * {@inheritdoc}
@@ 112-119 (lines=8) @@
109
    /**
110
     * {@inheritdoc}
111
     */
112
    public function hasPaymentMethod(PaymentMethodInterface $paymentMethod)
113
    {
114
        if (!$this->hasElement('payment_method')) {
115
            return false;
116
        }
117
118
        return false !== strpos($this->getElement('payment_method')->getText(), $paymentMethod->getName());
119
    }
120
121
    /**
122
     * {@inheritdoc}