@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -199,6 +199,7 @@ |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * {@inheritdoc} |
202 | + * @param string $name |
|
202 | 203 | */ |
203 | 204 | protected function getElement($name, array $parameters = []) |
204 | 205 | { |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $imageForm->fillField('Type', $type); |
108 | 108 | } |
109 | 109 | |
110 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
110 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -199,6 +199,7 @@ |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * {@inheritdoc} |
202 | + * @param string $name |
|
202 | 203 | */ |
203 | 204 | protected function getElement($name, array $parameters = []) |
204 | 205 | { |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | $imageForm->fillField('Type', $type); |
108 | 108 | } |
109 | 109 | |
110 | - $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath.$path); |
|
110 | + $imageForm->find('css', 'input[type="file"]')->attachFile($filesPath . $path); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
@@ -75,7 +75,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -199,6 +199,7 @@ |
||
199 | 199 | |
200 | 200 | /** |
201 | 201 | * {@inheritdoc} |
202 | + * @param string $name |
|
202 | 203 | */ |
203 | 204 | protected function getElement($name, array $parameters = []) |
204 | 205 | { |
@@ -74,7 +74,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -40,6 +40,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
139 | 148 | |
140 | 149 | /** |
141 | 150 | * @param ProductAssociationInterface $association |
151 | + * @return void |
|
142 | 152 | */ |
143 | 153 | public function removeAssociation(ProductAssociationInterface $association); |
144 | 154 |
@@ -28,7 +28,7 @@ discard block |
||
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 |
||
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 | } |
@@ -33,12 +33,13 @@ |
||
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 |