Test Failed
Pull Request — master (#793)
by butschster
07:08 queued 55s
created
src/SendIt/src/MailJob.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,20 +21,20 @@  discard block
 block discarded – undo
21 21
         private readonly SymfonyMailer $mailer,
22 22
         private readonly RendererInterface $renderer,
23 23
         private readonly ?EventDispatcherInterface $dispatcher = null
24
-    ) {
24
+    ){
25 25
     }
26 26
 
27 27
     /**
28 28
      * @throws TransportExceptionInterface
29 29
      * @throws InvalidArgumentException
30 30
      */
31
-    public function handle(string $name, string $id, string|array $payload): void
31
+    public function handle(string $name, string $id, string | array $payload): void
32 32
     {
33
-        if (\is_string($payload)) {
33
+        if (\is_string($payload)){
34 34
             $payload = \json_decode($payload, true, 512, JSON_THROW_ON_ERROR);
35 35
         }
36 36
 
37
-        if (!\is_array($payload)) {
37
+        if (!\is_array($payload)){
38 38
             throw new InvalidArgumentException('Mail job payload should be an array.');
39 39
         }
40 40
 
@@ -42,13 +42,13 @@  discard block
 block discarded – undo
42 42
 
43 43
         $email = $this->renderer->render($message);
44 44
 
45
-        if ($email->getFrom() === []) {
45
+        if ($email->getFrom() === []){
46 46
             $email->from(Address::create($this->config->getFromAddress()));
47 47
         }
48 48
 
49
-        try {
49
+        try{
50 50
             $this->mailer->send($email);
51
-        } catch (TransportExceptionInterface $e) {
51
+        }catch (TransportExceptionInterface $e){
52 52
             $this->dispatcher?->dispatch(new MessageNotSent($email, $e));
53 53
 
54 54
             throw $e;
Please login to merge, or discard this patch.
src/Core/src/Internal/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
     use DestructorTrait;
18 18
 
19 19
     private State $state;
20
-    private FactoryInterface|Factory $factory;
20
+    private FactoryInterface | Factory $factory;
21 21
 
22 22
     public function __construct(Registry $constructor)
23 23
     {
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
      * @throws ContainerException
47 47
      * @throws \Throwable
48 48
      */
49
-    public function get(string|Autowire $id, string $context = null): mixed
49
+    public function get(string | Autowire $id, string $context = null): mixed
50 50
     {
51
-        if ($id instanceof Autowire) {
51
+        if ($id instanceof Autowire){
52 52
             return $id->resolve($this->factory);
53 53
         }
54 54
 
Please login to merge, or discard this patch.