@@ -18,22 +18,28 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | interface GeneratePageInterface extends SymfonyPageInterface |
| 20 | 20 | { |
| 21 | + /** |
|
| 22 | + * @return void |
|
| 23 | + */ |
|
| 21 | 24 | public function generate(); |
| 22 | 25 | |
| 23 | 26 | /** |
| 24 | 27 | * @param int $nth |
| 25 | 28 | * @param int $price |
| 29 | + * @return void |
|
| 26 | 30 | */ |
| 27 | 31 | public function specifyPrice($nth, $price); |
| 28 | 32 | |
| 29 | 33 | /** |
| 30 | 34 | * @param int $nth |
| 31 | 35 | * @param string $code |
| 36 | + * @return void |
|
| 32 | 37 | */ |
| 33 | 38 | public function nameCode($nth, $code); |
| 34 | 39 | |
| 35 | 40 | /** |
| 36 | 41 | * @param int $nth |
| 42 | + * @return void |
|
| 37 | 43 | */ |
| 38 | 44 | public function removeVariant($nth); |
| 39 | 45 | |
@@ -13,13 +13,13 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ProductBundle\Form\Type\ProductAssociationType; |
| 15 | 15 | use Sylius\Bundle\ProductBundle\Form\Type\ProductAssociationTypeType; |
| 16 | +use Sylius\Bundle\ProductBundle\Form\Type\ProductGenerateVariantsType; |
|
| 16 | 17 | use Sylius\Bundle\ProductBundle\Form\Type\ProductOptionTranslationType; |
| 17 | 18 | use Sylius\Bundle\ProductBundle\Form\Type\ProductOptionType; |
| 18 | 19 | use Sylius\Bundle\ProductBundle\Form\Type\ProductOptionValueTranslationType; |
| 19 | 20 | use Sylius\Bundle\ProductBundle\Form\Type\ProductOptionValueType; |
| 20 | 21 | use Sylius\Bundle\ProductBundle\Form\Type\ProductTranslationType; |
| 21 | 22 | use Sylius\Bundle\ProductBundle\Form\Type\ProductType; |
| 22 | -use Sylius\Bundle\ProductBundle\Form\Type\ProductGenerateVariantsType; |
|
| 23 | 23 | use Sylius\Bundle\ProductBundle\Form\Type\ProductVariantGenerationType; |
| 24 | 24 | use Sylius\Bundle\ProductBundle\Form\Type\ProductVariantType; |
| 25 | 25 | use Sylius\Bundle\ResourceBundle\Controller\ResourceController; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace Sylius\Behat\Page\Admin\Customer; |
| 13 | 13 | |
| 14 | 14 | use Sylius\Behat\Page\SymfonyPage; |
| 15 | -use Webmozart\Assert\Assert; |
|
| 16 | 15 | |
| 17 | 16 | /** |
| 18 | 17 | * @author Magdalena Banasiak <[email protected]> |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | { |
| 50 | 50 | foreach ($variant->getOptionValues() as $option) { |
| 51 | 51 | if (!$existingVariant->hasOptionValue($option)) { |
| 52 | - return false; |
|
| 52 | + return false; |
|
| 53 | 53 | } |
| 54 | 54 | } |
| 55 | 55 | |