Completed
Push — cleanup/resource-controller-to... ( 78868a )
by Kamil
45:32 queued 21:48
created
src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php 3 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     }
305 305
 
306 306
     /**
307
-     * @return bool
307
+     * @return boolean|null
308 308
      */
309 309
     private function waitForLoginAction()
310 310
     {
@@ -314,6 +314,8 @@  discard block
 block discarded – undo
314 314
     }
315 315
 
316 316
     /**
317
+     * @param integer $timeout
318
+     * @param string $elementName
317 319
      * @return bool
318 320
      */
319 321
     private function waitForElement($timeout, $elementName)
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -14,12 +14,8 @@
 block discarded – undo
14 14
 use Behat\Mink\Driver\Selenium2Driver;
15 15
 use Behat\Mink\Element\NodeElement;
16 16
 use Behat\Mink\Exception\ElementNotFoundException;
17
-use Behat\Mink\Session;
18 17
 use Sylius\Behat\Page\SymfonyPage;
19 18
 use Sylius\Component\Core\Model\AddressInterface;
20
-use Sylius\Component\Locale\Context\LocaleContextInterface;
21
-use Symfony\Component\Intl\Intl;
22
-use Symfony\Component\Routing\RouterInterface;
23 19
 use Webmozart\Assert\Assert;
24 20
 
25 21
 /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
      */
319 319
     private function waitForElement($timeout, $elementName)
320 320
     {
321
-        return $this->getDocument()->waitFor($timeout, function () use ($elementName){
321
+        return $this->getDocument()->waitFor($timeout, function () use ($elementName) {
322 322
             return $this->hasElement($elementName);
323 323
         });
324 324
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/AddressPageInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -21,6 +21,7 @@  discard block
 block discarded – undo
21 21
 {
22 22
     /**
23 23
      * @throws \RuntimeException
24
+     * @return void
24 25
      */
25 26
     public function chooseDifferentBillingAddress();
26 27
 
@@ -39,21 +40,25 @@  discard block
 block discarded – undo
39 40
 
40 41
     /**
41 42
      * @param AddressInterface $billingAddress
43
+     * @return void
42 44
      */
43 45
     public function specifyBillingAddress(AddressInterface $billingAddress);
44 46
 
45 47
     /**
46 48
      * @param string $province
49
+     * @return void
47 50
      */
48 51
     public function selectBillingAddressProvince($province);
49 52
 
50 53
     /**
51 54
      * @param AddressInterface $shippingAddress
55
+     * @return void
52 56
      */
53 57
     public function specifyShippingAddress(AddressInterface $shippingAddress);
54 58
 
55 59
     /**
56 60
      * @param string $province
61
+     * @return void
57 62
      */
58 63
     public function selectShippingAddressProvince($province);
59 64
 
@@ -62,15 +67,20 @@  discard block
 block discarded – undo
62 67
      */
63 68
     public function canSignIn();
64 69
 
70
+    /**
71
+     * @return void
72
+     */
65 73
     public function signIn();
66 74
 
67 75
     /**
68 76
      * @param string $email
77
+     * @return void
69 78
      */
70 79
     public function specifyEmail($email);
71 80
 
72 81
     /**
73 82
      * @param string $password
83
+     * @return void
74 84
      */
75 85
     public function specifyPassword($password);
76 86
 
@@ -86,17 +96,25 @@  discard block
 block discarded – undo
86 96
      */
87 97
     public function getShippingAddressCountry();
88 98
 
99
+    /**
100
+     * @return void
101
+     */
89 102
     public function nextStep();
90 103
 
104
+    /**
105
+     * @return void
106
+     */
91 107
     public function backToStore();
92 108
 
93 109
     /**
94 110
      * @param string $provinceName
111
+     * @return void
95 112
      */
96 113
     public function specifyBillingAddressProvince($provinceName);
97 114
 
98 115
     /**
99 116
      * @param string $provinceName
117
+     * @return void
100 118
      */
101 119
     public function specifyShippingAddressProvince($provinceName);
102 120
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectPaymentPageInterface.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @param string $paymentMethod
23
+     * @return void
23 24
      */
24 25
     public function selectPaymentMethod($paymentMethod);
25 26
     
@@ -37,12 +38,24 @@  discard block
 block discarded – undo
37 38
      */
38 39
     public function getItemSubtotal($itemName);
39 40
 
41
+    /**
42
+     * @return void
43
+     */
40 44
     public function nextStep();
41 45
 
46
+    /**
47
+     * @return void
48
+     */
42 49
     public function changeShippingMethod();
43 50
 
51
+    /**
52
+     * @return void
53
+     */
44 54
     public function changeShippingMethodByStepLabel();
45 55
 
56
+    /**
57
+     * @return void
58
+     */
46 59
     public function changeAddressByStepLabel();
47 60
 
48 61
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/SelectShippingPageInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * @param string $shippingMethod
23
+     * @return void
23 24
      */
24 25
     public function selectShippingMethod($shippingMethod);
25 26
 
@@ -50,10 +51,19 @@  discard block
 block discarded – undo
50 51
      */
51 52
     public function getItemSubtotal($itemName);
52 53
 
54
+    /**
55
+     * @return void
56
+     */
53 57
     public function nextStep();
54 58
 
59
+    /**
60
+     * @return void
61
+     */
55 62
     public function changeAddress();
56 63
 
64
+    /**
65
+     * @return void
66
+     */
57 67
     public function changeAddressByStepLabel();
58 68
 
59 69
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/HomePageInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param OptionInterface $option
30
+     * @return void
30 31
      */
31 32
     public function setOption(OptionInterface $option = null);
32 33
 
@@ -41,6 +42,7 @@  discard block
 block discarded – undo
41 42
      * Set internal value.
42 43
      *
43 44
      * @param string $value
45
+     * @return void
44 46
      */
45 47
     public function setValue($value);
46 48
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Order/ShowPageInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -26,10 +26,14 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Order/ThankYouPageInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/ShowPageInterface.php 2 patches
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     /**
43 43
      * @param null|TaxonInterface $taxon
44
+     * @return void
44 45
      */
45 46
     public function setParent(TaxonInterface $taxon = null);
46 47
 
@@ -63,11 +64,13 @@  discard block
 block discarded – undo
63 64
 
64 65
     /**
65 66
      * @param TaxonInterface $taxon
67
+     * @return void
66 68
      */
67 69
     public function addChild(TaxonInterface $taxon);
68 70
 
69 71
     /**
70 72
      * @param TaxonInterface $taxon
73
+     * @return void
71 74
      */
72 75
     public function removeChild(TaxonInterface $taxon);
73 76
 
@@ -78,6 +81,7 @@  discard block
 block discarded – undo
78 81
 
79 82
     /**
80 83
      * @param string $name
84
+     * @return void
81 85
      */
82 86
     public function setName($name);
83 87
 
@@ -88,6 +92,7 @@  discard block
 block discarded – undo
88 92
 
89 93
     /**
90 94
      * @param string $permalink
95
+     * @return void
91 96
      */
92 97
     public function setPermalink($permalink);
93 98
 
@@ -98,6 +103,7 @@  discard block
 block discarded – undo
98 103
 
99 104
     /**
100 105
      * @param int $left
106
+     * @return void
101 107
      */
102 108
     public function setLeft($left);
103 109
 
@@ -108,6 +114,7 @@  discard block
 block discarded – undo
108 114
 
109 115
     /**
110 116
      * @param int $right
117
+     * @return void
111 118
      */
112 119
     public function setRight($right);
113 120
 
@@ -118,6 +125,7 @@  discard block
 block discarded – undo
118 125
 
119 126
     /**
120 127
      * @param int $level
128
+     * @return void
121 129
      */
122 130
     public function setLevel($level);
123 131
 }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
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]>
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/StaticContentPageInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.