@@ -25,6 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param TranslatableInterface|null $translatable |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function setTranslatable(?TranslatableInterface $translatable): void; |
30 | 31 | |
@@ -35,6 +36,7 @@ discard block |
||
35 | 36 | |
36 | 37 | /** |
37 | 38 | * @param string|null $locale |
39 | + * @return void |
|
38 | 40 | */ |
39 | 41 | public function setLocale(?string $locale): void; |
40 | 42 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Resource\Model; |
15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * @param TranslatableInterface|null $translatable |
28 | 28 | */ |
29 | - public function setTranslatable(?TranslatableInterface $translatable): void; |
|
29 | + public function setTranslatable(?TranslatableInterface $translatable) : void; |
|
30 | 30 | |
31 | 31 | /** |
32 | 32 | * @return string|null |
@@ -36,5 +36,5 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * @param string|null $locale |
38 | 38 | */ |
39 | - public function setLocale(?string $locale): void; |
|
39 | + public function setLocale(?string $locale) : void; |
|
40 | 40 | } |
@@ -25,6 +25,7 @@ |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param int|null $version |
28 | + * @return void |
|
28 | 29 | */ |
29 | 30 | public function setVersion(?int $version): void; |
30 | 31 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Component\Resource\Model; |
15 | 15 | |
@@ -26,5 +26,5 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * @param int|null $version |
28 | 28 | */ |
29 | - public function setVersion(?int $version): void; |
|
29 | + public function setVersion(?int $version) : void; |
|
30 | 30 | } |
@@ -29,17 +29,19 @@ |
||
29 | 29 | * @param array $criteria |
30 | 30 | * @param array $sorting |
31 | 31 | * |
32 | - * @return iterable |
|
32 | + * @return \Pagerfanta\Pagerfanta |
|
33 | 33 | */ |
34 | 34 | public function createPaginator(array $criteria = [], array $sorting = []): iterable; |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param ResourceInterface $resource |
38 | + * @return void |
|
38 | 39 | */ |
39 | 40 | public function add(ResourceInterface $resource): void; |
40 | 41 | |
41 | 42 | /** |
42 | 43 | * @param ResourceInterface $resource |
44 | + * @return void |
|
43 | 45 | */ |
44 | 46 | public function remove(ResourceInterface $resource): void; |
45 | 47 | } |
@@ -35,12 +35,14 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param string $name |
38 | - * @param mixed $value |
|
38 | + * @param string $value |
|
39 | + * @return void |
|
39 | 40 | */ |
40 | 41 | public function set(string $name, $value): void; |
41 | 42 | |
42 | 43 | /** |
43 | 44 | * @param string $name |
45 | + * @return void |
|
44 | 46 | */ |
45 | 47 | public function remove(string $name): void; |
46 | 48 |
@@ -22,6 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @param TranslatableInterface $translatableEntity |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function assignLocale(TranslatableInterface $translatableEntity): void; |
27 | 28 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | */ |
44 | 44 | public function registerContainerConfiguration(LoaderInterface $loader): void |
45 | 45 | { |
46 | - $loader->load(__DIR__.'/config/config.yml'); |
|
46 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\PaymentBundle\DependencyInjection; |
15 | 15 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | public function load(array $config, ContainerBuilder $container): void |
30 | 30 | { |
31 | 31 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
32 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
32 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
33 | 33 | |
34 | 34 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
35 | 35 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ResourceBundle\Routing; |
15 | 15 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | bool $isApi = false |
153 | 153 | ): Route { |
154 | 154 | $defaults = [ |
155 | - '_controller' => $metadata->getServiceId('controller').sprintf(':%sAction', $actionName), |
|
155 | + '_controller' => $metadata->getServiceId('controller') . sprintf(':%sAction', $actionName), |
|
156 | 156 | ]; |
157 | 157 | |
158 | 158 | if ($isApi && 'index' === $actionName) { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | */ |
212 | 212 | private function getRouteName(MetadataInterface $metadata, array $configuration, string $actionName): string |
213 | 213 | { |
214 | - $sectionPrefix = isset($configuration['section']) ? $configuration['section'].'_' : ''; |
|
214 | + $sectionPrefix = isset($configuration['section']) ? $configuration['section'] . '_' : ''; |
|
215 | 215 | |
216 | 216 | return sprintf('%s_%s%s_%s', $metadata->getApplicationName(), $sectionPrefix, $metadata->getName(), $actionName); |
217 | 217 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | |
14 | 14 | namespace Sylius\Bundle\ResourceBundle\EventListener; |
15 | 15 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | } |
125 | 125 | |
126 | 126 | /** @var MetadataInterface $translationResourceMetadata */ |
127 | - $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias().'_translation'); |
|
127 | + $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias() . '_translation'); |
|
128 | 128 | |
129 | 129 | $metadata->mapOneToMany([ |
130 | 130 | 'fieldName' => 'translations', |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | if (!$this->hasUniqueConstraint($metadata, $columns)) { |
185 | 185 | $constraints = $metadata->table['uniqueConstraints'] ?? []; |
186 | 186 | |
187 | - $constraints[$metadata->getTableName().'_uniq_trans'] = [ |
|
187 | + $constraints[$metadata->getTableName() . '_uniq_trans'] = [ |
|
188 | 188 | 'columns' => $columns, |
189 | 189 | ]; |
190 | 190 |