Completed
Push — sonata-block-4 ( 430eec...7b4499 )
by Kamil
66:32 queued 45:06
created
src/Sylius/Behat/Page/Shop/Product/ShowPage.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     public function hasAssociation(string $productAssociationName): bool
141 141
     {
142
-        try{
142
+        try {
143 143
             $this->getElement('association', ['%associationName%' => $productAssociationName]);
144 144
         } catch (ElementNotFoundException $e) {
145 145
             return false;
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
     public function hasReviewTitled(string $title): bool
172 172
     {
173
-        try{
173
+        try {
174 174
             $element = $this->getElement('reviews_comment', ['%title%' => $title]);
175 175
         } catch (ElementNotFoundException $e) {
176 176
             return false;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
     public function isMainImageDisplayed(): bool
188 188
     {
189
-        if ( !$this->hasElement('main_image')) {
189
+        if (!$this->hasElement('main_image')) {
190 190
             return false;
191 191
         }
192 192
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
     public function hasAssociation(string $productAssociationName): bool
141 141
     {
142
-        try{
142
+        try {
143 143
             $this->getElement('association', ['%associationName%' => $productAssociationName]);
144 144
         } catch (ElementNotFoundException $e) {
145 145
             return false;
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
     public function hasReviewTitled(string $title): bool
172 172
     {
173
-        try{
173
+        try {
174 174
             $element = $this->getElement('reviews_comment', ['%title%' => $title]);
175 175
         } catch (ElementNotFoundException $e) {
176 176
             return false;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/IndexPage.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     public function isProductOnList(string $productName): bool
66 66
     {
67
-        try{
67
+        try {
68 68
             $this->getElement('product_name', ['%productName%' => $productName]);
69 69
         } catch (ElementNotFoundException $e) {
70 70
             return false;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
     public function isProductOnList(string $productName): bool
66 66
     {
67
-        try{
67
+        try {
68 68
             $this->getElement('product_name', ['%productName%' => $productName]);
69 69
         } catch (ElementNotFoundException $e) {
70 70
             return false;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/ShowAvailablePluginsCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,6 +63,6 @@
 block discarded – undo
63 63
         $this->plugins->add(new PluginInfo('<info>Customer Reorder</info>', 'Convenient reordering for the customers from the `My account` section.', 'https://github.com/Sylius/CustomerReorderPlugin'));
64 64
         $this->plugins->add(new PluginInfo('<info>Invoicing</info>', 'Automatised, basic invoicing system for orders.', 'https://github.com/Sylius/InvoicingPlugin'));
65 65
         $this->plugins->add(new PluginInfo('<info>Refund</info>', 'Full and partial refunds of items and/or shipping costs including Credit Memos.', 'https://github.com/Sylius/RefundPlugin'));
66
-        $this->plugins->add(new PluginInfo('<info>CMS</info>', 'This plugin allows you to add dynamic blocks with images, text or HTML to your storefront as well as pages and FAQs section.','https://github.com/BitBagCommerce/SyliusCmsPlugin' ));
66
+        $this->plugins->add(new PluginInfo('<info>CMS</info>', 'This plugin allows you to add dynamic blocks with images, text or HTML to your storefront as well as pages and FAQs section.', 'https://github.com/BitBagCommerce/SyliusCmsPlugin'));
67 67
     }
68 68
 }
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.
src/Sylius/Behat/Page/Admin/Channel/CreatePageInterface.php 1 patch
Doc Comments   +54 added lines patch added patch discarded remove patch
@@ -17,39 +17,93 @@
 block discarded – undo
17 17
 
18 18
 interface CreatePageInterface extends BaseCreatePageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function enable(): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function disable(): void;
23 29
 
30
+    /**
31
+     * @return void
32
+     */
24 33
     public function nameIt(string $name): void;
25 34
 
35
+    /**
36
+     * @return void
37
+     */
26 38
     public function specifyCode(string $code): void;
27 39
 
40
+    /**
41
+     * @return void
42
+     */
28 43
     public function describeItAs(string $description): void;
29 44
 
45
+    /**
46
+     * @return void
47
+     */
30 48
     public function setHostname(string $hostname): void;
31 49
 
50
+    /**
51
+     * @return void
52
+     */
32 53
     public function setContactEmail(string $contactEmail): void;
33 54
 
55
+    /**
56
+     * @return void
57
+     */
34 58
     public function defineColor(string $color): void;
35 59
 
60
+    /**
61
+     * @return void
62
+     */
36 63
     public function chooseLocale(string $language): void;
37 64
 
65
+    /**
66
+     * @return void
67
+     */
38 68
     public function chooseCurrency(string $currencyCode): void;
39 69
 
70
+    /**
71
+     * @return void
72
+     */
40 73
     public function chooseDefaultTaxZone(string $taxZone): void;
41 74
 
75
+    /**
76
+     * @return void
77
+     */
42 78
     public function chooseDefaultLocale(?string $locale): void;
43 79
 
80
+    /**
81
+     * @return void
82
+     */
44 83
     public function chooseBaseCurrency(?string $currency): void;
45 84
 
85
+    /**
86
+     * @return void
87
+     */
46 88
     public function chooseTaxCalculationStrategy(string $taxCalculationStrategy): void;
47 89
 
90
+    /**
91
+     * @return void
92
+     */
48 93
     public function allowToSkipShippingStep(): void;
49 94
 
95
+    /**
96
+     * @return void
97
+     */
50 98
     public function allowToSkipPaymentStep(): void;
51 99
 
100
+    /**
101
+     * @return void
102
+     */
52 103
     public function setType(string $type): void;
53 104
 
105
+    /**
106
+     * @return void
107
+     */
54 108
     public function specifyMenuTaxon(string $menuTaxon): void;
55 109
 }
Please login to merge, or discard this patch.