@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function __construct( |
13 | 13 | public \WeakReference $reference, |
14 | - ) {} |
|
14 | + ){} |
|
15 | 15 | |
16 | 16 | public function __toString(): string |
17 | 17 | { |
@@ -11,7 +11,8 @@ |
||
11 | 11 | { |
12 | 12 | public function __construct( |
13 | 13 | public \WeakReference $reference, |
14 | - ) {} |
|
14 | + ) { |
|
15 | +} |
|
15 | 16 | |
16 | 17 | public function __toString(): string |
17 | 18 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function __construct( |
15 | 15 | public readonly AutowireAlias $autowire, |
16 | 16 | public readonly bool $singleton = false, |
17 | - ) {} |
|
17 | + ){} |
|
18 | 18 | |
19 | 19 | public function __toString(): string |
20 | 20 | { |
@@ -14,7 +14,8 @@ |
||
14 | 14 | public function __construct( |
15 | 15 | public readonly AutowireAlias $autowire, |
16 | 16 | public readonly bool $singleton = false, |
17 | - ) {} |
|
17 | + ) { |
|
18 | +} |
|
18 | 19 | |
19 | 20 | public function __toString(): string |
20 | 21 | { |
@@ -12,7 +12,7 @@ |
||
12 | 12 | public function __construct( |
13 | 13 | public readonly string $alias, |
14 | 14 | public readonly bool $singleton = false, |
15 | - ) {} |
|
15 | + ){} |
|
16 | 16 | |
17 | 17 | public function __toString(): string |
18 | 18 | { |
@@ -12,7 +12,8 @@ |
||
12 | 12 | public function __construct( |
13 | 13 | public readonly string $alias, |
14 | 14 | public readonly bool $singleton = false, |
15 | - ) {} |
|
15 | + ) { |
|
16 | +} |
|
16 | 17 | |
17 | 18 | public function __toString(): string |
18 | 19 | { |
@@ -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 | public function __toString(): string |
24 | 24 | { |
@@ -18,7 +18,8 @@ |
||
18 | 18 | */ |
19 | 19 | public function __construct( |
20 | 20 | public readonly string|InjectorInterface $injector, |
21 | - ) {} |
|
21 | + ) { |
|
22 | +} |
|
22 | 23 | |
23 | 24 | public function __toString(): string |
24 | 25 | { |
@@ -7,4 +7,4 @@ |
||
7 | 7 | /** |
8 | 8 | * Rare cases when spiral container can't resolve controllable injection. |
9 | 9 | */ |
10 | -class InjectionException extends ContainerException {} |
|
10 | +class InjectionException extends ContainerException{} |
@@ -7,4 +7,6 @@ |
||
7 | 7 | /** |
8 | 8 | * Rare cases when spiral container can't resolve controllable injection. |
9 | 9 | */ |
10 | -class InjectionException extends ContainerException {} |
|
10 | +class InjectionException extends ContainerException |
|
11 | +{ |
|
12 | +} |
@@ -4,4 +4,4 @@ |
||
4 | 4 | |
5 | 5 | namespace Spiral\Core\Exception\Container; |
6 | 6 | |
7 | -class NotCallableException extends ContainerException {} |
|
7 | +class NotCallableException extends ContainerException{} |
@@ -4,4 +4,6 @@ |
||
4 | 4 | |
5 | 5 | namespace Spiral\Core\Exception\Container; |
6 | 6 | |
7 | -class NotCallableException extends ContainerException {} |
|
7 | +class NotCallableException extends ContainerException |
|
8 | +{ |
|
9 | +} |
@@ -10,4 +10,4 @@ |
||
10 | 10 | /** |
11 | 11 | * Something inside container. |
12 | 12 | */ |
13 | -class ContainerException extends RuntimeException implements ContainerExceptionInterface {} |
|
13 | +class ContainerException extends RuntimeException implements ContainerExceptionInterface{} |
@@ -10,4 +10,6 @@ |
||
10 | 10 | /** |
11 | 11 | * Something inside container. |
12 | 12 | */ |
13 | -class ContainerException extends RuntimeException implements ContainerExceptionInterface {} |
|
13 | +class ContainerException extends RuntimeException implements ContainerExceptionInterface |
|
14 | +{ |
|
15 | +} |
@@ -16,10 +16,10 @@ |
||
16 | 16 | public function __construct( |
17 | 17 | protected \ReflectionParameter $parameter, |
18 | 18 | protected \ReflectionFunctionAbstract $context, |
19 | - ) { |
|
19 | + ){ |
|
20 | 20 | $name = $context->getName(); |
21 | - if ($context instanceof \ReflectionMethod) { |
|
22 | - $name = $context->class . '::' . $name; |
|
21 | + if ($context instanceof \ReflectionMethod){ |
|
22 | + $name = $context->class.'::'.$name; |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | parent::__construct(\sprintf("Unable to resolve '%s' argument in '%s'", $parameter->name, $name)); |
@@ -18,7 +18,8 @@ |
||
18 | 18 | protected \ReflectionFunctionAbstract $context, |
19 | 19 | ) { |
20 | 20 | $name = $context->getName(); |
21 | - if ($context instanceof \ReflectionMethod) { |
|
21 | + if ($context instanceof \ReflectionMethod) |
|
22 | + { |
|
22 | 23 | $name = $context->class . '::' . $name; |
23 | 24 | } |
24 | 25 |
@@ -9,4 +9,4 @@ |
||
9 | 9 | /** |
10 | 10 | * Caused when container is not able to find the proper binding. |
11 | 11 | */ |
12 | -class NotFoundException extends AutowireException implements NotFoundExceptionInterface {} |
|
12 | +class NotFoundException extends AutowireException implements NotFoundExceptionInterface{} |
@@ -9,4 +9,6 @@ |
||
9 | 9 | /** |
10 | 10 | * Caused when container is not able to find the proper binding. |
11 | 11 | */ |
12 | -class NotFoundException extends AutowireException implements NotFoundExceptionInterface {} |
|
12 | +class NotFoundException extends AutowireException implements NotFoundExceptionInterface |
|
13 | +{ |
|
14 | +} |