@@ -70,17 +70,20 @@ discard block |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @param string $productName |
73 | + * @return void |
|
73 | 74 | */ |
74 | 75 | public function removeProduct($productName); |
75 | 76 | |
76 | 77 | /** |
77 | 78 | * @param string $productName |
78 | 79 | * @param int $quantity |
80 | + * @return void |
|
79 | 81 | */ |
80 | 82 | public function changeQuantity($productName, $quantity); |
81 | 83 | |
82 | 84 | /** |
83 | 85 | * @param string $couponCode |
86 | + * @return void |
|
84 | 87 | */ |
85 | 88 | public function applyCoupon($couponCode); |
86 | 89 | |
@@ -143,12 +146,19 @@ discard block |
||
143 | 146 | */ |
144 | 147 | public function getCartTotal(); |
145 | 148 | |
149 | + /** |
|
150 | + * @return void |
|
151 | + */ |
|
146 | 152 | public function clearCart(); |
147 | 153 | |
154 | + /** |
|
155 | + * @return void |
|
156 | + */ |
|
148 | 157 | public function updateCart(); |
149 | 158 | |
150 | 159 | /** |
151 | 160 | * @param int $timeout |
161 | + * @return void |
|
152 | 162 | */ |
153 | 163 | public function waitForRedirect($timeout); |
154 | 164 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Shop\Cart; |
15 | 15 |
@@ -75,6 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * @param string $notes |
78 | + * @return void |
|
78 | 79 | */ |
79 | 80 | public function addNotes($notes); |
80 | 81 | |
@@ -135,12 +136,24 @@ discard block |
||
135 | 136 | */ |
136 | 137 | public function hasProductOutOfStockValidationMessage(ProductInterface $product); |
137 | 138 | |
139 | + /** |
|
140 | + * @return void |
|
141 | + */ |
|
138 | 142 | public function changeAddress(); |
139 | 143 | |
144 | + /** |
|
145 | + * @return void |
|
146 | + */ |
|
140 | 147 | public function changeShippingMethod(); |
141 | 148 | |
149 | + /** |
|
150 | + * @return void |
|
151 | + */ |
|
142 | 152 | public function changePaymentMethod(); |
143 | 153 | |
154 | + /** |
|
155 | + * @return void |
|
156 | + */ |
|
144 | 157 | public function confirmOrder(); |
145 | 158 | |
146 | 159 | /** |
@@ -15,7 +15,6 @@ |
||
15 | 15 | use Sylius\Component\Core\Model\AddressInterface; |
16 | 16 | use Sylius\Component\Core\Model\ProductInterface; |
17 | 17 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
18 | -use Sylius\Component\Payment\Model\PaymentMethodInterface; |
|
19 | 18 | |
20 | 19 | /** |
21 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Shop\Checkout; |
15 | 15 |
@@ -20,6 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $paymentMethod |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function selectPaymentMethod($paymentMethod); |
25 | 26 | |
@@ -37,12 +38,24 @@ discard block |
||
37 | 38 | */ |
38 | 39 | public function getItemSubtotal($itemName); |
39 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
40 | 44 | public function nextStep(); |
41 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
42 | 49 | public function changeShippingMethod(); |
43 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
44 | 54 | public function changeShippingMethodByStepLabel(); |
45 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
46 | 59 | public function changeAddressByStepLabel(); |
47 | 60 | |
48 | 61 | /** |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Behat\Page\Shop\Checkout; |
15 | 15 |
@@ -101,6 +101,9 @@ |
||
101 | 101 | return $webDirectory; |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param string $webDirectory |
|
106 | + */ |
|
104 | 107 | private function assertFileContent($lines, $webDirectory) |
105 | 108 | { |
106 | 109 | foreach ($lines as $line) { |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ThemeBundle\Tests\Functional; |
15 | 15 | |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | { |
26 | 26 | parent::tearDown(); |
27 | 27 | |
28 | - file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset'.PHP_EOL); |
|
28 | + file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset' . PHP_EOL); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask); |
64 | 64 | |
65 | 65 | sleep(1); |
66 | - file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified'); |
|
66 | + file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified'); |
|
67 | 67 | clearstatcache(); |
68 | 68 | |
69 | 69 | $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | list($expectedText, $assetFile) = explode(': ', $line); |
118 | 118 | |
119 | - $contents = file_get_contents($webDirectory.$assetFile); |
|
119 | + $contents = file_get_contents($webDirectory . $assetFile); |
|
120 | 120 | |
121 | 121 | $this->assertEquals($expectedText, trim($contents)); |
122 | 122 | } |
@@ -16,9 +16,9 @@ |
||
16 | 16 | use Sylius\Component\Customer\Model\CustomerAwareInterface; |
17 | 17 | use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
18 | 18 | use Sylius\Component\Payment\Model\PaymentsSubjectInterface; |
19 | -use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
20 | 19 | use Sylius\Component\Promotion\Model\CountablePromotionSubjectInterface; |
21 | 20 | use Sylius\Component\Promotion\Model\PromotionCouponAwarePromotionSubjectInterface; |
21 | +use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
22 | 22 | use Sylius\Component\User\Model\UserInterface; |
23 | 23 | |
24 | 24 | /** |
@@ -46,6 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * @param AddressInterface|null $address |
49 | + * @return void |
|
49 | 50 | */ |
50 | 51 | public function setShippingAddress(?AddressInterface $address): void; |
51 | 52 | |
@@ -56,6 +57,7 @@ discard block |
||
56 | 57 | |
57 | 58 | /** |
58 | 59 | * @param AddressInterface|null $address |
60 | + * @return void |
|
59 | 61 | */ |
60 | 62 | public function setBillingAddress(?AddressInterface $address): void; |
61 | 63 | |
@@ -66,6 +68,7 @@ discard block |
||
66 | 68 | |
67 | 69 | /** |
68 | 70 | * @param string|null $checkoutState |
71 | + * @return void |
|
69 | 72 | */ |
70 | 73 | public function setCheckoutState(?string $checkoutState): void; |
71 | 74 | |
@@ -76,6 +79,7 @@ discard block |
||
76 | 79 | |
77 | 80 | /** |
78 | 81 | * @param string|null $paymentState |
82 | + * @return void |
|
79 | 83 | */ |
80 | 84 | public function setPaymentState(?string $paymentState): void; |
81 | 85 | |
@@ -108,14 +112,19 @@ discard block |
||
108 | 112 | |
109 | 113 | /** |
110 | 114 | * @param ShipmentInterface $shipment |
115 | + * @return void |
|
111 | 116 | */ |
112 | 117 | public function addShipment(ShipmentInterface $shipment): void; |
113 | 118 | |
114 | 119 | /** |
115 | 120 | * @param ShipmentInterface $shipment |
121 | + * @return void |
|
116 | 122 | */ |
117 | 123 | public function removeShipment(ShipmentInterface $shipment): void; |
118 | 124 | |
125 | + /** |
|
126 | + * @return void |
|
127 | + */ |
|
119 | 128 | public function removeShipments(): void; |
120 | 129 | |
121 | 130 | /** |
@@ -132,6 +141,7 @@ discard block |
||
132 | 141 | |
133 | 142 | /** |
134 | 143 | * @param string|null $currencyCode |
144 | + * @return void |
|
135 | 145 | */ |
136 | 146 | public function setCurrencyCode(?string $currencyCode): void; |
137 | 147 | |
@@ -142,11 +152,13 @@ discard block |
||
142 | 152 | |
143 | 153 | /** |
144 | 154 | * @param string|null |
155 | + * @return void |
|
145 | 156 | */ |
146 | 157 | public function setLocaleCode(?string $localeCode): void; |
147 | 158 | |
148 | 159 | /** |
149 | 160 | * @param BaseCouponInterface|null $coupon |
161 | + * @return void |
|
150 | 162 | */ |
151 | 163 | public function setPromotionCoupon(?BaseCouponInterface $coupon): void; |
152 | 164 | |
@@ -157,6 +169,7 @@ discard block |
||
157 | 169 | |
158 | 170 | /** |
159 | 171 | * @param string|null $state |
172 | + * @return void |
|
160 | 173 | */ |
161 | 174 | public function setShippingState(?string $state): void; |
162 | 175 | |
@@ -189,6 +202,7 @@ discard block |
||
189 | 202 | |
190 | 203 | /** |
191 | 204 | * @param string|null $tokenValue |
205 | + * @return void |
|
192 | 206 | */ |
193 | 207 | public function setTokenValue(?string $tokenValue): void; |
194 | 208 | |
@@ -199,6 +213,7 @@ discard block |
||
199 | 213 | |
200 | 214 | /** |
201 | 215 | * @param string|null $customerIp |
216 | + * @return void |
|
202 | 217 | */ |
203 | 218 | public function setCustomerIp(?string $customerIp): void; |
204 | 219 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Core\Model; |
15 | 15 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | /** |
48 | 48 | * @param AddressInterface|null $address |
49 | 49 | */ |
50 | - public function setShippingAddress(?AddressInterface $address): void; |
|
50 | + public function setShippingAddress(?AddressInterface $address) : void; |
|
51 | 51 | |
52 | 52 | /** |
53 | 53 | * @return AddressInterface|null |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * @param AddressInterface|null $address |
59 | 59 | */ |
60 | - public function setBillingAddress(?AddressInterface $address): void; |
|
60 | + public function setBillingAddress(?AddressInterface $address) : void; |
|
61 | 61 | |
62 | 62 | /** |
63 | 63 | * @return string|null |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | /** |
68 | 68 | * @param string|null $checkoutState |
69 | 69 | */ |
70 | - public function setCheckoutState(?string $checkoutState): void; |
|
70 | + public function setCheckoutState(?string $checkoutState) : void; |
|
71 | 71 | |
72 | 72 | /** |
73 | 73 | * @return string|null |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | /** |
78 | 78 | * @param string|null $paymentState |
79 | 79 | */ |
80 | - public function setPaymentState(?string $paymentState): void; |
|
80 | + public function setPaymentState(?string $paymentState) : void; |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * @return Collection|OrderItemUnitInterface[] |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | /** |
134 | 134 | * @param string|null $currencyCode |
135 | 135 | */ |
136 | - public function setCurrencyCode(?string $currencyCode): void; |
|
136 | + public function setCurrencyCode(?string $currencyCode) : void; |
|
137 | 137 | |
138 | 138 | /** |
139 | 139 | * @return string|null |
@@ -143,12 +143,12 @@ discard block |
||
143 | 143 | /** |
144 | 144 | * @param string|null |
145 | 145 | */ |
146 | - public function setLocaleCode(?string $localeCode): void; |
|
146 | + public function setLocaleCode(?string $localeCode) : void; |
|
147 | 147 | |
148 | 148 | /** |
149 | 149 | * @param BaseCouponInterface|null $coupon |
150 | 150 | */ |
151 | - public function setPromotionCoupon(?BaseCouponInterface $coupon): void; |
|
151 | + public function setPromotionCoupon(?BaseCouponInterface $coupon) : void; |
|
152 | 152 | |
153 | 153 | /** |
154 | 154 | * @return string|null |
@@ -158,14 +158,14 @@ discard block |
||
158 | 158 | /** |
159 | 159 | * @param string|null $state |
160 | 160 | */ |
161 | - public function setShippingState(?string $state): void; |
|
161 | + public function setShippingState(?string $state) : void; |
|
162 | 162 | |
163 | 163 | /** |
164 | 164 | * @param string|null $state |
165 | 165 | * |
166 | 166 | * @return PaymentInterface|null |
167 | 167 | */ |
168 | - public function getLastPayment(?string $state = null): ?PaymentInterface; |
|
168 | + public function getLastPayment(?string $state = null) : ?PaymentInterface; |
|
169 | 169 | |
170 | 170 | /** |
171 | 171 | * @return int |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * @param string|null $tokenValue |
192 | 192 | */ |
193 | - public function setTokenValue(?string $tokenValue): void; |
|
193 | + public function setTokenValue(?string $tokenValue) : void; |
|
194 | 194 | |
195 | 195 | /** |
196 | 196 | * @return string|null |
@@ -200,5 +200,5 @@ discard block |
||
200 | 200 | /** |
201 | 201 | * @param string|null $customerIp |
202 | 202 | */ |
203 | - public function setCustomerIp(?string $customerIp): void; |
|
203 | + public function setCustomerIp(?string $customerIp) : void; |
|
204 | 204 | } |
@@ -13,11 +13,11 @@ |
||
13 | 13 | |
14 | 14 | use SM\Factory\FactoryInterface; |
15 | 15 | use SM\StateMachine\StateMachineInterface; |
16 | -use Sylius\Component\Order\Model\OrderInterface; |
|
17 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
18 | 16 | use Sylius\Component\Core\Model\ShipmentInterface; |
19 | 17 | use Sylius\Component\Core\OrderShippingStates; |
20 | 18 | use Sylius\Component\Core\OrderShippingTransitions; |
19 | +use Sylius\Component\Order\Model\OrderInterface; |
|
20 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
21 | 21 | |
22 | 22 | /** |
23 | 23 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Core\StateResolver; |
15 | 15 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | | sylius.two | |
57 | 57 | +------------+ |
58 | 58 | |
59 | -EOT |
|
59 | +eot |
|
60 | 60 | , $display); |
61 | 61 | } |
62 | 62 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | | whatever.something.elephants | camels | |
83 | 83 | +------------------------------+-----------------+ |
84 | 84 | |
85 | -EOT |
|
85 | +eot |
|
86 | 86 | , $display); |
87 | 87 | } |
88 | 88 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ResourceBundle\Tests\Command; |
15 | 15 |
@@ -969,7 +969,7 @@ discard block |
||
969 | 969 | ], |
970 | 970 | ]; |
971 | 971 | $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST']) |
972 | - ->willReturn($createRoute); |
|
972 | + ->willReturn($createRoute); |
|
973 | 973 | $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled(); |
974 | 974 | |
975 | 975 | $updateDefaults = [ |
@@ -979,7 +979,7 @@ discard block |
||
979 | 979 | ], |
980 | 980 | ]; |
981 | 981 | $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH']) |
982 | - ->willReturn($updateRoute); |
|
982 | + ->willReturn($updateRoute); |
|
983 | 983 | $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled(); |
984 | 984 | |
985 | 985 | $deleteDefaults = [ |
@@ -989,7 +989,7 @@ discard block |
||
989 | 989 | ], |
990 | 990 | ]; |
991 | 991 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
992 | - ->willReturn($deleteRoute); |
|
992 | + ->willReturn($deleteRoute); |
|
993 | 993 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
994 | 994 | |
995 | 995 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace spec\Sylius\Bundle\ResourceBundle\Routing; |
15 | 15 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | <<<EOT |
50 | 50 | foo: bar |
51 | 51 | only: string |
52 | -EOT; |
|
52 | +eot; |
|
53 | 53 | |
54 | 54 | $this |
55 | 55 | ->shouldThrow(InvalidConfigurationException::class) |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $configuration = |
64 | 64 | <<<EOT |
65 | 65 | alias: sylius.foo |
66 | -EOT; |
|
66 | +eot; |
|
67 | 67 | |
68 | 68 | $this |
69 | 69 | ->shouldThrow(\InvalidArgumentException::class) |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $configuration = |
93 | 93 | <<<EOT |
94 | 94 | alias: sylius.product |
95 | -EOT; |
|
95 | +eot; |
|
96 | 96 | |
97 | 97 | $showDefaults = [ |
98 | 98 | '_controller' => 'sylius.controller.product:showAction', |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | $configuration = |
165 | 165 | <<<EOT |
166 | 166 | alias: sylius.product_option |
167 | -EOT; |
|
167 | +eot; |
|
168 | 168 | |
169 | 169 | $showDefaults = [ |
170 | 170 | '_controller' => 'sylius.controller.product_option:showAction', |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | criteria: |
241 | 241 | code: \$code |
242 | 242 | filterable: true |
243 | -EOT; |
|
243 | +eot; |
|
244 | 244 | |
245 | 245 | $showDefaults = [ |
246 | 246 | '_controller' => 'sylius.controller.product_option:showAction', |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | <<<EOT |
334 | 334 | alias: sylius.product |
335 | 335 | path: super-duper-products |
336 | -EOT; |
|
336 | +eot; |
|
337 | 337 | |
338 | 338 | $showDefaults = [ |
339 | 339 | '_controller' => 'sylius.controller.product:showAction', |
@@ -406,7 +406,7 @@ discard block |
||
406 | 406 | <<<EOT |
407 | 407 | alias: sylius.product |
408 | 408 | form: sylius_product_custom |
409 | -EOT; |
|
409 | +eot; |
|
410 | 410 | |
411 | 411 | $showDefaults = [ |
412 | 412 | '_controller' => 'sylius.controller.product:showAction', |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | <<<EOT |
482 | 482 | alias: sylius.product |
483 | 483 | section: admin |
484 | -EOT; |
|
484 | +eot; |
|
485 | 485 | |
486 | 486 | $showDefaults = [ |
487 | 487 | '_controller' => 'sylius.controller.product:showAction', |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | <<<EOT |
560 | 560 | alias: sylius.product |
561 | 561 | templates: SyliusAdminBundle:Product |
562 | -EOT; |
|
562 | +eot; |
|
563 | 563 | |
564 | 564 | $showDefaults = [ |
565 | 565 | '_controller' => 'sylius.controller.product:showAction', |
@@ -634,7 +634,7 @@ discard block |
||
634 | 634 | <<<EOT |
635 | 635 | alias: sylius.product |
636 | 636 | except: ['show', 'delete'] |
637 | -EOT; |
|
637 | +eot; |
|
638 | 638 | |
639 | 639 | $indexDefaults = [ |
640 | 640 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -686,7 +686,7 @@ discard block |
||
686 | 686 | <<<EOT |
687 | 687 | alias: sylius.product |
688 | 688 | only: ['create', 'index'] |
689 | -EOT; |
|
689 | +eot; |
|
690 | 690 | |
691 | 691 | $indexDefaults = [ |
692 | 692 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -716,7 +716,7 @@ discard block |
||
716 | 716 | alias: sylius.product |
717 | 717 | except: ['show', 'delete'] |
718 | 718 | only: ['create'] |
719 | -EOT; |
|
719 | +eot; |
|
720 | 720 | |
721 | 721 | $this |
722 | 722 | ->shouldThrow(\InvalidArgumentException::class) |
@@ -746,7 +746,7 @@ discard block |
||
746 | 746 | <<<EOT |
747 | 747 | alias: sylius.product |
748 | 748 | redirect: update |
749 | -EOT; |
|
749 | +eot; |
|
750 | 750 | |
751 | 751 | $showDefaults = [ |
752 | 752 | '_controller' => 'sylius.controller.product:showAction', |
@@ -820,7 +820,7 @@ discard block |
||
820 | 820 | $configuration = |
821 | 821 | <<<EOT |
822 | 822 | alias: sylius.product |
823 | -EOT; |
|
823 | +eot; |
|
824 | 824 | |
825 | 825 | $showDefaults = [ |
826 | 826 | '_controller' => 'sylius.controller.product:showAction', |
@@ -896,7 +896,7 @@ discard block |
||
896 | 896 | alias: sylius.product |
897 | 897 | only: ['create', 'index'] |
898 | 898 | grid: sylius_admin_product |
899 | -EOT; |
|
899 | +eot; |
|
900 | 900 | |
901 | 901 | $indexDefaults = [ |
902 | 902 | '_controller' => 'sylius.controller.product:indexAction', |
@@ -949,7 +949,7 @@ discard block |
||
949 | 949 | bar: foo |
950 | 950 | update: |
951 | 951 | abc: xyz |
952 | -EOT; |
|
952 | +eot; |
|
953 | 953 | |
954 | 954 | $showDefaults = [ |
955 | 955 | '_controller' => 'sylius.controller.product:showAction', |
@@ -1039,7 +1039,7 @@ discard block |
||
1039 | 1039 | <<<EOT |
1040 | 1040 | alias: sylius.product |
1041 | 1041 | permission: true |
1042 | -EOT; |
|
1042 | +eot; |
|
1043 | 1043 | |
1044 | 1044 | $showDefaults = [ |
1045 | 1045 | '_controller' => 'sylius.controller.product:showAction', |
@@ -14,7 +14,6 @@ |
||
14 | 14 | namespace spec\Sylius\Bundle\ResourceBundle\Routing; |
15 | 15 | |
16 | 16 | use PhpSpec\ObjectBehavior; |
17 | -use Sylius\Bundle\ResourceBundle\Routing\ResourceLoader; |
|
18 | 17 | use Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface; |
19 | 18 | use Sylius\Component\Resource\Metadata\MetadataInterface; |
20 | 19 | use Sylius\Component\Resource\Metadata\RegistryInterface; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | "username": "[email protected]", |
36 | 36 | "password": "sylius" |
37 | 37 | } |
38 | -EOT; |
|
38 | +eot; |
|
39 | 39 | |
40 | 40 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
41 | 41 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | "grant_type": "refresh_token", |
59 | 59 | "refresh_token": "SampleRefreshTokenODllODY4ZTQyOThlNWIyMjA1ZDhmZjE1ZDYyMGMwOTUxOWM2NGFmNGRjNjQ2NDBhMDVlNGZjMmQ0YzgyNDM2Ng" |
60 | 60 | } |
61 | -EOT; |
|
61 | +eot; |
|
62 | 62 | |
63 | 63 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
64 | 64 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Tests\Controller; |
15 | 15 |