@@ -9,7 +9,7 @@ |
||
| 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 spec\Sylius\Bundle\MailerBundle\Renderer\Adapter; |
| 15 | 15 | |
@@ -23,6 +23,7 @@ |
||
| 23 | 23 | * @param array $recipients |
| 24 | 24 | * @param array $data |
| 25 | 25 | * @param array $attachments |
| 26 | + * @return void |
|
| 26 | 27 | */ |
| 27 | 28 | public function send(string $code, array $recipients, array $data = [], array $attachments = [], array $replyTo = []): void; |
| 28 | 29 | } |
@@ -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 | if (!$metadata->hasAssociation('translations')) { |
| 130 | 130 | $metadata->mapOneToMany([ |
@@ -188,7 +188,7 @@ discard block |
||
| 188 | 188 | if (!$this->hasUniqueConstraint($metadata, $columns)) { |
| 189 | 189 | $constraints = $metadata->table['uniqueConstraints'] ?? []; |
| 190 | 190 | |
| 191 | - $constraints[$metadata->getTableName().'_uniq_trans'] = [ |
|
| 191 | + $constraints[$metadata->getTableName() . '_uniq_trans'] = [ |
|
| 192 | 192 | 'columns' => $columns, |
| 193 | 193 | ]; |
| 194 | 194 | |
@@ -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\DependencyInjection; |
| 15 | 15 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | public function load(array $config, ContainerBuilder $container): void |
| 35 | 35 | { |
| 36 | 36 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 37 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 37 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 38 | 38 | |
| 39 | 39 | $loader->load('services.xml'); |
| 40 | 40 | |
@@ -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\DependencyInjection\Extension; |
| 15 | 15 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $container->setParameter(sprintf('%s.driver', $this->getAlias()), $driver); |
| 40 | 40 | |
| 41 | 41 | foreach ($resources as $resourceName => $resourceConfig) { |
| 42 | - $alias = $applicationName.'.'.$resourceName; |
|
| 42 | + $alias = $applicationName . '.' . $resourceName; |
|
| 43 | 43 | $resourceConfig = array_merge(['driver' => $driver], $resourceConfig); |
| 44 | 44 | |
| 45 | 45 | $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : []; |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sylius\Bundle\ResourceBundle\Tests\Doctrine\DBAL\Type; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sylius\Bundle\ResourceBundle\Doctrine\DBAL\Type; |
| 6 | 6 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sylius\Bundle\AdminBundle\Twig; |
| 6 | 6 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | public function getFunctions(): array |
| 26 | 26 | { |
| 27 | 27 | return [ |
| 28 | - new \Twig_Function('is_shop_enabled', function(): bool { |
|
| 28 | + new \Twig_Function('is_shop_enabled', function (): bool { |
|
| 29 | 29 | return $this->isShopEnabled; |
| 30 | 30 | }) |
| 31 | 31 | ]; |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace Sylius\Behat\Service\Accessor; |
| 6 | 6 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | return false; |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | - $searchedValue = (string)$searchedValue; |
|
| 143 | + $searchedValue = (string) $searchedValue; |
|
| 144 | 144 | $searchedValue = trim($searchedValue); |
| 145 | 145 | |
| 146 | 146 | if (0 === strpos($searchedValue, '%') && (strlen($searchedValue) - 1) === strrpos($searchedValue, '%')) { |