@@ -26,10 +26,14 @@ |
||
| 26 | 26 | */ |
| 27 | 27 | public function checkValidationMessageFor($element, $message); |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @return void |
|
| 31 | + */ |
|
| 29 | 32 | public function reset(); |
| 30 | 33 | |
| 31 | 34 | /** |
| 32 | 35 | * @param string $email |
| 36 | + * @return void |
|
| 33 | 37 | */ |
| 34 | 38 | public function specifyEmail($email); |
| 35 | 39 | } |
@@ -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 | } |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Behat\Mink\Exception\ElementNotFoundException; |
| 15 | 15 | use Sylius\Behat\Page\PageInterface; |
| 16 | -use Sylius\Component\Product\Model\ProductOptionInterface; |
|
| 17 | 16 | use Sylius\Component\Product\Model\ProductInterface; |
| 17 | +use Sylius\Component\Product\Model\ProductOptionInterface; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @author Łukasz Chruściel <[email protected]> |
@@ -24,6 +24,7 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | /** |
| 26 | 26 | * @throws ElementNotFoundException |
| 27 | + * @return void |
|
| 27 | 28 | */ |
| 28 | 29 | public function addToCart(); |
| 29 | 30 | |
@@ -31,6 +32,7 @@ discard block |
||
| 31 | 32 | * @param string $quantity |
| 32 | 33 | * |
| 33 | 34 | * @throws ElementNotFoundException |
| 35 | + * @return void |
|
| 34 | 36 | */ |
| 35 | 37 | public function addToCartWithQuantity($quantity); |
| 36 | 38 | |
@@ -38,6 +40,7 @@ discard block |
||
| 38 | 40 | * @param string $variant |
| 39 | 41 | * |
| 40 | 42 | * @throws ElementNotFoundException |
| 43 | + * @return void |
|
| 41 | 44 | */ |
| 42 | 45 | public function addToCartWithVariant($variant); |
| 43 | 46 | |
@@ -46,6 +49,7 @@ discard block |
||
| 46 | 49 | * @param string $optionValue |
| 47 | 50 | * |
| 48 | 51 | * @throws ElementNotFoundException |
| 52 | + * @return void |
|
| 49 | 53 | */ |
| 50 | 54 | public function addToCartWithOption(ProductOptionInterface $option, $optionValue); |
| 51 | 55 | |
@@ -56,6 +60,7 @@ discard block |
||
| 56 | 60 | |
| 57 | 61 | /** |
| 58 | 62 | * @param string $url |
| 63 | + * @return void |
|
| 59 | 64 | */ |
| 60 | 65 | public function visit($url); |
| 61 | 66 | |
@@ -67,7 +72,7 @@ discard block |
||
| 67 | 72 | public function getAttributeByName($attributeName); |
| 68 | 73 | |
| 69 | 74 | /** |
| 70 | - * @return array |
|
| 75 | + * @return \Behat\Mink\Element\NodeElement[] |
|
| 71 | 76 | */ |
| 72 | 77 | public function getAttributes(); |
| 73 | 78 | |
@@ -80,6 +85,7 @@ discard block |
||
| 80 | 85 | |
| 81 | 86 | /** |
| 82 | 87 | * @param int $timeout |
| 88 | + * @return void |
|
| 83 | 89 | */ |
| 84 | 90 | public function waitForValidationErrors($timeout); |
| 85 | 91 | |
@@ -123,11 +129,13 @@ discard block |
||
| 123 | 129 | /** |
| 124 | 130 | * @param string $optionName |
| 125 | 131 | * @param string $optionValue |
| 132 | + * @return void |
|
| 126 | 133 | */ |
| 127 | 134 | public function selectOption($optionName, $optionValue); |
| 128 | 135 | |
| 129 | 136 | /** |
| 130 | 137 | * @param string $variantName |
| 138 | + * @return void |
|
| 131 | 139 | */ |
| 132 | 140 | public function selectVariant($variantName); |
| 133 | 141 | |
@@ -20,8 +20,12 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $shippingMethod |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function selectShippingMethod($shippingMethod); |
| 25 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 26 | 30 | public function continueCheckout(); |
| 27 | 31 | } |
@@ -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 | } |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Behat\Service; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\AdminUserInterface; |
| 15 | -use Sylius\Component\Core\Model\ShopUserInterface; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * @author Arkadiusz Krakowiak <[email protected]> |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | } |
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | - * @return array |
|
| 61 | + * @return string[] |
|
| 62 | 62 | */ |
| 63 | 63 | public function getRecipients() |
| 64 | 64 | { |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | 'targetEntity' => $subjectClass, |
| 88 | 88 | 'inversedBy' => 'attributes', |
| 89 | 89 | 'joinColumns' => [[ |
| 90 | - 'name' => $subject.'_id', |
|
| 90 | + 'name' => $subject . '_id', |
|
| 91 | 91 | 'referencedColumnName' => $targetEntityMetadata->fieldMappings['id']['columnName'], |
| 92 | 92 | 'nullable' => false, |
| 93 | 93 | 'onDelete' => 'CASCADE', |
@@ -215,7 +215,7 @@ |
||
| 215 | 215 | /** |
| 216 | 216 | * @param OutputInterface $output |
| 217 | 217 | * |
| 218 | - * @return mixed |
|
| 218 | + * @return string |
|
| 219 | 219 | */ |
| 220 | 220 | private function getAdministratorPassword(OutputInterface $output) |
| 221 | 221 | { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | ->setDescription('Initialize default permissions & roles in the application.') |
| 31 | 31 | ->setHelp(<<<EOT |
| 32 | 32 | The <info>%command.name%</info> command initializes default RBAC setup. |
| 33 | -EOT |
|
| 33 | +eot |
|
| 34 | 34 | ) |
| 35 | 35 | ; |
| 36 | 36 | } |
@@ -12,18 +12,14 @@ |
||
| 12 | 12 | namespace Sylius\Bundle\CoreBundle\Command; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Component\Core\Model\AdminUserInterface; |
| 15 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
| 16 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
| 17 | 15 | use Sylius\Component\Locale\Model\LocaleInterface; |
| 18 | -use Sylius\Component\User\Model\UserInterface; |
|
| 19 | 16 | use Symfony\Component\Console\Helper\QuestionHelper; |
| 20 | 17 | use Symfony\Component\Console\Input\InputInterface; |
| 21 | 18 | use Symfony\Component\Console\Output\OutputInterface; |
| 22 | 19 | use Symfony\Component\Console\Question\Question; |
| 23 | -use Symfony\Component\Intl\Intl; |
|
| 20 | +use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 24 | 21 | use Symfony\Component\Validator\Constraints\Email; |
| 25 | 22 | use Symfony\Component\Validator\Constraints\NotBlank; |
| 26 | -use Symfony\Component\Validator\ConstraintViolationListInterface; |
|
| 27 | 23 | use Webmozart\Assert\Assert; |
| 28 | 24 | |
| 29 | 25 | /** |
@@ -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 | } |
@@ -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 | } |