@@ -53,7 +53,8 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function get(string|Autowire $id, \Stringable|string|null $context = null): mixed |
55 | 55 | { |
56 | - if ($id instanceof Autowire) { |
|
56 | + if ($id instanceof Autowire) |
|
57 | + { |
|
57 | 58 | return $id->resolve($this->factory); |
58 | 59 | } |
59 | 60 | |
@@ -65,15 +66,18 @@ discard block |
||
65 | 66 | { |
66 | 67 | $this->actor->resolveType($id, $binding, $singleton, $injector, $actor, false); |
67 | 68 | |
68 | - if ($singleton !== null || $injector !== null) { |
|
69 | + if ($singleton !== null || $injector !== null) |
|
70 | + { |
|
69 | 71 | return true; |
70 | 72 | } |
71 | 73 | |
72 | - if ($binding === null) { |
|
74 | + if ($binding === null) |
|
75 | + { |
|
73 | 76 | return false; |
74 | 77 | } |
75 | 78 | |
76 | - if ($binding instanceof \Spiral\Core\Config\Proxy) { |
|
79 | + if ($binding instanceof \Spiral\Core\Config\Proxy) |
|
80 | + { |
|
77 | 81 | $type = $binding->getReturnClass(); |
78 | 82 | return $id === $type |
79 | 83 | ? $binding->hasFactory() |