@@ -120,7 +120,7 @@ |
||
120 | 120 | ->innerJoin('o.translations', 'translation') |
121 | 121 | ->andWhere('translation.name LIKE :name') |
122 | 122 | ->andWhere('translation.locale = :locale') |
123 | - ->setParameter('name', '%'.$phrase.'%') |
|
123 | + ->setParameter('name', '%' . $phrase . '%') |
|
124 | 124 | ->setParameter('locale', $locale) |
125 | 125 | ->getQuery() |
126 | 126 | ->getResult() |
@@ -25,22 +25,26 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * @param string $channelName |
27 | 27 | * @param int $price |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function specifyPrice($channelName, $price); |
30 | 31 | |
31 | 32 | /** |
32 | 33 | * @param string $channelName |
33 | 34 | * @param int $originalPrice |
35 | + * @return void |
|
34 | 36 | */ |
35 | 37 | public function specifyOriginalPrice($channelName, $originalPrice); |
36 | 38 | |
37 | 39 | /** |
38 | 40 | * @param string $name |
41 | + * @return void |
|
39 | 42 | */ |
40 | 43 | public function choosePricingCalculator($name); |
41 | 44 | |
42 | 45 | /** |
43 | 46 | * @param string $channelName |
47 | + * @return void |
|
44 | 48 | */ |
45 | 49 | public function checkChannel($channelName); |
46 | 50 | |
@@ -48,23 +52,27 @@ discard block |
||
48 | 52 | * @param int $price |
49 | 53 | * @param ChannelInterface $channel |
50 | 54 | * @param CurrencyInterface $currency |
55 | + * @return void |
|
51 | 56 | */ |
52 | 57 | public function specifyPriceForChannelAndCurrency($price, ChannelInterface $channel, CurrencyInterface $currency); |
53 | 58 | |
54 | 59 | /** |
55 | 60 | * @param string $code |
61 | + * @return void |
|
56 | 62 | */ |
57 | 63 | public function specifyCode($code); |
58 | 64 | |
59 | 65 | /** |
60 | 66 | * @param string $name |
61 | 67 | * @param string $localeCode |
68 | + * @return void |
|
62 | 69 | */ |
63 | 70 | public function nameItIn($name, $localeCode); |
64 | 71 | |
65 | 72 | /** |
66 | 73 | * @param string $slug |
67 | 74 | * @param string $locale |
75 | + * @return void |
|
68 | 76 | */ |
69 | 77 | public function specifySlugIn($slug, $locale); |
70 | 78 | |
@@ -72,40 +80,47 @@ discard block |
||
72 | 80 | * @param string $attributeName |
73 | 81 | * @param string $value |
74 | 82 | * @param string $localeCode |
83 | + * @return void |
|
75 | 84 | */ |
76 | 85 | public function addAttribute($attributeName, $value, $localeCode); |
77 | 86 | |
78 | 87 | /** |
79 | 88 | * @param string $attributeName |
80 | 89 | * @param string $localeCode |
90 | + * @return void |
|
81 | 91 | */ |
82 | 92 | public function removeAttribute($attributeName, $localeCode); |
83 | 93 | |
84 | 94 | /** |
85 | 95 | * @param string $path |
86 | 96 | * @param string $type |
97 | + * @return void |
|
87 | 98 | */ |
88 | 99 | public function attachImage($path, $type = null); |
89 | 100 | |
90 | 101 | /** |
91 | 102 | * @param ProductAssociationTypeInterface $productAssociationType |
92 | 103 | * @param string[] $productsNames |
104 | + * @return void |
|
93 | 105 | */ |
94 | 106 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames); |
95 | 107 | |
96 | 108 | /** |
97 | 109 | * @param string $productName |
98 | 110 | * @param ProductAssociationTypeInterface $productAssociationType |
111 | + * @return void |
|
99 | 112 | */ |
100 | 113 | public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType); |
101 | 114 | |
102 | 115 | /** |
103 | 116 | * @param string $locale |
117 | + * @return void |
|
104 | 118 | */ |
105 | 119 | public function activateLanguageTab($locale); |
106 | 120 | |
107 | 121 | /** |
108 | 122 | * @param string $shippingCategoryName |
123 | + * @return void |
|
109 | 124 | */ |
110 | 125 | public function selectShippingCategory($shippingCategoryName); |
111 | 126 | } |
@@ -29,6 +29,7 @@ discard block |
||
29 | 29 | public function isCodeDisabled(); |
30 | 30 | |
31 | 31 | /** |
32 | + * @param string $locale |
|
32 | 33 | * @return bool |
33 | 34 | */ |
34 | 35 | public function isSlugReadOnlyIn($locale); |
@@ -36,26 +37,33 @@ discard block |
||
36 | 37 | /** |
37 | 38 | * @param string $channelName |
38 | 39 | * @param int $price |
40 | + * @return void |
|
39 | 41 | */ |
40 | 42 | public function specifyPrice($channelName, $price); |
41 | 43 | |
42 | 44 | /** |
43 | 45 | * @param string $channelName |
44 | 46 | * @param int $originalPrice |
47 | + * @return void |
|
45 | 48 | */ |
46 | 49 | public function specifyOriginalPrice($channelName, $originalPrice); |
47 | 50 | |
48 | 51 | /** |
49 | 52 | * @param string $name |
50 | 53 | * @param string $localeCode |
54 | + * @return void |
|
51 | 55 | */ |
52 | 56 | public function nameItIn($name, $localeCode); |
53 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
54 | 61 | public function addSelectedAttributes(); |
55 | 62 | |
56 | 63 | /** |
57 | 64 | * @param string $attributeName |
58 | 65 | * @param string $localeCode |
66 | + * @return void |
|
59 | 67 | */ |
60 | 68 | public function removeAttribute($attributeName, $localeCode); |
61 | 69 | |
@@ -88,11 +96,18 @@ discard block |
||
88 | 96 | |
89 | 97 | /** |
90 | 98 | * @param TaxonInterface $taxon |
99 | + * @return void |
|
91 | 100 | */ |
92 | 101 | public function selectMainTaxon(TaxonInterface $taxon); |
93 | 102 | |
103 | + /** |
|
104 | + * @return void |
|
105 | + */ |
|
94 | 106 | public function disableTracking(); |
95 | 107 | |
108 | + /** |
|
109 | + * @return void |
|
110 | + */ |
|
96 | 111 | public function enableTracking(); |
97 | 112 | |
98 | 113 | /** |
@@ -102,6 +117,7 @@ discard block |
||
102 | 117 | |
103 | 118 | /** |
104 | 119 | * @param string $locale |
120 | + * @return void |
|
105 | 121 | */ |
106 | 122 | public function enableSlugModification($locale); |
107 | 123 | |
@@ -115,24 +131,31 @@ discard block |
||
115 | 131 | /** |
116 | 132 | * @param string $path |
117 | 133 | * @param string $type |
134 | + * @return void |
|
118 | 135 | */ |
119 | 136 | public function attachImage($path, $type = null); |
120 | 137 | |
121 | 138 | /** |
122 | 139 | * @param string $type |
123 | 140 | * @param string $path |
141 | + * @return void |
|
124 | 142 | */ |
125 | 143 | public function changeImageWithType($type, $path); |
126 | 144 | |
127 | 145 | /** |
128 | 146 | * @param string $type |
147 | + * @return void |
|
129 | 148 | */ |
130 | 149 | public function removeImageWithType($type); |
131 | 150 | |
151 | + /** |
|
152 | + * @return void |
|
153 | + */ |
|
132 | 154 | public function removeFirstImage(); |
133 | 155 | |
134 | 156 | /** |
135 | 157 | * @param string $type |
158 | + * @return void |
|
136 | 159 | */ |
137 | 160 | public function modifyFirstImageType($type); |
138 | 161 | |
@@ -144,6 +167,7 @@ discard block |
||
144 | 167 | /** |
145 | 168 | * @param ProductAssociationTypeInterface $productAssociationType |
146 | 169 | * @param string[] $productsNames |
170 | + * @return void |
|
147 | 171 | */ |
148 | 172 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames); |
149 | 173 | |
@@ -158,6 +182,7 @@ discard block |
||
158 | 182 | /** |
159 | 183 | * @param string $productName |
160 | 184 | * @param ProductAssociationTypeInterface $productAssociationType |
185 | + * @return void |
|
161 | 186 | */ |
162 | 187 | public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType); |
163 | 188 | |
@@ -171,6 +196,7 @@ discard block |
||
171 | 196 | |
172 | 197 | /** |
173 | 198 | * @param string $locale |
199 | + * @return void |
|
174 | 200 | */ |
175 | 201 | public function activateLanguageTab($locale); |
176 | 202 | |
@@ -184,6 +210,7 @@ discard block |
||
184 | 210 | /** |
185 | 211 | * @param string $slug |
186 | 212 | * @param string $locale |
213 | + * @return void |
|
187 | 214 | */ |
188 | 215 | public function specifySlugIn($slug, $locale); |
189 | 216 |
@@ -24,12 +24,14 @@ discard block |
||
24 | 24 | /** |
25 | 25 | * @param int $price |
26 | 26 | * @param string $channelName |
27 | + * @return void |
|
27 | 28 | */ |
28 | 29 | public function specifyPrice($price, $channelName); |
29 | 30 | |
30 | 31 | /** |
31 | 32 | * @param int $originalPrice |
32 | 33 | * @param string $channelName |
34 | + * @return void |
|
33 | 35 | */ |
34 | 36 | public function specifyOriginalPrice($originalPrice, $channelName); |
35 | 37 | |
@@ -38,33 +40,39 @@ discard block |
||
38 | 40 | * @param int $width |
39 | 41 | * @param int $depth |
40 | 42 | * @param int $weight |
43 | + * @return void |
|
41 | 44 | */ |
42 | 45 | public function specifyHeightWidthDepthAndWeight($height, $width, $depth, $weight); |
43 | 46 | |
44 | 47 | /** |
45 | 48 | * @param string $code |
49 | + * @return void |
|
46 | 50 | */ |
47 | 51 | public function specifyCode($code); |
48 | 52 | |
49 | 53 | /** |
50 | 54 | * @param int $currentStock |
55 | + * @return void |
|
51 | 56 | */ |
52 | 57 | public function specifyCurrentStock($currentStock); |
53 | 58 | |
54 | 59 | /** |
55 | 60 | * @param string $name |
56 | 61 | * @param string $language |
62 | + * @return void |
|
57 | 63 | */ |
58 | 64 | public function nameItIn($name, $language); |
59 | 65 | |
60 | 66 | /** |
61 | 67 | * @param string $optionName |
62 | 68 | * @param string $optionValue |
69 | + * @return void |
|
63 | 70 | */ |
64 | 71 | public function selectOption($optionName, $optionValue); |
65 | 72 | |
66 | 73 | /** |
67 | 74 | * @param string $name |
75 | + * @return void |
|
68 | 76 | */ |
69 | 77 | public function choosePricingCalculator($name); |
70 | 78 | |
@@ -72,6 +80,7 @@ discard block |
||
72 | 80 | * @param int $price |
73 | 81 | * @param ChannelInterface $channel |
74 | 82 | * @param CurrencyInterface $currency |
83 | + * @return void |
|
75 | 84 | */ |
76 | 85 | public function specifyPriceForChannelAndCurrency($price, ChannelInterface $channel, CurrencyInterface $currency); |
77 | 86 | |
@@ -82,6 +91,7 @@ discard block |
||
82 | 91 | |
83 | 92 | /** |
84 | 93 | * @param string $shippingCategoryName |
94 | + * @return void |
|
85 | 95 | */ |
86 | 96 | public function selectShippingCategory($shippingCategoryName); |
87 | 97 |
@@ -27,6 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | /** |
29 | 29 | * @param ProductVariantInterface|null $productVariant |
30 | + * @return void |
|
30 | 31 | */ |
31 | 32 | public function setProductVariant(ProductVariantInterface $productVariant = null); |
32 | 33 | |
@@ -37,6 +38,7 @@ discard block |
||
37 | 38 | |
38 | 39 | /** |
39 | 40 | * @param int $price |
41 | + * @return void |
|
40 | 42 | */ |
41 | 43 | public function setPrice($price); |
42 | 44 | |
@@ -47,6 +49,7 @@ discard block |
||
47 | 49 | |
48 | 50 | /** |
49 | 51 | * @param string $channelCode |
52 | + * @return void |
|
50 | 53 | */ |
51 | 54 | public function setChannelCode($channelCode); |
52 | 55 | |
@@ -57,6 +60,7 @@ discard block |
||
57 | 60 | |
58 | 61 | /** |
59 | 62 | * @param int $originalPrice |
63 | + * @return void |
|
60 | 64 | */ |
61 | 65 | public function setOriginalPrice($originalPrice); |
62 | 66 |
@@ -30,11 +30,13 @@ |
||
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @param ProductVariantInterface $productVariant |
33 | + * @return void |
|
33 | 34 | */ |
34 | 35 | public function addProductVariant(ProductVariantInterface $productVariant); |
35 | 36 | |
36 | 37 | /** |
37 | 38 | * @param ProductVariantInterface $productVariant |
39 | + * @return void |
|
38 | 40 | */ |
39 | 41 | public function removeProductVariant(ProductVariantInterface $productVariant); |
40 | 42 |
@@ -165,7 +165,7 @@ |
||
165 | 165 | */ |
166 | 166 | public function iSetItsPriceTo($price = null, $channelName = null) |
167 | 167 | { |
168 | - $this->createPage->specifyPrice($price, (null === $channelName) ? $this->sharedStorage->get('channel') :$channelName); |
|
168 | + $this->createPage->specifyPrice($price, (null === $channelName) ? $this->sharedStorage->get('channel') : $channelName); |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | /** |
@@ -11,15 +11,12 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ApiBundle\DependencyInjection; |
13 | 13 | |
14 | -use Sylius\Bundle\ApiBundle\Controller\TokenController; |
|
15 | 14 | use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension; |
16 | 15 | use Symfony\Component\Config\FileLocator; |
17 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
18 | -use Symfony\Component\DependencyInjection\Definition; |
|
19 | 17 | use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; |
20 | 18 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
21 | 19 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
22 | -use Symfony\Component\DependencyInjection\Reference; |
|
23 | 20 | |
24 | 21 | /** |
25 | 22 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * PHP 5.* bug, fixed in PHP 7: https://bugs.php.net/bug.php?id=50688 |
54 | 54 | * "usort(): Array was modified by the user comparison function" |
55 | 55 | */ |
56 | - @usort($countries, function($a, $b) { |
|
56 | + @usort($countries, function ($a, $b) { |
|
57 | 57 | return $a->getName() < $b->getName() ? -1 : 1; |
58 | 58 | }); |
59 | 59 |