Completed
Push — locale-in-url ( 6d9eda...81052c )
by Kamil
57:16 queued 38:25
created
src/Sylius/Behat/Context/Ui/Shop/CheckoutContext.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -130,6 +130,8 @@
 block discarded – undo
130 130
     /**
131 131
      * @Given I have proceeded order with :shippingMethodName shipping method and :paymentMethodName payment
132 132
      * @When I proceed with :shippingMethodName shipping method and :paymentMethodName payment
133
+     * @param string $shippingMethodName
134
+     * @param string $paymentMethodName
133 135
      */
134 136
     public function iProceedOrderWithShippingMethodAndPayment($shippingMethodName, $paymentMethodName)
135 137
     {
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/Checkout/CheckoutShippingContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,6 +204,6 @@
 block discarded – undo
204 204
      */
205 205
     public function iShouldBeCheckingOutAs($email)
206 206
     {
207
-        Assert::same('Checking out as '.$email.'.', $this->selectShippingPage->getPurchaserEmail());
207
+        Assert::same('Checking out as ' . $email . '.', $this->selectShippingPage->getPurchaserEmail());
208 208
     }
209 209
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/Checkout/CheckoutCompleteContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     public function iShouldSeeThisShippingAddressAsShippingAddress($fullName)
102 102
     {
103
-        $address = $this->sharedStorage->get('shipping_address_'.StringInflector::nameToLowercaseCode($fullName));
103
+        $address = $this->sharedStorage->get('shipping_address_' . StringInflector::nameToLowercaseCode($fullName));
104 104
 
105 105
         Assert::true($this->completePage->hasShippingAddress($address));
106 106
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function iShouldSeeThisBillingAddressAsBillingAddress($fullName)
112 112
     {
113
-        $address = $this->sharedStorage->get('billing_address_'.StringInflector::nameToLowercaseCode($fullName));
113
+        $address = $this->sharedStorage->get('billing_address_' . StringInflector::nameToLowercaseCode($fullName));
114 114
 
115 115
         Assert::true($this->completePage->hasBillingAddress($address));
116 116
     }
Please login to merge, or discard this patch.
Sylius/Bundle/ApiBundle/Fixture/Factory/ApiAccessTokenExampleFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\ApiBundle\Fixture\Factory;
13 13
 
14
-use FOS\OAuthServerBundle\Model\ClientManagerInterface;
15 14
 use Sylius\Bundle\ApiBundle\Model\AccessTokenInterface;
16 15
 use Sylius\Bundle\ApiBundle\Model\ClientInterface;
17 16
 use Sylius\Bundle\ApiBundle\Model\UserInterface;
Please login to merge, or discard this patch.
tests/Controller/LocaleApiTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
72 72
         $locales = $this->loadFixturesFromFile('resources/locales.yml');
73 73
 
74
-        $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithAccept);
74
+        $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithAccept);
75 75
 
76 76
         $response = $this->client->getResponse();
77 77
         $this->assertResponse($response, 'locale/show_response', Response::HTTP_OK);
@@ -156,12 +156,12 @@  discard block
 block discarded – undo
156 156
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
157 157
         $locales = $this->loadFixturesFromFile('resources/locales.yml');
158 158
 
159
-        $this->client->request('DELETE', '/api/v1/locales/'.$locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
159
+        $this->client->request('DELETE', '/api/v1/locales/' . $locales['locale_en_US']->getCode(), [], [], static::$authorizedHeaderWithContentType, []);
160 160
 
161 161
         $response = $this->client->getResponse();
162 162
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
163 163
 
164
-        $this->client->request('GET', '/api/v1/locales/'.$locales['locale_en_US']->getId(), [], [], static::$authorizedHeaderWithAccept);
164
+        $this->client->request('GET', '/api/v1/locales/' . $locales['locale_en_US']->getId(), [], [], static::$authorizedHeaderWithAccept);
165 165
 
166 166
         $response = $this->client->getResponse();
167 167
         $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         {
103 103
             "code": "es_ES"
104 104
         }
105
-EOT;
105
+eot;
106 106
 
107 107
         $this->client->request('POST', '/api/v1/locales/', [], [], static::$authorizedHeaderWithContentType, $data);
108 108
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Shop/ProductContext.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
 
14 14
 use Behat\Behat\Context\Context;
15 15
 use Behat\Mink\Element\NodeElement;
16
+use Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
16 17
 use Sylius\Behat\Page\Shop\Product\IndexPageInterface;
17 18
 use Sylius\Behat\Page\Shop\Product\ShowPageInterface;
18
-use Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface;
19 19
 use Sylius\Component\Core\Model\ProductInterface;
20 20
 use Sylius\Component\Core\Model\TaxonInterface;
21 21
 use Webmozart\Assert\Assert;
Please login to merge, or discard this patch.