@@ -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 | /** |
@@ -44,6 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * @param AddressInterface $address |
| 47 | + * @return void |
|
| 47 | 48 | */ |
| 48 | 49 | public function setShippingAddress(AddressInterface $address); |
| 49 | 50 | |
@@ -54,6 +55,7 @@ discard block |
||
| 54 | 55 | |
| 55 | 56 | /** |
| 56 | 57 | * @param AddressInterface $address |
| 58 | + * @return void |
|
| 57 | 59 | */ |
| 58 | 60 | public function setBillingAddress(AddressInterface $address); |
| 59 | 61 | |
@@ -64,6 +66,7 @@ discard block |
||
| 64 | 66 | |
| 65 | 67 | /** |
| 66 | 68 | * @param string $checkoutState |
| 69 | + * @return void |
|
| 67 | 70 | */ |
| 68 | 71 | public function setCheckoutState($checkoutState); |
| 69 | 72 | |
@@ -74,6 +77,7 @@ discard block |
||
| 74 | 77 | |
| 75 | 78 | /** |
| 76 | 79 | * @param string $paymentState |
| 80 | + * @return void |
|
| 77 | 81 | */ |
| 78 | 82 | public function setPaymentState($paymentState); |
| 79 | 83 | |
@@ -101,14 +105,19 @@ discard block |
||
| 101 | 105 | |
| 102 | 106 | /** |
| 103 | 107 | * @param ShipmentInterface $shipment |
| 108 | + * @return void |
|
| 104 | 109 | */ |
| 105 | 110 | public function addShipment(ShipmentInterface $shipment); |
| 106 | 111 | |
| 107 | 112 | /** |
| 108 | 113 | * @param ShipmentInterface $shipment |
| 114 | + * @return void |
|
| 109 | 115 | */ |
| 110 | 116 | public function removeShipment(ShipmentInterface $shipment); |
| 111 | 117 | |
| 118 | + /** |
|
| 119 | + * @return void |
|
| 120 | + */ |
|
| 112 | 121 | public function removeShipments(); |
| 113 | 122 | |
| 114 | 123 | /** |
@@ -127,6 +136,7 @@ discard block |
||
| 127 | 136 | * @param string |
| 128 | 137 | * |
| 129 | 138 | * @throws \InvalidArgumentException |
| 139 | + * @return void |
|
| 130 | 140 | */ |
| 131 | 141 | public function setCurrencyCode($currencyCode); |
| 132 | 142 | |
@@ -139,11 +149,13 @@ discard block |
||
| 139 | 149 | |
| 140 | 150 | /** |
| 141 | 151 | * @param string |
| 152 | + * @return void |
|
| 142 | 153 | */ |
| 143 | 154 | public function setLocaleCode($localeCode); |
| 144 | 155 | |
| 145 | 156 | /** |
| 146 | 157 | * @param BaseCouponInterface $coupon |
| 158 | + * @return void |
|
| 147 | 159 | */ |
| 148 | 160 | public function setPromotionCoupon(BaseCouponInterface $coupon = null); |
| 149 | 161 | |
@@ -154,6 +166,7 @@ discard block |
||
| 154 | 166 | |
| 155 | 167 | /** |
| 156 | 168 | * @param string $state |
| 169 | + * @return void |
|
| 157 | 170 | */ |
| 158 | 171 | public function setShippingState($state); |
| 159 | 172 | |
@@ -186,6 +199,7 @@ discard block |
||
| 186 | 199 | |
| 187 | 200 | /** |
| 188 | 201 | * @param string $tokenValue |
| 202 | + * @return void |
|
| 189 | 203 | */ |
| 190 | 204 | public function setTokenValue($tokenValue); |
| 191 | 205 | |
@@ -196,6 +210,7 @@ discard block |
||
| 196 | 210 | |
| 197 | 211 | /** |
| 198 | 212 | * @param string $customerIp |
| 213 | + * @return void |
|
| 199 | 214 | */ |
| 200 | 215 | public function setCustomerIp($customerIp); |
| 201 | 216 | } |
@@ -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\Model; |
| 15 | 15 | |
@@ -13,10 +13,10 @@ |
||
| 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\PaymentInterface; |
| 19 | 17 | use Sylius\Component\Core\OrderPaymentTransitions; |
| 18 | +use Sylius\Component\Order\Model\OrderInterface; |
|
| 19 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @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 | |
@@ -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 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | /** |
| 56 | - * @return array |
|
| 56 | + * @return Action[] |
|
| 57 | 57 | */ |
| 58 | 58 | public function getActions() |
| 59 | 59 | { |
@@ -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\Grid\Definition; |
| 15 | 15 | |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -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\Product\Model; |
| 15 | 15 | |
@@ -26,6 +26,7 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * @param string $provider |
| 29 | + * @return void |
|
| 29 | 30 | */ |
| 30 | 31 | public function setProvider($provider); |
| 31 | 32 | |
@@ -36,6 +37,7 @@ discard block |
||
| 36 | 37 | |
| 37 | 38 | /** |
| 38 | 39 | * @param string $identifier |
| 40 | + * @return void |
|
| 39 | 41 | */ |
| 40 | 42 | public function setIdentifier($identifier); |
| 41 | 43 | |
@@ -46,6 +48,7 @@ discard block |
||
| 46 | 48 | |
| 47 | 49 | /** |
| 48 | 50 | * @param string $accessToken |
| 51 | + * @return void |
|
| 49 | 52 | */ |
| 50 | 53 | public function setAccessToken($accessToken); |
| 51 | 54 | |
@@ -56,6 +59,7 @@ discard block |
||
| 56 | 59 | |
| 57 | 60 | /** |
| 58 | 61 | * @param string $refreshToken |
| 62 | + * @return void |
|
| 59 | 63 | */ |
| 60 | 64 | public function setRefreshToken($refreshToken); |
| 61 | 65 | } |
@@ -52,10 +52,10 @@ |
||
| 52 | 52 | /** |
| 53 | 53 | * @return string |
| 54 | 54 | */ |
| 55 | - public function getRefreshToken(); |
|
| 55 | + public function getRefreshToken(); |
|
| 56 | 56 | |
| 57 | - /** |
|
| 58 | - * @param string $refreshToken |
|
| 59 | - */ |
|
| 60 | - public function setRefreshToken($refreshToken); |
|
| 57 | + /** |
|
| 58 | + * @param string $refreshToken |
|
| 59 | + */ |
|
| 60 | + public function setRefreshToken($refreshToken); |
|
| 61 | 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\Component\User\Model; |
| 15 | 15 | |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | SessionInterface $session, |
| 46 | 46 | OrderRepositoryInterface $orderRepository, |
| 47 | 47 | OrderInterface $cart |
| 48 | - ) { |
|
| 48 | + ) { |
|
| 49 | 49 | $session->has('session_key_name')->willReturn(true); |
| 50 | 50 | $session->get('session_key_name')->willReturn(12345); |
| 51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -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 spec\Sylius\Bundle\OrderBundle\Context; |
| 15 | 15 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | SessionInterface $session, |
| 46 | 46 | OrderRepositoryInterface $orderRepository, |
| 47 | 47 | OrderInterface $cart |
| 48 | - ) { |
|
| 48 | + ) { |
|
| 49 | 49 | $session->has('session_key_name')->willReturn(true); |
| 50 | 50 | $session->get('session_key_name')->willReturn(12345); |
| 51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |