Code Duplication    Length = 7-7 lines in 3 locations

src/Sylius/Behat/Context/Ui/Shop/AccountContext.php 2 locations

@@ 318-324 (lines=7) @@
315
    /**
316
     * @Then I should see :customerName, :street, :postcode, :city, :countryName as shiping address
317
     */
318
    public function iShouldSeeAsShipingAddress($customerName, $street, $postcode, $city, $countryName)
319
    {
320
        Assert::true(
321
            $this->orderShowPage->hasShippingAddress($customerName, $street, $postcode, $city, $countryName),
322
            sprintf('Cannot find shipping address "%s, %s %s, %s".', $street, $postcode, $city, $countryName)
323
        );
324
    }
325
326
    /**
327
     * @Then I should see :customerName, :street, :postcode, :city, :countryName as billing address
@@ 329-335 (lines=7) @@
326
    /**
327
     * @Then I should see :customerName, :street, :postcode, :city, :countryName as billing address
328
     */
329
    public function itShouldBeShippedTo($customerName, $street, $postcode, $city, $countryName)
330
    {
331
        Assert::true(
332
            $this->orderShowPage->hasBillingAddress($customerName, $street, $postcode, $city, $countryName),
333
            sprintf('Cannot find shipping address "%s, %s %s, %s".', $street, $postcode, $city, $countryName)
334
        );
335
    }
336
337
    /**
338
     * @Then I should see :total as order's total

src/Sylius/Behat/Context/Ui/Admin/ManagingOrdersContext.php 1 location

@@ 154-160 (lines=7) @@
151
    /**
152
     * @Then it should be billed to :customerName, :street, :postcode, :city, :countryName
153
     */
154
    public function itShouldBeBilledTo($customerName, $street, $postcode, $city, $countryName)
155
    {
156
        Assert::true(
157
            $this->showPage->hasBillingAddress($customerName, $street, $postcode, $city, $countryName),
158
            sprintf('Cannot find shipping address "%s, %s %s, %s".', $street, $postcode, $city, $countryName)
159
        );
160
    }
161
162
    /**
163
     * @Then it should be shipped via the :shippingMethodName shipping method