Test Failed
Pull Request — master (#1102)
by Aleksei
10:09
created
src/Bridge/Monolog/tests/FactoryTest.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
         $logger = $factory->getLogger();
56 56
 
57 57
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
58
-            new class() implements LoaderInterface {
58
+            new class() implements LoaderInterface{
59 59
                 public function has(string $section): bool
60 60
                 {
61 61
                     return false;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $factory = new LogFactory(new MonologConfig([]), new ListenerRegistry(), new Container());
84 84
 
85 85
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
86
-            new class() implements LoaderInterface {
86
+            new class() implements LoaderInterface{
87 87
                 public function has(string $section): bool
88 88
                 {
89 89
                     return false;
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
         $this->container->get(StrategyBasedBootloadManager::class)->bootload([MonologBootloader::class]);
103 103
         $this->container->bind(LogFactory::class, $factory);
104 104
 
105
-        $this->container->invoke(function (#[LoggerChannel('foo')] LoggerInterface $logger) {
105
+        $this->container->invoke(function (#[LoggerChannel('foo')] LoggerInterface $logger){
106 106
             $this->assertSame('foo', $logger->getName());
107 107
         });
108 108
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     public function testFinalizerShouldResetDefaultLogger()
111 111
     {
112 112
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
113
-            new class() implements LoaderInterface {
113
+            new class() implements LoaderInterface{
114 114
                 public function has(string $section): bool
115 115
                 {
116 116
                     return false;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     public function testFinalizerShouldNotResetLoggerWhenApplicationTerminating()
151 151
     {
152 152
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
153
-            new class() implements LoaderInterface {
153
+            new class() implements LoaderInterface{
154 154
                 public function has(string $section): bool
155 155
                 {
156 156
                     return false;
Please login to merge, or discard this patch.
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -55,7 +55,8 @@  discard block
 block discarded – undo
55 55
         $logger = $factory->getLogger();
56 56
 
57 57
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
58
-            new class() implements LoaderInterface {
58
+            new class() implements LoaderInterface
59
+            {
59 60
                 public function has(string $section): bool
60 61
                 {
61 62
                     return false;
@@ -83,7 +84,8 @@  discard block
 block discarded – undo
83 84
         $factory = new LogFactory(new MonologConfig([]), new ListenerRegistry(), new Container());
84 85
 
85 86
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
86
-            new class() implements LoaderInterface {
87
+            new class() implements LoaderInterface
88
+            {
87 89
                 public function has(string $section): bool
88 90
                 {
89 91
                     return false;
@@ -102,7 +104,8 @@  discard block
 block discarded – undo
102 104
         $this->container->get(StrategyBasedBootloadManager::class)->bootload([MonologBootloader::class]);
103 105
         $this->container->bind(LogFactory::class, $factory);
104 106
 
105
-        $this->container->invoke(function (#[LoggerChannel('foo')] LoggerInterface $logger) {
107
+        $this->container->invoke(function (#[LoggerChannel('foo')] LoggerInterface $logger)
108
+        {
106 109
             $this->assertSame('foo', $logger->getName());
107 110
         });
108 111
     }
@@ -110,7 +113,8 @@  discard block
 block discarded – undo
110 113
     public function testFinalizerShouldResetDefaultLogger()
111 114
     {
112 115
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
113
-            new class() implements LoaderInterface {
116
+            new class() implements LoaderInterface
117
+            {
114 118
                 public function has(string $section): bool
115 119
                 {
116 120
                     return false;
@@ -150,7 +154,8 @@  discard block
 block discarded – undo
150 154
     public function testFinalizerShouldNotResetLoggerWhenApplicationTerminating()
151 155
     {
152 156
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
153
-            new class() implements LoaderInterface {
157
+            new class() implements LoaderInterface
158
+            {
154 159
                 public function has(string $section): bool
155 160
                 {
156 161
                     return false;
Please login to merge, or discard this patch.
src/Logger/src/LoggerInjector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,12 +20,12 @@
 block discarded – undo
20 20
     public function __construct(
21 21
         #[Proxy]
22 22
         private readonly LogsInterface $factory
23
-    ) {
23
+    ){
24 24
     }
25 25
 
26 26
     public function createInjection(
27 27
         \ReflectionClass $class,
28
-        \ReflectionParameter|null|string $context = null,
28
+        \ReflectionParameter | null | string $context = null,
29 29
     ): LoggerInterface {
30 30
         $channel = \is_object($context) ? $this->extractChannelAttribute($context) : null;
31 31
 
Please login to merge, or discard this patch.