@@ -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\Controller; |
| 15 | 15 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | RequestConfiguration $requestConfiguration, |
| 60 | 60 | string $actionName, |
| 61 | 61 | ?ResourceInterface $resource = null |
| 62 | - ): void { |
|
| 62 | + ) : void { |
|
| 63 | 63 | $this->addFlashWithType($requestConfiguration, $actionName, 'success'); |
| 64 | 64 | } |
| 65 | 65 | |
@@ -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\Controller; |
| 15 | 15 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * {@inheritdoc} |
| 63 | 63 | */ |
| 64 | - public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null): Response |
|
| 64 | + public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null) : Response |
|
| 65 | 65 | { |
| 66 | 66 | return $this->redirectToRoute( |
| 67 | 67 | $configuration, |
@@ -89,11 +89,11 @@ discard block |
||
| 89 | 89 | { |
| 90 | 90 | if ($configuration->isHeaderRedirection()) { |
| 91 | 91 | return new Response('', 200, [ |
| 92 | - 'X-SYLIUS-LOCATION' => $url.$configuration->getRedirectHash(), |
|
| 92 | + 'X-SYLIUS-LOCATION' => $url . $configuration->getRedirectHash(), |
|
| 93 | 93 | ]); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - return new RedirectResponse($url.$configuration->getRedirectHash(), $status); |
|
| 96 | + return new RedirectResponse($url . $configuration->getRedirectHash(), $status); |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
@@ -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\Controller; |
| 15 | 15 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | RequestConfiguration $requestConfiguration, |
| 31 | 31 | string $actionName, |
| 32 | 32 | ?ResourceInterface $resource = null |
| 33 | - ): void; |
|
| 33 | + ) : void; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param RequestConfiguration $requestConfiguration |
@@ -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 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | DriverProvider::get($metadata)->load($container, $metadata); |
| 86 | 86 | |
| 87 | 87 | if ($metadata->hasParameter('translation')) { |
| 88 | - $alias = $alias.'_translation'; |
|
| 88 | + $alias = $alias . '_translation'; |
|
| 89 | 89 | $resourceConfig = array_merge(['driver' => $resourceConfig['driver']], $resourceConfig['translation']); |
| 90 | 90 | |
| 91 | 91 | $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : []; |
@@ -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\Payment\Model; |
| 15 | 15 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @param string|null $name |
| 27 | 27 | */ |
| 28 | - public function setName(?string $name): void; |
|
| 28 | + public function setName(?string $name) : void; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * @return string|null |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * @param string|null $description |
| 37 | 37 | */ |
| 38 | - public function setDescription(?string $description): void; |
|
| 38 | + public function setDescription(?string $description) : void; |
|
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | 41 | * @return string|null |
@@ -45,5 +45,5 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param string|null $instructions |
| 47 | 47 | */ |
| 48 | - public function setInstructions(?string $instructions): void; |
|
| 48 | + public function setInstructions(?string $instructions) : void; |
|
| 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\Component\Payment\Model; |
| 15 | 15 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * {@inheritdoc} |
| 38 | 38 | */ |
| 39 | - public function setName(?string $name): void; |
|
| 39 | + public function setName(?string $name) : void; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * {@inheritdoc} |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * {@inheritdoc} |
| 48 | 48 | */ |
| 49 | - public function setDescription(?string $description): void; |
|
| 49 | + public function setDescription(?string $description) : void; |
|
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * {@inheritdoc} |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * {@inheritdoc} |
| 58 | 58 | */ |
| 59 | - public function setInstructions(?string $instructions): void; |
|
| 59 | + public function setInstructions(?string $instructions) : void; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * @return string|null |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | /** |
| 67 | 67 | * @param string|null $environment |
| 68 | 68 | */ |
| 69 | - public function setEnvironment(?string $environment): void; |
|
| 69 | + public function setEnvironment(?string $environment) : void; |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * @return int|null |
@@ -76,5 +76,5 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * @param int|null $position |
| 78 | 78 | */ |
| 79 | - public function setPosition(?int $position): void; |
|
| 79 | + public function setPosition(?int $position) : void; |
|
| 80 | 80 | } |
@@ -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\Payment\Model; |
| 15 | 15 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | /** |
| 65 | 65 | * {@inheritdoc} |
| 66 | 66 | */ |
| 67 | - public function setName(?string $name): void |
|
| 67 | + public function setName(?string $name) : void |
|
| 68 | 68 | { |
| 69 | 69 | $this->name = $name; |
| 70 | 70 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * {@inheritdoc} |
| 82 | 82 | */ |
| 83 | - public function setDescription(?string $description): void |
|
| 83 | + public function setDescription(?string $description) : void |
|
| 84 | 84 | { |
| 85 | 85 | $this->description = $description; |
| 86 | 86 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | /** |
| 97 | 97 | * {@inheritdoc} |
| 98 | 98 | */ |
| 99 | - public function setInstructions(?string $instructions): void |
|
| 99 | + public function setInstructions(?string $instructions) : void |
|
| 100 | 100 | { |
| 101 | 101 | $this->instructions = $instructions; |
| 102 | 102 | } |
@@ -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\Payment\Model; |
| 15 | 15 | |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | /** |
| 79 | 79 | * {@inheritdoc} |
| 80 | 80 | */ |
| 81 | - public function setMethod(?PaymentMethodInterface $method): void |
|
| 81 | + public function setMethod(?PaymentMethodInterface $method) : void |
|
| 82 | 82 | { |
| 83 | 83 | $this->method = $method; |
| 84 | 84 | } |
@@ -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\Payment\Model; |
| 15 | 15 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * @param PaymentMethodInterface|null $method |
| 40 | 40 | */ |
| 41 | - public function setMethod(?PaymentMethodInterface $method): void; |
|
| 41 | + public function setMethod(?PaymentMethodInterface $method) : void; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * @return string|null |