Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Framework/Bootloader/SnapshotsBootloader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
         FilesInterface $files,
37 37
     ): FileSnapshot {
38 38
         return new FileSnapshot(
39
-            $dirs->get('runtime') . '/snapshots/',
40
-            (int) $env->get('SNAPSHOT_MAX_FILES', self::MAX_SNAPSHOTS),
41
-            Verbosity::tryFrom((int) ($env->get('SNAPSHOT_VERBOSITY') ?? Verbosity::VERBOSE->value)),
39
+            $dirs->get('runtime').'/snapshots/',
40
+            (int)$env->get('SNAPSHOT_MAX_FILES', self::MAX_SNAPSHOTS),
41
+            Verbosity::tryFrom((int)($env->get('SNAPSHOT_VERBOSITY') ?? Verbosity::VERBOSE->value)),
42 42
             new PlainRenderer(),
43 43
             $files,
44 44
         );
Please login to merge, or discard this patch.
src/Framework/Bootloader/Auth/HttpAuthBootloader.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 {
42 42
     public function __construct(
43 43
         private readonly ConfiguratorInterface $config,
44
-    ) {}
44
+    ){}
45 45
 
46 46
     public function defineDependencies(): array
47 47
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         $httpBinder->bindSingleton(TokenStorageInterface::class, [self::class, 'getTokenStorage']);
77 77
         $httpBinder->bind(
78 78
             AuthContextInterface::class,
79
-            static fn(?ServerRequestInterface $request): AuthContextInterface =>
79
+            static fn(?ServerRequestInterface $request) : AuthContextInterface =>
80 80
                 ($request ?? throw new InvalidRequestScopeException(AuthContextInterface::class))
81 81
                     ->getAttribute(AuthMiddleware::ATTRIBUTE) ?? throw new ContextualObjectNotFoundException(
82 82
                         AuthContextInterface::class,
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      * @param non-empty-string $name
111 111
      * @param Autowire|HttpTransportInterface|class-string<HttpTransportInterface> $transport
112 112
      */
113
-    public function addTransport(string $name, Autowire|HttpTransportInterface|string $transport): void
113
+    public function addTransport(string $name, Autowire | HttpTransportInterface | string $transport): void
114 114
     {
115 115
         $this->config->modify(AuthConfig::CONFIG, new Append('transports', $name, $transport));
116 116
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @param non-empty-string $name
122 122
      * @param Autowire|TokenStorageInterface|class-string<TokenStorageInterface> $storage
123 123
      */
124
-    public function addTokenStorage(string $name, Autowire|TokenStorageInterface|string $storage): void
124
+    public function addTokenStorage(string $name, Autowire | TokenStorageInterface | string $storage): void
125 125
     {
126 126
         $this->config->modify(AuthConfig::CONFIG, new Append('storages', $name, $storage));
127 127
     }
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
         $registry = new TransportRegistry();
145 145
         $registry->setDefaultTransport($config->getDefaultTransport());
146 146
 
147
-        foreach ($config->getTransports() as $name => $transport) {
148
-            if ($transport instanceof Autowire) {
147
+        foreach ($config->getTransports() as $name => $transport){
148
+            if ($transport instanceof Autowire){
149 149
                 $transport = $transport->resolve($factory);
150 150
             }
151 151
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@  discard block
 block discarded – undo
41 41
 {
42 42
     public function __construct(
43 43
         private readonly ConfiguratorInterface $config,
44
-    ) {}
44
+    ) {
45
+}
45 46
 
46 47
     public function defineDependencies(): array
47 48
     {
@@ -144,8 +145,10 @@  discard block
 block discarded – undo
144 145
         $registry = new TransportRegistry();
145 146
         $registry->setDefaultTransport($config->getDefaultTransport());
146 147
 
147
-        foreach ($config->getTransports() as $name => $transport) {
148
-            if ($transport instanceof Autowire) {
148
+        foreach ($config->getTransports() as $name => $transport)
149
+        {
150
+            if ($transport instanceof Autowire)
151
+            {
149 152
                 $transport = $transport->resolve($factory);
150 153
             }
151 154
 
Please login to merge, or discard this patch.
src/Framework/Bootloader/Auth/AuthBootloader.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function __construct(
31 31
         private readonly FactoryInterface $factory,
32
-    ) {}
32
+    ){}
33 33
 
34 34
     /**
35 35
      * Find actor by first matching actor provider.
36 36
      */
37 37
     public function getActor(TokenInterface $token): ?object
38 38
     {
39
-        foreach ($this->getProviders() as $provider) {
40
-            if (!$provider instanceof ActorProviderInterface) {
39
+        foreach ($this->getProviders() as $provider){
40
+            if (!$provider instanceof ActorProviderInterface){
41 41
                 throw new AuthException(
42 42
                     \sprintf(
43 43
                         'Expected `ActorProviderInterface`, got `%s`',
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
             }
48 48
 
49 49
             $actor = $provider->getActor($token);
50
-            if ($actor !== null) {
50
+            if ($actor !== null){
51 51
                 return $actor;
52 52
             }
53 53
         }
54 54
 
55
-        if ($this->actorProvider === []) {
55
+        if ($this->actorProvider === []){
56 56
             throw new AuthException('No actor provider');
57 57
         }
58 58
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Register new actor provider.
64 64
      */
65
-    public function addActorProvider(ActorProviderInterface|Autowire|string $actorProvider): void
65
+    public function addActorProvider(ActorProviderInterface | Autowire | string $actorProvider): void
66 66
     {
67 67
         $this->actorProvider[] = $actorProvider;
68 68
     }
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
      */
73 73
     private function getProviders(): \Generator
74 74
     {
75
-        foreach ($this->actorProvider as $provider) {
76
-            if ($provider instanceof Autowire) {
75
+        foreach ($this->actorProvider as $provider){
76
+            if ($provider instanceof Autowire){
77 77
                 yield $provider->resolve($this->factory);
78 78
                 continue;
79 79
             }
80 80
 
81
-            if (\is_object($provider)) {
81
+            if (\is_object($provider)){
82 82
                 yield $provider;
83 83
                 continue;
84 84
             }
Please login to merge, or discard this patch.
Braces   +16 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,15 +29,18 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function __construct(
31 31
         private readonly FactoryInterface $factory,
32
-    ) {}
32
+    ) {
33
+}
33 34
 
34 35
     /**
35 36
      * Find actor by first matching actor provider.
36 37
      */
37 38
     public function getActor(TokenInterface $token): ?object
38 39
     {
39
-        foreach ($this->getProviders() as $provider) {
40
-            if (!$provider instanceof ActorProviderInterface) {
40
+        foreach ($this->getProviders() as $provider)
41
+        {
42
+            if (!$provider instanceof ActorProviderInterface)
43
+            {
41 44
                 throw new AuthException(
42 45
                     \sprintf(
43 46
                         'Expected `ActorProviderInterface`, got `%s`',
@@ -47,12 +50,14 @@  discard block
 block discarded – undo
47 50
             }
48 51
 
49 52
             $actor = $provider->getActor($token);
50
-            if ($actor !== null) {
53
+            if ($actor !== null)
54
+            {
51 55
                 return $actor;
52 56
             }
53 57
         }
54 58
 
55
-        if ($this->actorProvider === []) {
59
+        if ($this->actorProvider === [])
60
+        {
56 61
             throw new AuthException('No actor provider');
57 62
         }
58 63
 
@@ -72,13 +77,16 @@  discard block
 block discarded – undo
72 77
      */
73 78
     private function getProviders(): \Generator
74 79
     {
75
-        foreach ($this->actorProvider as $provider) {
76
-            if ($provider instanceof Autowire) {
80
+        foreach ($this->actorProvider as $provider)
81
+        {
82
+            if ($provider instanceof Autowire)
83
+            {
77 84
                 yield $provider->resolve($this->factory);
78 85
                 continue;
79 86
             }
80 87
 
81
-            if (\is_object($provider)) {
88
+            if (\is_object($provider))
89
+            {
82 90
                 yield $provider;
83 91
                 continue;
84 92
             }
Please login to merge, or discard this patch.
src/Framework/Bootloader/Security/FiltersBootloader.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         private readonly ContainerInterface $container,
45 45
         private readonly BinderInterface $binder,
46 46
         private readonly ConfiguratorInterface $config,
47
-    ) {}
47
+    ){}
48 48
 
49 49
     public function defineSingletons(): array
50 50
     {
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $builder ??= new CompatiblePipelineBuilder($dispatcher);
116 116
 
117 117
         $list = [];
118
-        foreach ($config->getInterceptors() as $interceptor) {
118
+        foreach ($config->getInterceptors() as $interceptor){
119 119
             $list[] = $container->get($interceptor);
120 120
         }
121 121
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,8 @@  discard block
 block discarded – undo
44 44
         private readonly ContainerInterface $container,
45 45
         private readonly BinderInterface $binder,
46 46
         private readonly ConfiguratorInterface $config,
47
-    ) {}
47
+    ) {
48
+}
48 49
 
49 50
     public function defineSingletons(): array
50 51
     {
@@ -115,7 +116,8 @@  discard block
 block discarded – undo
115 116
         $builder ??= new CompatiblePipelineBuilder($dispatcher);
116 117
 
117 118
         $list = [];
118
-        foreach ($config->getInterceptors() as $interceptor) {
119
+        foreach ($config->getInterceptors() as $interceptor)
120
+        {
119 121
             $list[] = $container->get($interceptor);
120 122
         }
121 123
 
Please login to merge, or discard this patch.
src/Framework/Bootloader/DebugBootloader.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct(
37 37
         private readonly InvokerInterface $invoker,
38 38
         private readonly ConfiguratorInterface $config,
39
-    ) {}
39
+    ){}
40 40
 
41 41
     /**
42 42
      * Boot default state collector.
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * @param non-empty-string $key
52 52
      * @param TTag $value
53 53
      */
54
-    public function addTag(string $key, string|\Stringable|\Closure $value): void
54
+    public function addTag(string $key, string | \Stringable | \Closure $value): void
55 55
     {
56 56
         $this->config->modify(DebugConfig::CONFIG, new Append('tags', $key, $value));
57 57
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * @psalm-param TCollector $collector
61 61
      */
62
-    public function addStateCollector(string|StateCollectorInterface|Autowire $collector): void
62
+    public function addStateCollector(string | StateCollectorInterface | Autowire $collector): void
63 63
     {
64 64
         $this->config->modify(DebugConfig::CONFIG, new Append('collectors', null, $collector));
65 65
     }
@@ -73,12 +73,12 @@  discard block
 block discarded – undo
73 73
     ): StateInterface {
74 74
         $state = new State();
75 75
 
76
-        foreach ($config->getTags() as $key => $value) {
77
-            if ($value instanceof \Closure) {
76
+        foreach ($config->getTags() as $key => $value){
77
+            if ($value instanceof \Closure){
78 78
                 $value = $this->invoker->invoke($value);
79 79
             }
80 80
 
81
-            if (!\is_string($value) && !$value instanceof \Stringable) {
81
+            if (!\is_string($value) && !$value instanceof \Stringable){
82 82
                 throw new StateException(
83 83
                     \sprintf(
84 84
                         'Invalid tag value, `string` expected got `%s`',
@@ -87,26 +87,26 @@  discard block
 block discarded – undo
87 87
                 );
88 88
             }
89 89
 
90
-            $state->setTag((string) $key, (string) $value);
90
+            $state->setTag((string)$key, (string)$value);
91 91
         }
92 92
 
93 93
         $errors = [];
94 94
 
95
-        foreach ($config->getCollectors() as $collector) {
96
-            try {
95
+        foreach ($config->getCollectors() as $collector){
96
+            try{
97 97
                 $collector = match (true) {
98 98
                     \is_string($collector) => $factory->make($collector),
99 99
                     $collector instanceof Autowire => $collector->resolve($factory),
100 100
                     default => $collector,
101 101
                 };
102
-            } catch (\Throwable) {
102
+            }catch (\Throwable){
103 103
                 $errors[] = \is_string($collector) || $collector instanceof \Stringable
104
-                    ? (string) $collector
104
+                    ? (string)$collector
105 105
                     : \get_debug_type($collector);
106 106
                 continue;
107 107
             }
108 108
 
109
-            if (!$collector instanceof StateCollectorInterface) {
109
+            if (!$collector instanceof StateCollectorInterface){
110 110
                 throw new StateException(
111 111
                     \sprintf(
112 112
                         'Unable to populate state, invalid state collector %s',
Please login to merge, or discard this patch.
Braces   +17 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,7 +36,8 @@  discard block
 block discarded – undo
36 36
     public function __construct(
37 37
         private readonly InvokerInterface $invoker,
38 38
         private readonly ConfiguratorInterface $config,
39
-    ) {}
39
+    ) {
40
+}
40 41
 
41 42
     /**
42 43
      * Boot default state collector.
@@ -73,12 +74,15 @@  discard block
 block discarded – undo
73 74
     ): StateInterface {
74 75
         $state = new State();
75 76
 
76
-        foreach ($config->getTags() as $key => $value) {
77
-            if ($value instanceof \Closure) {
77
+        foreach ($config->getTags() as $key => $value)
78
+        {
79
+            if ($value instanceof \Closure)
80
+            {
78 81
                 $value = $this->invoker->invoke($value);
79 82
             }
80 83
 
81
-            if (!\is_string($value) && !$value instanceof \Stringable) {
84
+            if (!\is_string($value) && !$value instanceof \Stringable)
85
+            {
82 86
                 throw new StateException(
83 87
                     \sprintf(
84 88
                         'Invalid tag value, `string` expected got `%s`',
@@ -92,21 +96,26 @@  discard block
 block discarded – undo
92 96
 
93 97
         $errors = [];
94 98
 
95
-        foreach ($config->getCollectors() as $collector) {
96
-            try {
99
+        foreach ($config->getCollectors() as $collector)
100
+        {
101
+            try
102
+            {
97 103
                 $collector = match (true) {
98 104
                     \is_string($collector) => $factory->make($collector),
99 105
                     $collector instanceof Autowire => $collector->resolve($factory),
100 106
                     default => $collector,
101 107
                 };
102
-            } catch (\Throwable) {
108
+            }
109
+            catch (\Throwable)
110
+            {
103 111
                 $errors[] = \is_string($collector) || $collector instanceof \Stringable
104 112
                     ? (string) $collector
105 113
                     : \get_debug_type($collector);
106 114
                 continue;
107 115
             }
108 116
 
109
-            if (!$collector instanceof StateCollectorInterface) {
117
+            if (!$collector instanceof StateCollectorInterface)
118
+            {
110 119
                 throw new StateException(
111 120
                     \sprintf(
112 121
                         'Unable to populate state, invalid state collector %s',
Please login to merge, or discard this patch.
src/Framework/Bootloader/I18nBootloader.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,12 +42,12 @@
 block discarded – undo
42 42
 
43 43
     public function __construct(
44 44
         private readonly ConfiguratorInterface $config,
45
-    ) {}
45
+    ){}
46 46
 
47 47
     public function init(EnvironmentInterface $env, DirectoriesInterface $dirs, DebugMode $debugMode): void
48 48
     {
49
-        if (!$dirs->has('locale')) {
50
-            $dirs->set('locale', $dirs->get('app') . 'locale/');
49
+        if (!$dirs->has('locale')){
50
+            $dirs->set('locale', $dirs->get('app').'locale/');
51 51
         }
52 52
 
53 53
         $this->config->setDefaults(
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,13 @@
 block discarded – undo
42 42
 
43 43
     public function __construct(
44 44
         private readonly ConfiguratorInterface $config,
45
-    ) {}
45
+    ) {
46
+}
46 47
 
47 48
     public function init(EnvironmentInterface $env, DirectoriesInterface $dirs, DebugMode $debugMode): void
48 49
     {
49
-        if (!$dirs->has('locale')) {
50
+        if (!$dirs->has('locale'))
51
+        {
50 52
             $dirs->set('locale', $dirs->get('app') . 'locale/');
51 53
         }
52 54
 
Please login to merge, or discard this patch.
src/Framework/Bootloader/Attributes/AttributesConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
 
29 29
     public function isAnnotationsReaderEnabled(): bool
30 30
     {
31
-        return (bool) $this->config['annotations']['support'];
31
+        return (bool)$this->config['annotations']['support'];
32 32
     }
33 33
 
34 34
     public function isCacheEnabled(): bool
35 35
     {
36
-        return (bool) ($this->config['cache']['enabled'] ?? false);
36
+        return (bool)($this->config['cache']['enabled'] ?? false);
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
src/Framework/Bootloader/Attributes/AttributesBootloader.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function __construct(
32 32
         private readonly ConfiguratorInterface $config,
33
-    ) {}
33
+    ){}
34 34
 
35 35
     public function init(EnvironmentInterface $env): void
36 36
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     private function initInstantiator(AttributesConfig $config): InstantiatorInterface
52 52
     {
53
-        if ($config->isAnnotationsReaderEnabled()) {
53
+        if ($config->isAnnotationsReaderEnabled()){
54 54
             return new Facade();
55 55
         }
56 56
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     ): ReaderInterface {
66 66
         $reader = new AttributeReader($instantiator);
67 67
 
68
-        if ($config->isCacheEnabled()) {
68
+        if ($config->isCacheEnabled()){
69 69
             $provider = $container->get(CacheStorageProviderInterface::class);
70 70
             \assert($provider instanceof CacheStorageProviderInterface);
71 71
 
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 
75 75
         $supportAnnotations = $config->isAnnotationsReaderEnabled();
76 76
 
77
-        if ($supportAnnotations) {
78
-            if (!\interface_exists(DoctrineReaderInterface::class)) {
77
+        if ($supportAnnotations){
78
+            if (!\interface_exists(DoctrineReaderInterface::class)){
79 79
                 throw new InitializationException(
80 80
                     'Doctrine annotations reader is not available, please install "doctrine/annotations" package',
81 81
                 );
Please login to merge, or discard this patch.
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,8 @@  discard block
 block discarded – undo
30 30
 
31 31
     public function __construct(
32 32
         private readonly ConfiguratorInterface $config,
33
-    ) {}
33
+    ) {
34
+}
34 35
 
35 36
     public function init(EnvironmentInterface $env): void
36 37
     {
@@ -50,7 +51,8 @@  discard block
 block discarded – undo
50 51
 
51 52
     private function initInstantiator(AttributesConfig $config): InstantiatorInterface
52 53
     {
53
-        if ($config->isAnnotationsReaderEnabled()) {
54
+        if ($config->isAnnotationsReaderEnabled())
55
+        {
54 56
             return new Facade();
55 57
         }
56 58
 
@@ -65,7 +67,8 @@  discard block
 block discarded – undo
65 67
     ): ReaderInterface {
66 68
         $reader = new AttributeReader($instantiator);
67 69
 
68
-        if ($config->isCacheEnabled()) {
70
+        if ($config->isCacheEnabled())
71
+        {
69 72
             $provider = $container->get(CacheStorageProviderInterface::class);
70 73
             \assert($provider instanceof CacheStorageProviderInterface);
71 74
 
@@ -74,8 +77,10 @@  discard block
 block discarded – undo
74 77
 
75 78
         $supportAnnotations = $config->isAnnotationsReaderEnabled();
76 79
 
77
-        if ($supportAnnotations) {
78
-            if (!\interface_exists(DoctrineReaderInterface::class)) {
80
+        if ($supportAnnotations)
81
+        {
82
+            if (!\interface_exists(DoctrineReaderInterface::class))
83
+            {
79 84
                 throw new InitializationException(
80 85
                     'Doctrine annotations reader is not available, please install "doctrine/annotations" package',
81 86
                 );
Please login to merge, or discard this patch.
src/Framework/Console/Logger/DebugListener.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function __construct(
29 29
         private readonly ListenerRegistryInterface $listenerRegistry,
30
-    ) {}
30
+    ){}
31 31
 
32 32
     /**
33 33
      * Configure listener with new output.
@@ -67,11 +67,11 @@  discard block
 block discarded – undo
67 67
      */
68 68
     public function __invoke(LogEvent $event): void
69 69
     {
70
-        if (empty($this->output)) {
70
+        if (empty($this->output)){
71 71
             return;
72 72
         }
73 73
 
74
-        if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERY_VERBOSE) {
74
+        if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERY_VERBOSE){
75 75
             return;
76 76
         }
77 77
 
@@ -95,13 +95,13 @@  discard block
 block discarded – undo
95 95
 
96 96
     private function getChannel(string $channel): string
97 97
     {
98
-        if (!\class_exists($channel, false)) {
98
+        if (!\class_exists($channel, false)){
99 99
             return \sprintf('[%s]', $channel);
100 100
         }
101 101
 
102
-        try {
102
+        try{
103 103
             $reflection = new \ReflectionClass($channel);
104
-        } catch (\ReflectionException) {
104
+        }catch (\ReflectionException){
105 105
             return $channel;
106 106
         }
107 107
 
@@ -110,10 +110,10 @@  discard block
 block discarded – undo
110 110
 
111 111
     private function getMessage(bool $decorated, string $message): string
112 112
     {
113
-        if (!$decorated) {
113
+        if (!$decorated){
114 114
             return $message;
115 115
         }
116 116
 
117
-        return Color::GRAY . $message . Color::RESET;
117
+        return Color::GRAY.$message.Color::RESET;
118 118
     }
119 119
 }
Please login to merge, or discard this patch.
Braces   +15 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,8 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function __construct(
29 29
         private readonly ListenerRegistryInterface $listenerRegistry,
30
-    ) {}
30
+    ) {
31
+}
31 32
 
32 33
     /**
33 34
      * Configure listener with new output.
@@ -67,11 +68,13 @@  discard block
 block discarded – undo
67 68
      */
68 69
     public function __invoke(LogEvent $event): void
69 70
     {
70
-        if (empty($this->output)) {
71
+        if (empty($this->output))
72
+        {
71 73
             return;
72 74
         }
73 75
 
74
-        if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERY_VERBOSE) {
76
+        if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERY_VERBOSE)
77
+        {
75 78
             return;
76 79
         }
77 80
 
@@ -95,13 +98,17 @@  discard block
 block discarded – undo
95 98
 
96 99
     private function getChannel(string $channel): string
97 100
     {
98
-        if (!\class_exists($channel, false)) {
101
+        if (!\class_exists($channel, false))
102
+        {
99 103
             return \sprintf('[%s]', $channel);
100 104
         }
101 105
 
102
-        try {
106
+        try
107
+        {
103 108
             $reflection = new \ReflectionClass($channel);
104
-        } catch (\ReflectionException) {
109
+        }
110
+        catch (\ReflectionException)
111
+        {
105 112
             return $channel;
106 113
         }
107 114
 
@@ -110,7 +117,8 @@  discard block
 block discarded – undo
110 117
 
111 118
     private function getMessage(bool $decorated, string $message): string
112 119
     {
113
-        if (!$decorated) {
120
+        if (!$decorated)
121
+        {
114 122
             return $message;
115 123
         }
116 124
 
Please login to merge, or discard this patch.