Passed
Push — master ( fabbdf...3d1055 )
by Aleksei
06:01 queued 12s
created
src/Core/src/Internal/Container.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.