Passed
Pull Request — master (#1026)
by Maxim
10:23
created
src/Framework/Bootloader/DebugBootloader.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -72,12 +72,15 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $state = new State();
74 74
 
75
-        foreach ($config->getTags() as $key => $value) {
76
-            if ($value instanceof \Closure) {
75
+        foreach ($config->getTags() as $key => $value)
76
+        {
77
+            if ($value instanceof \Closure)
78
+            {
77 79
                 $value = $this->invoker->invoke($value);
78 80
             }
79 81
 
80
-            if (!\is_string($value) && !$value instanceof \Stringable) {
82
+            if (!\is_string($value) && !$value instanceof \Stringable)
83
+            {
81 84
                 throw new StateException(\sprintf(
82 85
                     'Invalid tag value, `string` expected got `%s`',
83 86
                     \is_object($value) ? $value::class : \gettype($value)
@@ -87,14 +90,16 @@  discard block
 block discarded – undo
87 90
             $state->setTag((string) $key, (string) $value);
88 91
         }
89 92
 
90
-        foreach ($config->getCollectors() as $collector) {
93
+        foreach ($config->getCollectors() as $collector)
94
+        {
91 95
             $collector = match (true) {
92 96
                 \is_string($collector) => $this->factory->make($collector),
93 97
                 $collector instanceof Autowire => $collector->resolve($this->factory),
94 98
                 default => $collector,
95 99
             };
96 100
 
97
-            if (!$collector instanceof StateCollectorInterface) {
101
+            if (!$collector instanceof StateCollectorInterface)
102
+            {
98 103
                 throw new StateException(
99 104
                     \sprintf(
100 105
                         'Unable to populate state, invalid state collector %s',
Please login to merge, or discard this patch.