@@ -115,7 +115,7 @@ |
||
115 | 115 | } |
116 | 116 | |
117 | 117 | /** |
118 | - * @return array |
|
118 | + * @return \Generator |
|
119 | 119 | */ |
120 | 120 | private function getLocales() |
121 | 121 | { |
@@ -110,7 +110,7 @@ |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @return array |
|
113 | + * @return \Generator |
|
114 | 114 | */ |
115 | 115 | private function getLocales() |
116 | 116 | { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
96 | - * @param $code |
|
96 | + * @param string $code |
|
97 | 97 | * |
98 | 98 | * @return null|string |
99 | 99 | */ |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return array |
|
106 | + * @return string[] |
|
107 | 107 | */ |
108 | 108 | private function getAvailableCountries() |
109 | 109 | { |
@@ -194,6 +194,7 @@ |
||
194 | 194 | |
195 | 195 | /** |
196 | 196 | * @param object $entity |
197 | + * @param string $value |
|
197 | 198 | * |
198 | 199 | * @return Route |
199 | 200 | */ |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | */ |
190 | 190 | private function getFieldValue($entity, $fieldName) |
191 | 191 | { |
192 | - return $entity->{'get'.ucfirst($fieldName)}(); |
|
192 | + return $entity->{'get' . ucfirst($fieldName)}(); |
|
193 | 193 | } |
194 | 194 | |
195 | 195 | /** |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | } |
208 | 208 | $defaults = ['_sylius_entity' => $entity, $fieldName => $value]; |
209 | 209 | |
210 | - return new Route($this->routeConfigs[$className]['prefix'].'/'.$value, $defaults); |
|
210 | + return new Route($this->routeConfigs[$className]['prefix'] . '/' . $value, $defaults); |
|
211 | 211 | } |
212 | 212 | |
213 | 213 | /** |
@@ -21,6 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * @param string $class |
23 | 23 | * @param string $id |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function addRepository($class, $id); |
26 | 27 | } |
@@ -21,6 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * @param UrlProviderInterface $provider |
24 | + * @return void |
|
24 | 25 | */ |
25 | 26 | public function addProvider(UrlProviderInterface $provider); |
26 | 27 |
@@ -23,16 +23,19 @@ discard block |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param SitemapUrlInterface[] $urlSet |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function setUrls(array $urlSet); |
28 | 29 | |
29 | 30 | /** |
30 | 31 | * @param SitemapUrlInterface $url |
32 | + * @return void |
|
31 | 33 | */ |
32 | 34 | public function addUrl(SitemapUrlInterface $url); |
33 | 35 | |
34 | 36 | /** |
35 | 37 | * @param SitemapUrlInterface $url |
38 | + * @return void |
|
36 | 39 | */ |
37 | 40 | public function removeUrl(SitemapUrlInterface $url); |
38 | 41 | |
@@ -43,6 +46,7 @@ discard block |
||
43 | 46 | |
44 | 47 | /** |
45 | 48 | * @param string $localization |
49 | + * @return void |
|
46 | 50 | */ |
47 | 51 | public function setLocalization($localization); |
48 | 52 | |
@@ -53,6 +57,7 @@ discard block |
||
53 | 57 | |
54 | 58 | /** |
55 | 59 | * @param \DateTime $lastModification |
60 | + * @return void |
|
56 | 61 | */ |
57 | 62 | public function setLastModification(\DateTime $lastModification); |
58 | 63 | } |
@@ -23,6 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param string $localization |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function setLocalization($localization); |
28 | 29 | |
@@ -33,6 +34,7 @@ discard block |
||
33 | 34 | |
34 | 35 | /** |
35 | 36 | * @param \DateTime $lastModification |
37 | + * @return void |
|
36 | 38 | */ |
37 | 39 | public function setLastModification(\DateTime $lastModification); |
38 | 40 | |
@@ -43,6 +45,7 @@ discard block |
||
43 | 45 | |
44 | 46 | /** |
45 | 47 | * @param ChangeFrequency $changeFrequency |
48 | + * @return void |
|
46 | 49 | */ |
47 | 50 | public function setChangeFrequency(ChangeFrequency $changeFrequency); |
48 | 51 | |
@@ -53,6 +56,7 @@ discard block |
||
53 | 56 | |
54 | 57 | /** |
55 | 58 | * @param float $priority |
59 | + * @return void |
|
56 | 60 | */ |
57 | 61 | public function setPriority($priority); |
58 | 62 | } |
@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Sylius\Bundle\CoreBundle\Sitemap\Factory\SitemapUrlFactoryInterface; |
15 | 15 | use Sylius\Bundle\CoreBundle\Sitemap\Model\ChangeFrequency; |
16 | -use Sylius\Bundle\CoreBundle\Sitemap\Model\SitemapUrlInterface; |
|
17 | 16 | use Sylius\Component\Resource\Repository\RepositoryInterface; |
18 | 17 | use Symfony\Component\Routing\RouterInterface; |
19 | 18 |