Completed
Push — travis-trusty ( dc96d8...990048 )
by Kamil
18:15
created
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPage.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
             $imageForm->fillField('Type', $type);
76 76
         }
77 77
 
78
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
78
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
79 79
     }
80 80
 
81 81
     /**
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         $filesPath = $this->getParameter('files_path');
147 147
 
148 148
         $imageForm = $this->getImageElementByType($type);
149
-        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path);
149
+        $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path);
150 150
     }
151 151
 
152 152
     /**
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     private function getImageElementByType($type)
305 305
     {
306 306
         $images = $this->getElement('images');
307
-        $typeInput = $images->find('css', 'input[value="'.$type.'"]');
307
+        $typeInput = $images->find('css', 'input[value="' . $type . '"]');
308 308
 
309 309
         if (null === $typeInput) {
310 310
             return null;
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -199,6 +199,7 @@
 block discarded – undo
199 199
 
200 200
     /**
201 201
      * {@inheritdoc}
202
+     * @param string $name
202 203
      */
203 204
     protected function getElement($name, array $parameters = [])
204 205
     {
Please login to merge, or discard this patch.
tests/Controller/ShippingCategoryApiTest.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
             "name": "Regular",
75 75
             "description": "Regular weight items"
76 76
         }
77
-EOT;
77
+eot;
78 78
 
79 79
         $this->client->request('POST', '/api/v1/shipping-categories/', [], [], static::$authorizedHeaderWithContentType, $data);
80 80
 
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             "name": "Light",
207 207
             "description": "Light weight items"
208 208
         }
209
-EOT;
209
+eot;
210 210
 
211 211
         $this->client->request('PUT', $this->getShippingCategoryUrl($shippingCategory), [], [], static::$authorizedHeaderWithContentType, $data);
212 212
 
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
             "name": "Light",
250 250
             "description": "Light weight items"
251 251
         }
252
-EOT;
252
+eot;
253 253
 
254 254
         $this->client->request('PATCH', $this->getShippingCategoryUrl($shippingCategory), [], [], static::$authorizedHeaderWithContentType, $data);
255 255
 
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductInterface.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -40,6 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     /**
42 42
      * @param string $name
43
+     * @return void
43 44
      */
44 45
     public function setName($name);
45 46
 
@@ -50,6 +51,7 @@  discard block
 block discarded – undo
50 51
 
51 52
     /**
52 53
      * @param string $description
54
+     * @return void
53 55
      */
54 56
     public function setDescription($description);
55 57
 
@@ -60,6 +62,7 @@  discard block
 block discarded – undo
60 62
 
61 63
     /**
62 64
      * @param string $metaKeywords
65
+     * @return void
63 66
      */
64 67
     public function setMetaKeywords($metaKeywords);
65 68
 
@@ -70,6 +73,7 @@  discard block
 block discarded – undo
70 73
 
71 74
     /**
72 75
      * @param string $metaDescription
76
+     * @return void
73 77
      */
74 78
     public function setMetaDescription($metaDescription);
75 79
 
@@ -85,11 +89,13 @@  discard block
 block discarded – undo
85 89
 
86 90
     /**
87 91
      * @param ProductVariantInterface $variant
92
+     * @return void
88 93
      */
89 94
     public function addVariant(ProductVariantInterface $variant);
90 95
 
91 96
     /**
92 97
      * @param ProductVariantInterface $variant
98
+     * @return void
93 99
      */
94 100
     public function removeVariant(ProductVariantInterface $variant);
95 101
 
@@ -112,11 +118,13 @@  discard block
 block discarded – undo
112 118
 
113 119
     /**
114 120
      * @param ProductOptionInterface $option
121
+     * @return void
115 122
      */
116 123
     public function addOption(ProductOptionInterface $option);
117 124
 
118 125
     /**
119 126
      * @param ProductOptionInterface $option
127
+     * @return void
120 128
      */
121 129
     public function removeOption(ProductOptionInterface $option);
122 130
 
@@ -129,6 +137,7 @@  discard block
 block discarded – undo
129 137
 
130 138
     /**
131 139
      * @param ProductAssociationInterface $association
140
+     * @return void
132 141
      */
133 142
     public function addAssociation(ProductAssociationInterface $association);
134 143
 
@@ -139,6 +148,7 @@  discard block
 block discarded – undo
139 148
 
140 149
     /**
141 150
      * @param ProductAssociationInterface $association
151
+     * @return void
142 152
      */
143 153
     public function removeAssociation(ProductAssociationInterface $association);
144 154
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/MoneyBundle/DependencyInjection/SyliusMoneyExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     public function load(array $config, ContainerBuilder $container)
29 29
     {
30 30
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
 
33 33
         $container->setParameter('sylius_money.locale', $config['locale']);
34 34
 
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
             return;
45 45
         }
46 46
 
47
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
47
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
48 48
         $loader->load('services/integrations/currency.xml');
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Storage/StorageInterface.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,12 +33,13 @@
 block discarded – undo
33 33
 
34 34
     /**
35 35
      * @param string $name
36
-     * @param mixed $value
36
+     * @param string $value
37 37
      */
38 38
     public function set($name, $value);
39 39
 
40 40
     /**
41 41
      * @param string $name
42
+     * @return void
42 43
      */
43 44
     public function remove($name);
44 45
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutRedirectListener.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,11 +11,8 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\CoreBundle\Checkout;
13 13
 
14
-use Sylius\Bundle\ResourceBundle\Controller\RedirectHandlerInterface;
15
-use Sylius\Bundle\ResourceBundle\Controller\RequestConfiguration;
16 14
 use Sylius\Bundle\ResourceBundle\Event\ResourceControllerEvent;
17 15
 use Sylius\Component\Core\Model\OrderInterface;
18
-use Sylius\Component\Resource\Model\ResourceInterface;
19 16
 use Symfony\Component\HttpFoundation\RedirectResponse;
20 17
 use Symfony\Component\HttpFoundation\RequestMatcherInterface;
21 18
 use Symfony\Component\HttpFoundation\RequestStack;
Please login to merge, or discard this patch.
CoreBundle/Validator/Constraints/OrderProductEligibilityValidator.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,6 @@
 block discarded – undo
23 23
 final class OrderProductEligibilityValidator extends ConstraintValidator
24 24
 {
25 25
     /**
26
-     * @param OrderInterface $value
27
-     *
28
-     * {@inheritdoc}
29 26
      */
30 27
     public function validate($order, Constraint $constraint)
31 28
     {
Please login to merge, or discard this patch.
Validator/Constraints/OrderShippingMethodEligibilityValidator.php 1 patch
Doc Comments   -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,6 @@
 block discarded – undo
36 36
     }
37 37
 
38 38
     /**
39
-     * @param OrderInterface $value
40
-     *
41
-     * {@inheritdoc}
42 39
      */
43 40
     public function validate($order, Constraint $constraint)
44 41
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariantInterface.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param float $weight
38
+     * @return void
38 39
      */
39 40
     public function setWeight($weight);
40 41
 
@@ -45,6 +46,7 @@  discard block
 block discarded – undo
45 46
 
46 47
     /**
47 48
      * @param float $width
49
+     * @return void
48 50
      */
49 51
     public function setWidth($width);
50 52
 
@@ -55,6 +57,7 @@  discard block
 block discarded – undo
55 57
 
56 58
     /**
57 59
      * @param float $height
60
+     * @return void
58 61
      */
59 62
     public function setHeight($height);
60 63
 
@@ -65,16 +68,19 @@  discard block
 block discarded – undo
65 68
 
66 69
     /**
67 70
      * @param float $depth
71
+     * @return void
68 72
      */
69 73
     public function setDepth($depth);
70 74
 
71 75
     /**
72 76
      * @param TaxCategoryInterface $category
77
+     * @return void
73 78
      */
74 79
     public function setTaxCategory(TaxCategoryInterface $category = null);
75 80
 
76 81
     /**
77 82
      * @param ShippingCategoryInterface $shippingCategory
83
+     * @return void
78 84
      */
79 85
     public function setShippingCategory(ShippingCategoryInterface $shippingCategory);
80 86
 
@@ -106,11 +112,13 @@  discard block
 block discarded – undo
106 112
 
107 113
     /**
108 114
      * @param ChannelPricingInterface $channelPricing
115
+     * @return void
109 116
      */
110 117
     public function addChannelPricing(ChannelPricingInterface $channelPricing);
111 118
 
112 119
     /**
113 120
      * @param ChannelPricingInterface $channelPricing
121
+     * @return void
114 122
      */
115 123
     public function removeChannelPricing(ChannelPricingInterface $channelPricing);
116 124
 
@@ -121,6 +129,7 @@  discard block
 block discarded – undo
121 129
 
122 130
     /**
123 131
      * @param bool $shippingRequired
132
+     * @return void
124 133
      */
125 134
     public function setShippingRequired($shippingRequired);
126 135
 }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
 use Sylius\Component\Resource\Model\VersionedInterface;
18 18
 use Sylius\Component\Shipping\Model\ShippableInterface;
19 19
 use Sylius\Component\Shipping\Model\ShippingCategoryInterface;
20
-use Sylius\Component\Taxation\Model\TaxableInterface;
21 20
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
21
+use Sylius\Component\Taxation\Model\TaxableInterface;
22 22
 
23 23
 /**
24 24
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.