@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | string $namespace, |
27 | 27 | string $postfix = 'Controller', |
28 | 28 | int $options = 0 |
29 | - ) { |
|
29 | + ){ |
|
30 | 30 | $this->namespace = \rtrim($namespace, '\\'); |
31 | 31 | $this->postfix = \ucfirst($postfix); |
32 | 32 | |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | protected function resolveController(array $matches): string |
46 | 46 | { |
47 | - if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller'])) { |
|
47 | + if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller'])){ |
|
48 | 48 | throw new TargetException('Invalid namespace target, controller name not allowed.'); |
49 | 49 | } |
50 | 50 |
@@ -44,7 +44,8 @@ |
||
44 | 44 | */ |
45 | 45 | protected function resolveController(array $matches): string |
46 | 46 | { |
47 | - if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller'])) { |
|
47 | + if (\preg_match('/[^a-z_0-9\-]/i', $matches['controller'])) |
|
48 | + { |
|
48 | 49 | throw new TargetException('Invalid namespace target, controller name not allowed.'); |
49 | 50 | } |
50 | 51 |
@@ -29,11 +29,11 @@ |
||
29 | 29 | return $id; |
30 | 30 | } |
31 | 31 | |
32 | - public function defaultInt(string|int $id = 1): string |
|
32 | + public function defaultInt(string | int $id = 1): string |
|
33 | 33 | { |
34 | 34 | $result = \is_int($id) ? 'int: ' : 'string: '; |
35 | 35 | |
36 | - return $result . $id; |
|
36 | + return $result.$id; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | public function echo(): void |
@@ -52,9 +52,12 @@ |
||
52 | 52 | */ |
53 | 53 | private function getTokenStorage(): TokenStorageInterface |
54 | 54 | { |
55 | - try { |
|
55 | + try |
|
56 | + { |
|
56 | 57 | return $this->container->get(TokenStorageInterface::class); |
57 | - } catch (NotFoundExceptionInterface $e) { |
|
58 | + } |
|
59 | + catch (NotFoundExceptionInterface $e) |
|
60 | + { |
|
58 | 61 | throw new ScopeException('Unable to resolve token storage, invalid scope', $e->getCode(), $e); |
59 | 62 | } |
60 | 63 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | public function __construct( |
21 | 21 | #[Proxy] private readonly ContainerInterface $container |
22 | - ) { |
|
22 | + ){ |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | /** |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | */ |
58 | 58 | private function getTokenStorage(): TokenStorageInterface |
59 | 59 | { |
60 | - try { |
|
60 | + try{ |
|
61 | 61 | return $this->container->get(TokenStorageInterface::class); |
62 | - } catch (NotFoundExceptionInterface $e) { |
|
62 | + }catch (NotFoundExceptionInterface $e){ |
|
63 | 63 | throw new ScopeException('Unable to resolve token storage, invalid scope', $e->getCode(), $e); |
64 | 64 | } |
65 | 65 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | |
16 | 16 | final class QueueManagerTest extends TestCase |
17 | 17 | { |
18 | - private m\MockInterface|FactoryInterface $factory; |
|
18 | + private m\MockInterface | FactoryInterface $factory; |
|
19 | 19 | private QueueManager $manager; |
20 | 20 | |
21 | 21 | protected function setUp(): void |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | public function __construct( |
15 | 15 | private LoggerInterface $logger, |
16 | - ) { |
|
16 | + ){ |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | public function createInjection(\ReflectionClass $class, ?string $context = null): LoggerInterface |
@@ -7,8 +7,8 @@ |
||
7 | 7 | final class Scalar extends Binding |
8 | 8 | { |
9 | 9 | public function __construct( |
10 | - public readonly bool|int|string|float $value, |
|
11 | - ) { |
|
10 | + public readonly bool | int | string | float $value, |
|
11 | + ){ |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | public function __toString(): string |
@@ -17,8 +17,8 @@ |
||
17 | 17 | * @param string|InjectorInterface $injector Injector object or binding alias. |
18 | 18 | */ |
19 | 19 | public function __construct( |
20 | - public readonly string|InjectorInterface $injector, |
|
21 | - ) { |
|
20 | + public readonly string | InjectorInterface $injector, |
|
21 | + ){ |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | public function __toString(): string |
@@ -18,7 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function __construct( |
20 | 20 | public readonly \Closure $inflector, |
21 | - ) { |
|
21 | + ){ |
|
22 | 22 | $this->parametersCount = (new \ReflectionFunction($inflector))->getNumberOfParameters(); |
23 | 23 | } |
24 | 24 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function __construct( |
13 | 13 | public \WeakReference $reference, |
14 | - ) { |
|
14 | + ){ |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public function __toString(): string |