Completed
Push — assert-overflow ( 0688b3...fbf83a )
by Kamil
66:00 queued 44:43
created
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.
src/Sylius/Component/Core/StateResolver/OrderPaymentStateResolver.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 
14 14
 use SM\Factory\FactoryInterface;
15 15
 use SM\StateMachine\StateMachineInterface;
16
-use Sylius\Component\Order\Model\OrderInterface;
17
-use Sylius\Component\Order\StateResolver\StateResolverInterface;
18 16
 use Sylius\Component\Core\Model\PaymentInterface;
19 17
 use Sylius\Component\Core\OrderPaymentTransitions;
18
+use Sylius\Component\Order\Model\OrderInterface;
19
+use Sylius\Component\Order\StateResolver\StateResolverInterface;
20 20
 
21 21
 /**
22 22
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Component/Core/StateResolver/OrderShippingStateResolver.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 use SM\Factory\FactoryInterface;
15 15
 use SM\StateMachine\StateMachineInterface;
16
-use Sylius\Component\Order\Model\OrderInterface;
17
-use Sylius\Component\Order\StateResolver\StateResolverInterface;
18 16
 use Sylius\Component\Core\Model\ShipmentInterface;
19 17
 use Sylius\Component\Core\OrderShippingStates;
20 18
 use Sylius\Component\Core\OrderShippingTransitions;
19
+use Sylius\Component\Order\Model\OrderInterface;
20
+use Sylius\Component\Order\StateResolver\StateResolverInterface;
21 21
 
22 22
 /**
23 23
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Definition/ActionGroup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @return array
56
+     * @return Action[]
57 57
      */
58 58
     public function getActions()
59 59
     {
Please login to merge, or discard this patch.
Sylius/Component/Product/Model/ProductOptionValueTranslationInterface.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/Component/Promotion/Model/PromotionCouponInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param int|null $usageLimit
30
+     * @return void
30 31
      */
31 32
     public function setUsageLimit($usageLimit);
32 33
 
@@ -37,11 +38,18 @@  discard block
 block discarded – undo
37 38
 
38 39
     /**
39 40
      * @param int $used
41
+     * @return void
40 42
      */
41 43
     public function setUsed($used);
42 44
 
45
+    /**
46
+     * @return void
47
+     */
43 48
     public function incrementUsed();
44 49
 
50
+    /**
51
+     * @return void
52
+     */
45 53
     public function decrementUsed();
46 54
 
47 55
     /**
@@ -51,6 +59,7 @@  discard block
 block discarded – undo
51 59
 
52 60
     /**
53 61
      * @param PromotionInterface $promotion
62
+     * @return void
54 63
      */
55 64
     public function setPromotion(PromotionInterface $promotion = null);
56 65
 
@@ -61,6 +70,7 @@  discard block
 block discarded – undo
61 70
 
62 71
     /**
63 72
      * @param \DateTime $expiresAt
73
+     * @return void
64 74
      */
65 75
     public function setExpiresAt(\DateTime $expiresAt = null);
66 76
 
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Model/PromotionInterface.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * @param string $name
31
+     * @return void
31 32
      */
32 33
     public function setName($name);
33 34
 
@@ -38,6 +39,7 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param string $description
42
+     * @return void
41 43
      */
42 44
     public function setDescription($description);
43 45
 
@@ -48,6 +50,7 @@  discard block
 block discarded – undo
48 50
 
49 51
     /**
50 52
      * @param int $priority
53
+     * @return void
51 54
      */
52 55
     public function setPriority($priority);
53 56
 
@@ -58,6 +61,7 @@  discard block
 block discarded – undo
58 61
 
59 62
     /**
60 63
      * @param bool $exclusive
64
+     * @return void
61 65
      */
62 66
     public function setExclusive($exclusive);
63 67
 
@@ -68,6 +72,7 @@  discard block
 block discarded – undo
68 72
 
69 73
     /**
70 74
      * @param int $usageLimit
75
+     * @return void
71 76
      */
72 77
     public function setUsageLimit($usageLimit);
73 78
 
@@ -78,11 +83,18 @@  discard block
 block discarded – undo
78 83
 
79 84
     /**
80 85
      * @param int $used
86
+     * @return void
81 87
      */
82 88
     public function setUsed($used);
83 89
 
90
+    /**
91
+     * @return void
92
+     */
84 93
     public function incrementUsed();
85 94
 
95
+    /**
96
+     * @return void
97
+     */
86 98
     public function decrementUsed();
87 99
 
88 100
     /**
@@ -92,6 +104,7 @@  discard block
 block discarded – undo
92 104
 
93 105
     /**
94 106
      * @param \DateTime $startsAt
107
+     * @return void
95 108
      */
96 109
     public function setStartsAt(\DateTime $startsAt = null);
97 110
 
@@ -102,6 +115,7 @@  discard block
 block discarded – undo
102 115
 
103 116
     /**
104 117
      * @param \DateTime $endsAt
118
+     * @return void
105 119
      */
106 120
     public function setEndsAt(\DateTime $endsAt = null);
107 121
 
@@ -112,6 +126,7 @@  discard block
 block discarded – undo
112 126
 
113 127
     /**
114 128
      * @param bool $couponBased
129
+     * @return void
115 130
      */
116 131
     public function setCouponBased($couponBased);
117 132
 
@@ -134,11 +149,13 @@  discard block
 block discarded – undo
134 149
 
135 150
     /**
136 151
      * @param PromotionCouponInterface $coupon
152
+     * @return void
137 153
      */
138 154
     public function addCoupon(PromotionCouponInterface $coupon);
139 155
 
140 156
     /**
141 157
      * @param PromotionCouponInterface $coupon
158
+     * @return void
142 159
      */
143 160
     public function removeCoupon(PromotionCouponInterface $coupon);
144 161
 
@@ -161,11 +178,13 @@  discard block
 block discarded – undo
161 178
 
162 179
     /**
163 180
      * @param PromotionRuleInterface $rule
181
+     * @return void
164 182
      */
165 183
     public function addRule(PromotionRuleInterface $rule);
166 184
 
167 185
     /**
168 186
      * @param PromotionRuleInterface $rule
187
+     * @return void
169 188
      */
170 189
     public function removeRule(PromotionRuleInterface $rule);
171 190
 
@@ -188,11 +207,13 @@  discard block
 block discarded – undo
188 207
 
189 208
     /**
190 209
      * @param PromotionActionInterface $action
210
+     * @return void
191 211
      */
192 212
     public function addAction(PromotionActionInterface $action);
193 213
 
194 214
     /**
195 215
      * @param PromotionActionInterface $action
216
+     * @return void
196 217
      */
197 218
     public function removeAction(PromotionActionInterface $action);
198 219
 }
Please login to merge, or discard this patch.