@@ -11,5 +11,5 @@ |
||
11 | 11 | public function __construct( |
12 | 12 | public readonly Email $message, |
13 | 13 | public readonly \Throwable $exception, |
14 | - ) {} |
|
14 | + ){} |
|
15 | 15 | } |
@@ -11,5 +11,6 @@ |
||
11 | 11 | public function __construct( |
12 | 12 | public readonly Email $message, |
13 | 13 | public readonly \Throwable $exception, |
14 | - ) {} |
|
14 | + ) { |
|
15 | +} |
|
15 | 16 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | 'queue' => null, |
18 | 18 | 'queueConnection' => null, |
19 | 19 | ], |
20 | - ) { |
|
20 | + ){ |
|
21 | 21 | parent::__construct($config); |
22 | 22 | } |
23 | 23 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | public function __construct( |
48 | 48 | private readonly ConfiguratorInterface $config, |
49 | - ) {} |
|
49 | + ){} |
|
50 | 50 | |
51 | 51 | public function init(EnvironmentInterface $env): void |
52 | 52 | { |
@@ -81,8 +81,8 @@ discard block |
||
81 | 81 | public function mailer(TransportInterface $transport, ?EventDispatcherInterface $dispatcher = null): SymfonyMailer |
82 | 82 | { |
83 | 83 | return new Mailer( |
84 | - transport: $transport, |
|
85 | - dispatcher: $dispatcher, |
|
84 | + transport : $transport, |
|
85 | + dispatcher : $dispatcher, |
|
86 | 86 | ); |
87 | 87 | } |
88 | 88 |
@@ -46,7 +46,8 @@ |
||
46 | 46 | |
47 | 47 | public function __construct( |
48 | 48 | private readonly ConfiguratorInterface $config, |
49 | - ) {} |
|
49 | + ) { |
|
50 | +} |
|
50 | 51 | |
51 | 52 | public function init(EnvironmentInterface $env): void |
52 | 53 | { |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | public function __construct( |
18 | 18 | private readonly Transport $transport, |
19 | - ) {} |
|
19 | + ){} |
|
20 | 20 | |
21 | 21 | public function registerTransport(TransportFactoryInterface $factory): void |
22 | 22 | { |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | public function resolve(string $dsn): TransportInterface |
27 | 27 | { |
28 | 28 | $dsnDto = Dsn::fromString($dsn); |
29 | - foreach ($this->transports as $transport) { |
|
30 | - if ($transport->supports($dsnDto)) { |
|
29 | + foreach ($this->transports as $transport){ |
|
30 | + if ($transport->supports($dsnDto)){ |
|
31 | 31 | return $transport->create($dsnDto); |
32 | 32 | } |
33 | 33 | } |
@@ -16,7 +16,8 @@ discard block |
||
16 | 16 | |
17 | 17 | public function __construct( |
18 | 18 | private readonly Transport $transport, |
19 | - ) {} |
|
19 | + ) { |
|
20 | +} |
|
20 | 21 | |
21 | 22 | public function registerTransport(TransportFactoryInterface $factory): void |
22 | 23 | { |
@@ -26,8 +27,10 @@ discard block |
||
26 | 27 | public function resolve(string $dsn): TransportInterface |
27 | 28 | { |
28 | 29 | $dsnDto = Dsn::fromString($dsn); |
29 | - foreach ($this->transports as $transport) { |
|
30 | - if ($transport->supports($dsnDto)) { |
|
30 | + foreach ($this->transports as $transport) |
|
31 | + { |
|
32 | + if ($transport->supports($dsnDto)) |
|
33 | + { |
|
31 | 34 | return $transport->create($dsnDto); |
32 | 35 | } |
33 | 36 | } |
@@ -14,12 +14,12 @@ |
||
14 | 14 | |
15 | 15 | public function __construct( |
16 | 16 | private readonly int $counter, |
17 | - ) {} |
|
17 | + ){} |
|
18 | 18 | |
19 | 19 | public function intercept(CallContextInterface $context, HandlerInterface $handler): mixed |
20 | 20 | { |
21 | 21 | $this->result = []; |
22 | - for ($i = 0; $i < $this->counter; ++$i) { |
|
22 | + for ($i = 0; $i < $this->counter; ++$i){ |
|
23 | 23 | $this->result[] = $handler->handle($context); |
24 | 24 | } |
25 | 25 |
@@ -14,12 +14,14 @@ |
||
14 | 14 | |
15 | 15 | public function __construct( |
16 | 16 | private readonly int $counter, |
17 | - ) {} |
|
17 | + ) { |
|
18 | +} |
|
18 | 19 | |
19 | 20 | public function intercept(CallContextInterface $context, HandlerInterface $handler): mixed |
20 | 21 | { |
21 | 22 | $this->result = []; |
22 | - for ($i = 0; $i < $this->counter; ++$i) { |
|
23 | + for ($i = 0; $i < $this->counter; ++$i) |
|
24 | + { |
|
23 | 25 | $this->result[] = $handler->handle($context); |
24 | 26 | } |
25 | 27 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | public function __construct( |
14 | 14 | private string $attribute, |
15 | 15 | private mixed $value, |
16 | - ) {} |
|
16 | + ){} |
|
17 | 17 | |
18 | 18 | public function intercept(CallContextInterface $context, HandlerInterface $handler): mixed |
19 | 19 | { |
@@ -13,7 +13,8 @@ |
||
13 | 13 | public function __construct( |
14 | 14 | private string $attribute, |
15 | 15 | private mixed $value, |
16 | - ) {} |
|
16 | + ) { |
|
17 | +} |
|
17 | 18 | |
18 | 19 | public function intercept(CallContextInterface $context, HandlerInterface $handler): mixed |
19 | 20 | { |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | private ?\ReflectionFunctionAbstract $reflection = null, |
21 | 21 | private readonly ?object $object = null, |
22 | 22 | private string $delimiter = '.', |
23 | - private readonly \Closure|array|null $callable = null, |
|
24 | - ) {} |
|
23 | + private readonly \Closure | array | null $callable = null, |
|
24 | + ){} |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Create a target from a method reflection. |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | */ |
40 | 40 | public static function fromReflectionMethod( |
41 | 41 | \ReflectionFunctionAbstract $reflection, |
42 | - string|object $classOrObject, |
|
42 | + string | object $classOrObject, |
|
43 | 43 | ): self { |
44 | 44 | $method = $reflection->getName(); |
45 | 45 | $isStatic = $reflection->isStatic(); |
@@ -47,17 +47,17 @@ discard block |
||
47 | 47 | /** @var self<T> $result */ |
48 | 48 | $result = \is_object($classOrObject) |
49 | 49 | ? new self( |
50 | - path: [$classOrObject::class, $method], |
|
51 | - reflection: $reflection, |
|
52 | - object: $classOrObject, |
|
53 | - delimiter: $isStatic ? '::' : '->', |
|
54 | - callable: [$classOrObject, $method], |
|
50 | + path : [$classOrObject::class, $method], |
|
51 | + reflection : $reflection, |
|
52 | + object : $classOrObject, |
|
53 | + delimiter : $isStatic ? '::' : '->', |
|
54 | + callable : [$classOrObject, $method], |
|
55 | 55 | ) |
56 | 56 | : new self( |
57 | - path: [$classOrObject, $method], |
|
58 | - reflection: $reflection, |
|
59 | - delimiter: $isStatic ? '::' : '->', |
|
60 | - callable: [$classOrObject, $method], |
|
57 | + path : [$classOrObject, $method], |
|
58 | + reflection : $reflection, |
|
59 | + delimiter : $isStatic ? '::' : '->', |
|
60 | + callable : [$classOrObject, $method], |
|
61 | 61 | ); |
62 | 62 | return $result; |
63 | 63 | } |
@@ -127,10 +127,10 @@ discard block |
||
127 | 127 | * |
128 | 128 | * @return ($controller is class-string|T ? self<T> : self<null>) |
129 | 129 | */ |
130 | - public static function fromPair(string|object $controller, string $action): self |
|
130 | + public static function fromPair(string | object $controller, string $action): self |
|
131 | 131 | { |
132 | 132 | /** @psalm-suppress ArgumentTypeCoercion */ |
133 | - if (\is_object($controller) || \method_exists($controller, $action)) { |
|
133 | + if (\is_object($controller) || \method_exists($controller, $action)){ |
|
134 | 134 | /** @var T|class-string<T> $controller */ |
135 | 135 | return self::fromReflectionMethod(new \ReflectionMethod($controller, $action), $controller); |
136 | 136 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | return $this->object; |
162 | 162 | } |
163 | 163 | |
164 | - public function getCallable(): callable|array|null |
|
164 | + public function getCallable(): callable | array | null |
|
165 | 165 | { |
166 | 166 | return $this->callable; |
167 | 167 | } |
@@ -21,7 +21,8 @@ discard block |
||
21 | 21 | private readonly ?object $object = null, |
22 | 22 | private string $delimiter = '.', |
23 | 23 | private readonly \Closure|array|null $callable = null, |
24 | - ) {} |
|
24 | + ) { |
|
25 | +} |
|
25 | 26 | |
26 | 27 | /** |
27 | 28 | * Create a target from a method reflection. |
@@ -130,7 +131,8 @@ discard block |
||
130 | 131 | public static function fromPair(string|object $controller, string $action): self |
131 | 132 | { |
132 | 133 | /** @psalm-suppress ArgumentTypeCoercion */ |
133 | - if (\is_object($controller) || \method_exists($controller, $action)) { |
|
134 | + if (\is_object($controller) || \method_exists($controller, $action)) |
|
135 | + { |
|
134 | 136 | /** @var T|class-string<T> $controller */ |
135 | 137 | return self::fromReflectionMethod(new \ReflectionMethod($controller, $action), $controller); |
136 | 138 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | public function __construct( |
18 | 18 | ?EventDispatcherInterface $dispatcher = null, |
19 | - ) { |
|
19 | + ){ |
|
20 | 20 | $this->pipeline = new InterceptorPipeline($dispatcher); |
21 | 21 | } |
22 | 22 |
@@ -12,5 +12,5 @@ |
||
12 | 12 | public function __construct( |
13 | 13 | public readonly CallContextInterface $context, |
14 | 14 | public readonly InterceptorInterface $interceptor, |
15 | - ) {} |
|
15 | + ){} |
|
16 | 16 | } |
@@ -12,5 +12,6 @@ |
||
12 | 12 | public function __construct( |
13 | 13 | public readonly CallContextInterface $context, |
14 | 14 | public readonly InterceptorInterface $interceptor, |
15 | - ) {} |
|
15 | + ) { |
|
16 | +} |
|
16 | 17 | } |