Completed
Push — component-bundle ( 0f1f3e )
by Kamil
35:06
created
src/Sylius/Behat/Page/Shop/Account/RegisterPageInterface.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -26,37 +26,49 @@
 block discarded – undo
26 26
      */
27 27
     public function checkValidationMessageFor($element, $message);
28 28
 
29
+    /**
30
+     * @return void
31
+     */
29 32
     public function register();
30 33
 
31 34
     /**
32 35
      * @param string $email
36
+     * @return void
33 37
      */
34 38
     public function specifyEmail($email);
35 39
 
36 40
     /**
37 41
      * @param string $firstName
42
+     * @return void
38 43
      */
39 44
     public function specifyFirstName($firstName);
40 45
 
41 46
     /**
42 47
      * @param string $lastName
48
+     * @return void
43 49
      */
44 50
     public function specifyLastName($lastName);
45 51
 
46 52
     /**
47 53
      * @param string $password
54
+     * @return void
48 55
      */
49 56
     public function specifyPassword($password);
50 57
 
51 58
     /**
52 59
      * @param string $phoneNumber
60
+     * @return void
53 61
      */
54 62
     public function specifyPhoneNumber($phoneNumber);
55 63
 
56 64
     /**
57 65
      * @param string $password
66
+     * @return void
58 67
      */
59 68
     public function verifyPassword($password);
60 69
 
70
+    /**
71
+     * @return void
72
+     */
61 73
     public function subscribeToTheNewsletter();
62 74
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Cart/SummaryPageInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -70,17 +70,20 @@  discard block
 block discarded – undo
70 70
 
71 71
     /**
72 72
      * @param string $productName
73
+     * @return void
73 74
      */
74 75
     public function removeProduct($productName);
75 76
 
76 77
     /**
77 78
      * @param string $productName
78 79
      * @param int $quantity
80
+     * @return void
79 81
      */
80 82
     public function changeQuantity($productName, $quantity);
81 83
 
82 84
     /**
83 85
      * @param string $couponCode
86
+     * @return void
84 87
      */
85 88
     public function applyCoupon($couponCode);
86 89
 
@@ -143,12 +146,19 @@  discard block
 block discarded – undo
143 146
      */
144 147
     public function getCartTotal();
145 148
 
149
+    /**
150
+     * @return void
151
+     */
146 152
     public function clearCart();
147 153
 
154
+    /**
155
+     * @return void
156
+     */
148 157
     public function updateCart();
149 158
 
150 159
     /**
151 160
      * @param int $timeout
161
+     * @return void
152 162
      */
153 163
     public function waitForRedirect($timeout);
154 164
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/CompletePageInterface.php 2 patches
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -75,6 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
     /**
77 77
      * @param string $notes
78
+     * @return void
78 79
      */
79 80
     public function addNotes($notes);
80 81
 
@@ -135,12 +136,24 @@  discard block
 block discarded – undo
135 136
      */
136 137
     public function hasProductOutOfStockValidationMessage(ProductInterface $product);
137 138
 
139
+    /**
140
+     * @return void
141
+     */
138 142
     public function changeAddress();
139 143
 
144
+    /**
145
+     * @return void
146
+     */
140 147
     public function changeShippingMethod();
141 148
 
149
+    /**
150
+     * @return void
151
+     */
142 152
     public function changePaymentMethod();
143 153
 
154
+    /**
155
+     * @return void
156
+     */
144 157
     public function confirmOrder();
145 158
 
146 159
     /**
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Sylius\Component\Core\Model\AddressInterface;
16 16
 use Sylius\Component\Core\Model\ProductInterface;
17 17
 use Sylius\Component\Core\Model\ShippingMethodInterface;
18
-use Sylius\Component\Payment\Model\PaymentMethodInterface;
19 18
 
20 19
 /**
21 20
  * @author Mateusz Zalewski <[email protected]>
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/Bundle/CoreBundle/Context/CustomerContext.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     /**
46 46
      * Gets customer based on currently logged user.
47 47
      *
48
-     * @return CustomerInterface|null
48
+     * @return null|\Sylius\Component\Customer\Model\CustomerInterface
49 49
      */
50 50
     public function getCustomer()
51 51
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/PayumBundle/DependencyInjection/SyliusPayumExtension.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\PayumBundle\DependencyInjection;
13 13
 
14
-use Payum\Bundle\PayumBundle\DependencyInjection\MainConfiguration as PayumConfiguration;
15
-use Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension;
16 14
 use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension;
17 15
 use Symfony\Component\Config\FileLocator;
18 16
 use Symfony\Component\DependencyInjection\ContainerBuilder;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     public function load(array $config, ContainerBuilder $container)
28 28
     {
29 29
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
30
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
31 31
 
32 32
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
33 33
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/AssetTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -101,6 +101,9 @@
 block discarded – undo
101 101
         return $webDirectory;
102 102
     }
103 103
 
104
+    /**
105
+     * @param string $webDirectory
106
+     */
104 107
     private function assertFileContent($lines, $webDirectory)
105 108
     {
106 109
         foreach ($lines as $line) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         parent::tearDown();
24 24
 
25
-        file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset'.PHP_EOL);
25
+        file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset' . PHP_EOL);
26 26
     }
27 27
 
28 28
     /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask);
59 59
 
60 60
         sleep(1);
61
-        file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified');
61
+        file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified');
62 62
         clearstatcache();
63 63
 
64 64
         $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     private function createWebDirectory()
93 93
     {
94
-        $webDirectory = $this->getTmpDirPath(self::TEST_CASE).'/web';
94
+        $webDirectory = $this->getTmpDirPath(self::TEST_CASE) . '/web';
95 95
         if (!is_dir($webDirectory)) {
96 96
             mkdir($webDirectory, 0777, true);
97 97
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
             list($expectedText, $assetFile) = explode(': ', $line);
112 112
 
113
-            $contents = file_get_contents($webDirectory.$assetFile);
113
+            $contents = file_get_contents($webDirectory . $assetFile);
114 114
 
115 115
             $this->assertEquals($expectedText, trim($contents));
116 116
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Twig/ThemeFilesystemLoader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     }
105 105
 
106 106
     /**
107
-     * @param TemplateReferenceInterface|string $template
107
+     * @param string $template
108 108
      *
109 109
      * @return string
110 110
      */
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/OrderInterface.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 use Sylius\Component\Customer\Model\CustomerAwareInterface;
17 17
 use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface;
18 18
 use Sylius\Component\Payment\Model\PaymentsSubjectInterface;
19
-use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface;
20 19
 use Sylius\Component\Promotion\Model\CountablePromotionSubjectInterface;
21 20
 use Sylius\Component\Promotion\Model\PromotionCouponAwarePromotionSubjectInterface;
21
+use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface;
22 22
 use Sylius\Component\User\Model\UserInterface;
23 23
 
24 24
 /**
Please login to merge, or discard this patch.
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -44,6 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param AddressInterface $address
47
+     * @return void
47 48
      */
48 49
     public function setShippingAddress(AddressInterface $address);
49 50
 
@@ -54,6 +55,7 @@  discard block
 block discarded – undo
54 55
 
55 56
     /**
56 57
      * @param AddressInterface $address
58
+     * @return void
57 59
      */
58 60
     public function setBillingAddress(AddressInterface $address);
59 61
 
@@ -64,6 +66,7 @@  discard block
 block discarded – undo
64 66
 
65 67
     /**
66 68
      * @param string $checkoutState
69
+     * @return void
67 70
      */
68 71
     public function setCheckoutState($checkoutState);
69 72
 
@@ -74,6 +77,7 @@  discard block
 block discarded – undo
74 77
 
75 78
     /**
76 79
      * @param string $paymentState
80
+     * @return void
77 81
      */
78 82
     public function setPaymentState($paymentState);
79 83
 
@@ -101,14 +105,19 @@  discard block
 block discarded – undo
101 105
 
102 106
     /**
103 107
      * @param ShipmentInterface $shipment
108
+     * @return void
104 109
      */
105 110
     public function addShipment(ShipmentInterface $shipment);
106 111
 
107 112
     /**
108 113
      * @param ShipmentInterface $shipment
114
+     * @return void
109 115
      */
110 116
     public function removeShipment(ShipmentInterface $shipment);
111 117
 
118
+    /**
119
+     * @return void
120
+     */
112 121
     public function removeShipments();
113 122
 
114 123
     /**
@@ -127,6 +136,7 @@  discard block
 block discarded – undo
127 136
      * @param string
128 137
      *
129 138
      * @throws \InvalidArgumentException
139
+     * @return void
130 140
      */
131 141
     public function setCurrencyCode($currencyCode);
132 142
 
@@ -139,11 +149,13 @@  discard block
 block discarded – undo
139 149
 
140 150
     /**
141 151
      * @param string
152
+     * @return void
142 153
      */
143 154
     public function setLocaleCode($localeCode);
144 155
 
145 156
     /**
146 157
      * @param BaseCouponInterface $coupon
158
+     * @return void
147 159
      */
148 160
     public function setPromotionCoupon(BaseCouponInterface $coupon = null);
149 161
 
@@ -154,6 +166,7 @@  discard block
 block discarded – undo
154 166
 
155 167
     /**
156 168
      * @param string $state
169
+     * @return void
157 170
      */
158 171
     public function setShippingState($state);
159 172
 
@@ -186,6 +199,7 @@  discard block
 block discarded – undo
186 199
 
187 200
     /**
188 201
      * @param string $tokenValue
202
+     * @return void
189 203
      */
190 204
     public function setTokenValue($tokenValue);
191 205
 
@@ -196,6 +210,7 @@  discard block
 block discarded – undo
196 210
 
197 211
     /**
198 212
      * @param string $customerIp
213
+     * @return void
199 214
      */
200 215
     public function setCustomerIp($customerIp);
201 216
 }
Please login to merge, or discard this patch.