@@ -105,10 +105,10 @@ |
||
105 | 105 | if (isset($sorting['price'])) { |
106 | 106 | // Another hack, the subquery to get the first position variant |
107 | 107 | $subQuery = $this->createQueryBuilder('m') |
108 | - ->select('min(v.position)') |
|
109 | - ->innerJoin('m.variants', 'v') |
|
110 | - ->andWhere('m.id = :product_id') |
|
111 | - ; |
|
108 | + ->select('min(v.position)') |
|
109 | + ->innerJoin('m.variants', 'v') |
|
110 | + ->andWhere('m.id = :product_id') |
|
111 | + ; |
|
112 | 112 | |
113 | 113 | $queryBuilder |
114 | 114 | ->addSelect('variant') |
@@ -22,18 +22,21 @@ |
||
22 | 22 | /** |
23 | 23 | * @throws UnsupportedDriverActionException |
24 | 24 | * @throws DriverException |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function authorize(); |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * @throws UnsupportedDriverActionException |
30 | 31 | * @throws DriverException |
32 | + * @return void |
|
31 | 33 | */ |
32 | 34 | public function pay(); |
33 | 35 | |
34 | 36 | /** |
35 | 37 | * @throws UnsupportedDriverActionException |
36 | 38 | * @throws DriverException |
39 | + * @return void |
|
37 | 40 | */ |
38 | 41 | public function cancel(); |
39 | 42 | } |
@@ -19,7 +19,13 @@ |
||
19 | 19 | |
20 | 20 | interface PaymentMethodInterface extends BasePaymentMethodInterface, ChannelsAwareInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function setGatewayConfig(?GatewayConfigInterface $gateway): void; |
23 | 26 | |
27 | + /** |
|
28 | + * @return GatewayConfigInterface |
|
29 | + */ |
|
24 | 30 | public function getGatewayConfig(): ?GatewayConfigInterface; |
25 | 31 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ->setDescription('Install sample data into Sylius.') |
33 | 33 | ->setHelp(<<<EOT |
34 | 34 | The <info>%command.name%</info> command loads the sample data for Sylius. |
35 | -EOT |
|
35 | +eot |
|
36 | 36 | ) |
37 | 37 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
38 | 38 | ; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | ->setDescription('Installs Sylius in your preferred environment.') |
52 | 52 | ->setHelp(<<<EOT |
53 | 53 | The <info>%command.name%</info> command installs Sylius. |
54 | -EOT |
|
54 | +eot |
|
55 | 55 | ) |
56 | 56 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
57 | 57 | ; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | ->setDescription('Install Sylius database.') |
31 | 31 | ->setHelp(<<<EOT |
32 | 32 | The <info>%command.name%</info> command creates Sylius database. |
33 | -EOT |
|
33 | +eot |
|
34 | 34 | ) |
35 | 35 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
36 | 36 | ; |
@@ -947,6 +947,9 @@ |
||
947 | 947 | $this->objectManager->flush(); |
948 | 948 | } |
949 | 949 | |
950 | + /** |
|
951 | + * @param ProductVariantInterface $variant |
|
952 | + */ |
|
950 | 953 | private function createProductImage( |
951 | 954 | ProductInterface $product, |
952 | 955 | string $imagePath, |
@@ -18,15 +18,15 @@ |
||
18 | 18 | use Sylius\Behat\NotificationType; |
19 | 19 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
20 | 20 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
21 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
22 | +use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface; |
|
23 | +use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface; |
|
21 | 24 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
22 | 25 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
23 | 26 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
24 | 27 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; |
25 | 28 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
26 | 29 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
27 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
28 | -use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface; |
|
29 | -use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface; |
|
30 | 30 | use Sylius\Behat\Service\NotificationCheckerInterface; |
31 | 31 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
32 | 32 | use Sylius\Behat\Service\SharedStorageInterface; |
@@ -17,11 +17,22 @@ |
||
17 | 17 | |
18 | 18 | interface PromotionCouponInterface extends BasePromotionCouponInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return integer|null |
|
22 | + */ |
|
20 | 23 | public function getPerCustomerUsageLimit(): ?int; |
21 | 24 | |
25 | + /** |
|
26 | + * @param integer $perCustomerUsageLimit |
|
27 | + * |
|
28 | + * @return void |
|
29 | + */ |
|
22 | 30 | public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void; |
23 | 31 | |
24 | 32 | public function isReusableFromCancelledOrders(): bool; |
25 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
26 | 37 | public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void; |
27 | 38 | } |