Completed
Push — travis-xenial ( 7a72dd...c18ce8 )
by Kamil
12:54 queued 05:28
created
src/Sylius/Bundle/CoreBundle/Fixture/OptionsResolver/LazyOption.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     public static function findOneBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure
124 124
     {
125 125
         return
126
-            /** @param mixed $previousValue */
126
+            /** @param string $previousValue */
127 127
             function (Options $options, $previousValue) use ($repository, $field, $criteria): ?object {
128 128
                 if (null === $previousValue || [] === $previousValue) {
129 129
                     return $previousValue;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 
103 103
     public static function findBy(RepositoryInterface $repository, string $field, array $criteria = []): \Closure
104 104
     {
105
-        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria): ?iterable {
105
+        return function (Options $options, ?array $previousValues) use ($repository, $field, $criteria) : ?iterable {
106 106
             if (null === $previousValues || [] === $previousValues) {
107 107
                 return $previousValues;
108 108
             }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/CompletePageInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function hasShippingMethod(ShippingMethodInterface $shippingMethod): bool;
40 40
 
41
+    /**
42
+     * @return void
43
+     */
41 44
     public function addNotes(string $notes): void;
42 45
 
43 46
     public function hasPromotionTotal(string $promotionTotal): bool;
@@ -62,12 +65,24 @@  discard block
 block discarded – undo
62 65
 
63 66
     public function hasCurrency(string $currencyCode): bool;
64 67
 
68
+    /**
69
+     * @return void
70
+     */
65 71
     public function confirmOrder(): void;
66 72
 
73
+    /**
74
+     * @return void
75
+     */
67 76
     public function changeAddress(): void;
68 77
 
78
+    /**
79
+     * @return void
80
+     */
69 81
     public function changeShippingMethod(): void;
70 82
 
83
+    /**
84
+     * @return void
85
+     */
71 86
     public function changePaymentMethod(): void;
72 87
 
73 88
     public function hasShippingProvinceName(string $provinceName): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectPaymentPageInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -17,18 +17,33 @@
 block discarded – undo
17 17
 
18 18
 interface SelectPaymentPageInterface extends SymfonyPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function selectPaymentMethod(string $paymentMethod): void;
21 24
 
22 25
     public function hasPaymentMethod(string $paymentMethodName): bool;
23 26
 
24 27
     public function getItemSubtotal(string $itemName): string;
25 28
 
29
+    /**
30
+     * @return void
31
+     */
26 32
     public function nextStep(): void;
27 33
 
34
+    /**
35
+     * @return void
36
+     */
28 37
     public function changeShippingMethod(): void;
29 38
 
39
+    /**
40
+     * @return void
41
+     */
30 42
     public function changeShippingMethodByStepLabel(): void;
31 43
 
44
+    /**
45
+     * @return void
46
+     */
32 47
     public function changeAddressByStepLabel(): void;
33 48
 
34 49
     public function hasNoAvailablePaymentMethodsWarning(): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectShippingPageInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
 
18 18
 interface SelectShippingPageInterface extends SymfonyPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function selectShippingMethod(string $shippingMethod): void;
21 24
 
22 25
     public function getShippingMethods(): array;
@@ -29,10 +32,19 @@  discard block
 block discarded – undo
29 32
 
30 33
     public function getItemSubtotal(string $itemName): string;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function nextStep(): void;
33 39
 
40
+    /**
41
+     * @return void
42
+     */
34 43
     public function changeAddress(): void;
35 44
 
45
+    /**
46
+     * @return void
47
+     */
36 48
     public function changeAddressByStepLabel(): void;
37 49
 
38 50
     public function getPurchaserEmail(): string;
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Product.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -464,6 +464,9 @@
 block discarded – undo
464 464
         return new ProductTranslation();
465 465
     }
466 466
 
467
+    /**
468
+     * @param string $fallbackLocaleCode
469
+     */
467 470
     protected function getAttributeInDifferentLocale(
468 471
         ProductAttributeValueInterface $attributeValue,
469 472
         string $localeCode,
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Contact/ContactPageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,10 +17,19 @@
 block discarded – undo
17 17
 
18 18
 interface ContactPageInterface extends PageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function specifyEmail(?string $email): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function specifyMessage(?string $message): void;
23 29
 
30
+    /**
31
+     * @return void
32
+     */
24 33
     public function send(): void;
25 34
 
26 35
     public function getValidationMessageFor(string $element): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/HomePageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function hasLogoutButton(): bool;
23 23
 
24
+    /**
25
+     * @return void
26
+     */
24 27
     public function logOut();
25 28
 
26 29
     public function getFullName(): string;
@@ -29,12 +32,18 @@  discard block
 block discarded – undo
29 32
 
30 33
     public function getAvailableCurrencies(): array;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function switchCurrency(string $currencyCode): void;
33 39
 
34 40
     public function getActiveLocale(): string;
35 41
 
36 42
     public function getAvailableLocales(): array;
37 43
 
44
+    /**
45
+     * @return void
46
+     */
38 47
     public function switchLocale(string $localeCode): void;
39 48
 
40 49
     public function getLatestProductsNames(): array;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Order/ShowPageInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -19,8 +19,14 @@
 block discarded – undo
19 19
 {
20 20
     public function hasPayAction(): bool;
21 21
 
22
+    /**
23
+     * @return void
24
+     */
22 25
     public function pay(): void;
23 26
 
27
+    /**
28
+     * @return void
29
+     */
24 30
     public function choosePaymentMethod(string $paymentMethodName): void;
25 31
 
26 32
     public function getNotifications(): array;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Order/ThankYouPageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,8 +17,14 @@  discard block
 block discarded – undo
17 17
 
18 18
 interface ThankYouPageInterface extends SymfonyPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function goToTheChangePaymentMethodPage(): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function goToOrderDetailsInAccount(): void;
23 29
 
24 30
     public function hasThankYouMessage(): bool;
@@ -31,5 +37,8 @@  discard block
 block discarded – undo
31 37
 
32 38
     public function hasRegistrationButton(): bool;
33 39
 
40
+    /**
41
+     * @return void
42
+     */
34 43
     public function createAccount(): void;
35 44
 }
Please login to merge, or discard this patch.