@@ -25,6 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @param string $code |
| 28 | + * @return void |
|
| 28 | 29 | */ |
| 29 | 30 | public function setCode(string $code): void; |
| 30 | 31 | |
@@ -35,11 +36,18 @@ discard block |
||
| 35 | 36 | |
| 36 | 37 | /** |
| 37 | 38 | * @param bool $enabled |
| 39 | + * @return void |
|
| 38 | 40 | */ |
| 39 | 41 | public function setEnabled(bool $enabled): void; |
| 40 | 42 | |
| 43 | + /** |
|
| 44 | + * @return void |
|
| 45 | + */ |
|
| 41 | 46 | public function enable(): void; |
| 42 | 47 | |
| 48 | + /** |
|
| 49 | + * @return void |
|
| 50 | + */ |
|
| 43 | 51 | public function disable(): void; |
| 44 | 52 | |
| 45 | 53 | /** |
@@ -49,6 +57,7 @@ discard block |
||
| 49 | 57 | |
| 50 | 58 | /** |
| 51 | 59 | * @param string $subject |
| 60 | + * @return void |
|
| 52 | 61 | */ |
| 53 | 62 | public function setSubject(string $subject): void; |
| 54 | 63 | |
@@ -59,6 +68,7 @@ discard block |
||
| 59 | 68 | |
| 60 | 69 | /** |
| 61 | 70 | * @param string $content |
| 71 | + * @return void |
|
| 62 | 72 | */ |
| 63 | 73 | public function setContent(string $content); |
| 64 | 74 | |
@@ -69,6 +79,7 @@ discard block |
||
| 69 | 79 | |
| 70 | 80 | /** |
| 71 | 81 | * @param string $template |
| 82 | + * @return void |
|
| 72 | 83 | */ |
| 73 | 84 | public function setTemplate(string $template): void; |
| 74 | 85 | |
@@ -79,6 +90,7 @@ discard block |
||
| 79 | 90 | |
| 80 | 91 | /** |
| 81 | 92 | * @param string $senderName |
| 93 | + * @return void |
|
| 82 | 94 | */ |
| 83 | 95 | public function setSenderName(string $senderName): void; |
| 84 | 96 | |
@@ -89,6 +101,7 @@ discard block |
||
| 89 | 101 | |
| 90 | 102 | /** |
| 91 | 103 | * @param string $senderAddress |
| 104 | + * @return void |
|
| 92 | 105 | */ |
| 93 | 106 | public function setSenderAddress(string $senderAddress): void; |
| 94 | 107 | } |
@@ -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 = []): 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 spec\Sylius\Bundle\MailerBundle\Renderer\Adapter; |
| 15 | 15 | |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | $email->getTemplate()->shouldBeCalled()->willReturn('MyTemplate'); |
| 50 | 50 | $twig->loadTemplate('MyTemplate')->shouldBeCalled()->willReturn($template); |
| 51 | 51 | |
| 52 | - $template->renderBlock('subject', [])->willReturn('template');; |
|
| 53 | - $template->renderBlock('body', [])->willReturn('body');; |
|
| 52 | + $template->renderBlock('subject', [])->willReturn('template'); ; |
|
| 53 | + $template->renderBlock('body', [])->willReturn('body'); ; |
|
| 54 | 54 | |
| 55 | 55 | $dispatcher->dispatch( |
| 56 | 56 | SyliusMailerEvents::EMAIL_PRE_RENDER, |
@@ -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 | use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer; |
| 15 | 15 | use Symfony\Component\Config\Loader\LoaderInterface; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function registerContainerConfiguration(LoaderInterface $loader): void |
| 41 | 41 | { |
| 42 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 42 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -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\MailerBundle\DependencyInjection; |
| 15 | 15 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function load(array $config, ContainerBuilder $container): void |
| 31 | 31 | { |
| 32 | 32 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 33 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 33 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 34 | 34 | |
| 35 | 35 | $configFiles = [ |
| 36 | 36 | 'services.xml', |