@@ -22,6 +22,7 @@ |
||
22 | 22 | /** |
23 | 23 | * @param ContainerBuilder $container |
24 | 24 | * @param MetadataInterface $metadata |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function load(ContainerBuilder $container, MetadataInterface $metadata); |
27 | 28 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @param ClassMetadataInfo $metadata |
73 | - * @param $configuration |
|
73 | + * @param \Doctrine\ORM\Configuration $configuration |
|
74 | 74 | */ |
75 | 75 | private function setAssociationMappings(ClassMetadataInfo $metadata, $configuration) |
76 | 76 | { |
@@ -153,7 +153,7 @@ |
||
153 | 153 | * Check if a unique constraint has been defined. |
154 | 154 | * |
155 | 155 | * @param ClassMetadata $metadata |
156 | - * @param array $columns |
|
156 | + * @param string[] $columns |
|
157 | 157 | * |
158 | 158 | * @return bool |
159 | 159 | */ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | } |
135 | 135 | |
136 | 136 | /** @var MetadataInterface $translationResourceMetadata */ |
137 | - $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias().'_translation'); |
|
137 | + $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias() . '_translation'); |
|
138 | 138 | |
139 | 139 | $metadata->mapOneToMany([ |
140 | 140 | 'fieldName' => 'translations', |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | if (!$this->hasUniqueConstraint($metadata, $columns)) { |
195 | 195 | $constraints = isset($metadata->table['uniqueConstraints']) ? $metadata->table['uniqueConstraints'] : []; |
196 | 196 | |
197 | - $constraints[$metadata->getTableName().'_uniq_trans'] = [ |
|
197 | + $constraints[$metadata->getTableName() . '_uniq_trans'] = [ |
|
198 | 198 | 'columns' => $columns, |
199 | 199 | ]; |
200 | 200 |
@@ -21,7 +21,6 @@ |
||
21 | 21 | use Sylius\Component\Resource\Metadata\RegistryInterface; |
22 | 22 | use Sylius\Component\Resource\Model\TranslatableInterface; |
23 | 23 | use Sylius\Component\Resource\Model\TranslationInterface; |
24 | -use Sylius\Component\Resource\Translation\Provider\TranslationLocaleProviderInterface; |
|
25 | 24 | use Sylius\Component\Resource\Translation\TranslatableEntityLocaleAssignerInterface; |
26 | 25 | use Symfony\Component\DependencyInjection\ContainerInterface; |
27 | 26 |
@@ -23,6 +23,7 @@ |
||
23 | 23 | * @param MetadataInterface $metadata |
24 | 24 | * @param FormBuilderInterface $formBuilder |
25 | 25 | * @param array $options |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function build(MetadataInterface $metadata, FormBuilderInterface $formBuilder, array $options); |
28 | 29 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @param mixed $value |
|
43 | + * @param ToggleableInterface $value |
|
44 | 44 | */ |
45 | 45 | private function ensureValueImplementsToggleableInterface($value) |
46 | 46 | { |
@@ -13,8 +13,8 @@ |
||
13 | 13 | |
14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
15 | 15 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
16 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
17 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
17 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -22,11 +22,13 @@ |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param ReviewableInterface $reviewSubject |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function update(ReviewableInterface $reviewSubject); |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * @param ReviewInterface $review |
31 | + * @return void |
|
30 | 32 | */ |
31 | 33 | public function updateFromReview(ReviewInterface $review); |
32 | 34 | } |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ReviewBundle\Updater; |
13 | 13 | |
14 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
15 | 14 | use Sylius\Component\Review\Model\ReviewInterface; |
15 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
16 | 16 | |
17 | 17 | /** |
18 | 18 | * @author Mateusz Zalewski <[email protected]> |
@@ -20,6 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param OutputInterface $output |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function setOutput(OutputInterface $output); |
25 | 26 | } |
@@ -23,16 +23,19 @@ |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param array $configuration |
26 | + * @return void |
|
26 | 27 | */ |
27 | 28 | public function add(array $configuration); |
28 | 29 | |
29 | 30 | /** |
30 | 31 | * @param string $themeName |
32 | + * @return void |
|
31 | 33 | */ |
32 | 34 | public function remove($themeName); |
33 | 35 | |
34 | 36 | /** |
35 | 37 | * Clear currently used configurations storage. |
38 | + * @return void |
|
36 | 39 | */ |
37 | 40 | public function clear(); |
38 | 41 | } |