Passed
Push — master ( 9f8f80...2ee547 )
by Aleksei
06:30 queued 17s
created
src/Bridge/Monolog/tests/RotateHandlerTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         $finalizer->shouldReceive('addFinalizer')->once();
41 41
 
42 42
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
43
-            new class() implements LoaderInterface {
43
+            new class() implements LoaderInterface{
44 44
                 public function has(string $section): bool
45 45
                 {
46 46
                     return false;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@
 block discarded – undo
40 40
         $finalizer->shouldReceive('addFinalizer')->once();
41 41
 
42 42
         $this->container->bind(ConfiguratorInterface::class, new ConfigManager(
43
-            new class() implements LoaderInterface {
43
+            new class() implements LoaderInterface
44
+            {
44 45
                 public function has(string $section): bool
45 46
                 {
46 47
                     return false;
Please login to merge, or discard this patch.
src/Bridge/Monolog/src/Config/MonologConfig.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -35,18 +35,18 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getHandlers(string $channel): \Generator
37 37
     {
38
-        if (empty($this->config['handlers'][$channel])) {
38
+        if (empty($this->config['handlers'][$channel])){
39 39
             return;
40 40
         }
41 41
 
42
-        foreach ($this->config['handlers'][$channel] as $handler) {
43
-            if (\is_object($handler) && !$handler instanceof Autowire) {
42
+        foreach ($this->config['handlers'][$channel] as $handler){
43
+            if (\is_object($handler) && !$handler instanceof Autowire){
44 44
                 yield $handler;
45 45
                 continue;
46 46
             }
47 47
 
48 48
             $wire = $this->wire($handler);
49
-            if (\is_null($wire)) {
49
+            if (\is_null($wire)){
50 50
                 throw new ConfigException(\sprintf('Invalid handler definition for channel `%s`.', $channel));
51 51
             }
52 52
 
@@ -56,18 +56,18 @@  discard block
 block discarded – undo
56 56
 
57 57
     public function getProcessors(string $channel): \Generator
58 58
     {
59
-        if (empty($this->config['processors'][$channel])) {
59
+        if (empty($this->config['processors'][$channel])){
60 60
             return;
61 61
         }
62 62
 
63
-        foreach ($this->config['processors'][$channel] as $processor) {
64
-            if (\is_object($processor) && !$processor instanceof Autowire) {
63
+        foreach ($this->config['processors'][$channel] as $processor){
64
+            if (\is_object($processor) && !$processor instanceof Autowire){
65 65
                 yield $processor;
66 66
                 continue;
67 67
             }
68 68
 
69 69
             $wire = $this->wire($processor);
70
-            if (\is_null($wire)) {
70
+            if (\is_null($wire)){
71 71
                 throw new ConfigException(\sprintf('Invalid processor definition for channel `%s`.', $channel));
72 72
             }
73 73
 
@@ -75,17 +75,17 @@  discard block
 block discarded – undo
75 75
         }
76 76
     }
77 77
 
78
-    private function wire(Autowire|string|array $definition): ?Autowire
78
+    private function wire(Autowire | string | array $definition): ?Autowire
79 79
     {
80
-        if ($definition instanceof Autowire) {
80
+        if ($definition instanceof Autowire){
81 81
             return $definition;
82 82
         }
83 83
 
84
-        if (\is_string($definition)) {
84
+        if (\is_string($definition)){
85 85
             return new Autowire($definition);
86 86
         }
87 87
 
88
-        if (isset($definition['class'])) {
88
+        if (isset($definition['class'])){
89 89
             return new Autowire($definition['class'], $definition['options'] ?? []);
90 90
         }
91 91
 
Please login to merge, or discard this patch.
Braces   +22 added lines, -11 removed lines patch added patch discarded remove patch
@@ -35,18 +35,22 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function getHandlers(string $channel): \Generator
37 37
     {
38
-        if (empty($this->config['handlers'][$channel])) {
38
+        if (empty($this->config['handlers'][$channel]))
39
+        {
39 40
             return;
40 41
         }
41 42
 
42
-        foreach ($this->config['handlers'][$channel] as $handler) {
43
-            if (\is_object($handler) && !$handler instanceof Autowire) {
43
+        foreach ($this->config['handlers'][$channel] as $handler)
44
+        {
45
+            if (\is_object($handler) && !$handler instanceof Autowire)
46
+            {
44 47
                 yield $handler;
45 48
                 continue;
46 49
             }
47 50
 
48 51
             $wire = $this->wire($handler);
49
-            if (\is_null($wire)) {
52
+            if (\is_null($wire))
53
+            {
50 54
                 throw new ConfigException(\sprintf('Invalid handler definition for channel `%s`.', $channel));
51 55
             }
52 56
 
@@ -56,18 +60,22 @@  discard block
 block discarded – undo
56 60
 
57 61
     public function getProcessors(string $channel): \Generator
58 62
     {
59
-        if (empty($this->config['processors'][$channel])) {
63
+        if (empty($this->config['processors'][$channel]))
64
+        {
60 65
             return;
61 66
         }
62 67
 
63
-        foreach ($this->config['processors'][$channel] as $processor) {
64
-            if (\is_object($processor) && !$processor instanceof Autowire) {
68
+        foreach ($this->config['processors'][$channel] as $processor)
69
+        {
70
+            if (\is_object($processor) && !$processor instanceof Autowire)
71
+            {
65 72
                 yield $processor;
66 73
                 continue;
67 74
             }
68 75
 
69 76
             $wire = $this->wire($processor);
70
-            if (\is_null($wire)) {
77
+            if (\is_null($wire))
78
+            {
71 79
                 throw new ConfigException(\sprintf('Invalid processor definition for channel `%s`.', $channel));
72 80
             }
73 81
 
@@ -77,15 +85,18 @@  discard block
 block discarded – undo
77 85
 
78 86
     private function wire(Autowire|string|array $definition): ?Autowire
79 87
     {
80
-        if ($definition instanceof Autowire) {
88
+        if ($definition instanceof Autowire)
89
+        {
81 90
             return $definition;
82 91
         }
83 92
 
84
-        if (\is_string($definition)) {
93
+        if (\is_string($definition))
94
+        {
85 95
             return new Autowire($definition);
86 96
         }
87 97
 
88
-        if (isset($definition['class'])) {
98
+        if (isset($definition['class']))
99
+        {
89 100
             return new Autowire($definition['class'], $definition['options'] ?? []);
90 101
         }
91 102
 
Please login to merge, or discard this patch.
src/Bridge/Monolog/src/LogFactory.php 2 patches
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         private readonly MonologConfig $config,
28 28
         ListenerRegistryInterface $listenerRegistry,
29 29
         private readonly FactoryInterface $factory
30
-    ) {
30
+    ){
31 31
         $this->eventHandler = new EventHandler($listenerRegistry, $config->getEventLevel());
32 32
     }
33 33
 
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $default = $this->config->getDefault();
37 37
 
38
-        if ($channel === null || $channel === $default) {
39
-            if ($this->default !== null) {
38
+        if ($channel === null || $channel === $default){
39
+            if ($this->default !== null){
40 40
                 // we should use only one default logger per system
41 41
                 return $this->default;
42 42
             }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     public function reset(): void
65 65
     {
66
-        if ($this->default instanceof ResettableInterface) {
66
+        if ($this->default instanceof ResettableInterface){
67 67
             $this->default->reset();
68 68
         }
69 69
     }
@@ -79,15 +79,15 @@  discard block
 block discarded – undo
79 79
         // always include default handler
80 80
         $handlers = [];
81 81
 
82
-        foreach ($this->config->getHandlers($channel) as $handler) {
83
-            if (!$handler instanceof Autowire) {
82
+        foreach ($this->config->getHandlers($channel) as $handler){
83
+            if (!$handler instanceof Autowire){
84 84
                 $handlers[] = $handler;
85 85
                 continue;
86 86
             }
87 87
 
88
-            try {
88
+            try{
89 89
                 $handlers[] = $handler->resolve($this->factory);
90
-            } catch (ContainerExceptionInterface $e) {
90
+            }catch (ContainerExceptionInterface $e){
91 91
                 throw new ConfigException($e->getMessage(), $e->getCode(), $e);
92 92
             }
93 93
         }
@@ -105,20 +105,20 @@  discard block
 block discarded – undo
105 105
     protected function getProcessors(string $channel): array
106 106
     {
107 107
         $processors = [];
108
-        foreach ($this->config->getProcessors($channel) as $processor) {
109
-            if (!$processor instanceof Autowire) {
108
+        foreach ($this->config->getProcessors($channel) as $processor){
109
+            if (!$processor instanceof Autowire){
110 110
                 $processors[] = $processor;
111 111
                 continue;
112 112
             }
113 113
 
114
-            try {
114
+            try{
115 115
                 $processors[] = $processor->resolve($this->factory);
116
-            } catch (ContainerExceptionInterface $e) {
116
+            }catch (ContainerExceptionInterface $e){
117 117
                 throw new ConfigException($e->getMessage(), $e->getCode(), $e);
118 118
             }
119 119
         }
120 120
 
121
-        if ($processors === []) {
121
+        if ($processors === []){
122 122
             $processors[] = new PsrLogMessageProcessor();
123 123
         }
124 124
 
Please login to merge, or discard this patch.
Braces   +26 added lines, -12 removed lines patch added patch discarded remove patch
@@ -35,8 +35,10 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $default = $this->config->getDefault();
37 37
 
38
-        if ($channel === null || $channel === $default) {
39
-            if ($this->default !== null) {
38
+        if ($channel === null || $channel === $default)
39
+        {
40
+            if ($this->default !== null)
41
+            {
40 42
                 // we should use only one default logger per system
41 43
                 return $this->default;
42 44
             }
@@ -63,7 +65,8 @@  discard block
 block discarded – undo
63 65
 
64 66
     public function reset(): void
65 67
     {
66
-        if ($this->default instanceof ResettableInterface) {
68
+        if ($this->default instanceof ResettableInterface)
69
+        {
67 70
             $this->default->reset();
68 71
         }
69 72
     }
@@ -79,15 +82,20 @@  discard block
 block discarded – undo
79 82
         // always include default handler
80 83
         $handlers = [];
81 84
 
82
-        foreach ($this->config->getHandlers($channel) as $handler) {
83
-            if (!$handler instanceof Autowire) {
85
+        foreach ($this->config->getHandlers($channel) as $handler)
86
+        {
87
+            if (!$handler instanceof Autowire)
88
+            {
84 89
                 $handlers[] = $handler;
85 90
                 continue;
86 91
             }
87 92
 
88
-            try {
93
+            try
94
+            {
89 95
                 $handlers[] = $handler->resolve($this->factory);
90
-            } catch (ContainerExceptionInterface $e) {
96
+            }
97
+            catch (ContainerExceptionInterface $e)
98
+            {
91 99
                 throw new ConfigException($e->getMessage(), $e->getCode(), $e);
92 100
             }
93 101
         }
@@ -105,20 +113,26 @@  discard block
 block discarded – undo
105 113
     protected function getProcessors(string $channel): array
106 114
     {
107 115
         $processors = [];
108
-        foreach ($this->config->getProcessors($channel) as $processor) {
109
-            if (!$processor instanceof Autowire) {
116
+        foreach ($this->config->getProcessors($channel) as $processor)
117
+        {
118
+            if (!$processor instanceof Autowire)
119
+            {
110 120
                 $processors[] = $processor;
111 121
                 continue;
112 122
             }
113 123
 
114
-            try {
124
+            try
125
+            {
115 126
                 $processors[] = $processor->resolve($this->factory);
116
-            } catch (ContainerExceptionInterface $e) {
127
+            }
128
+            catch (ContainerExceptionInterface $e)
129
+            {
117 130
                 throw new ConfigException($e->getMessage(), $e->getCode(), $e);
118 131
             }
119 132
         }
120 133
 
121
-        if ($processors === []) {
134
+        if ($processors === [])
135
+        {
122 136
             $processors[] = new PsrLogMessageProcessor();
123 137
         }
124 138
 
Please login to merge, or discard this patch.
src/Bridge/Monolog/src/EventHandler.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,8 @@
 block discarded – undo
29 29
             $record['context']
30 30
         );
31 31
 
32
-        foreach ($this->listenerRegistry->getListeners() as $listener) {
32
+        foreach ($this->listenerRegistry->getListeners() as $listener)
33
+        {
33 34
             $listener($e);
34 35
         }
35 36
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
         private readonly ListenerRegistryInterface $listenerRegistry,
17 17
         int $level = Logger::DEBUG,
18 18
         bool $bubble = true
19
-    ) {
19
+    ){
20 20
         parent::__construct($level, $bubble);
21 21
     }
22 22
 
23
-    public function handle(array|LogRecord $record): bool
23
+    public function handle(array | LogRecord $record): bool
24 24
     {
25 25
         $e = new LogEvent(
26 26
             $record['datetime'],
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             $record['context']
31 31
         );
32 32
 
33
-        foreach ($this->listenerRegistry->getListeners() as $listener) {
33
+        foreach ($this->listenerRegistry->getListeners() as $listener){
34 34
             $listener($e);
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/Snapshots/src/FileSnapshot.php 2 patches
Braces   +9 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,12 +55,17 @@
 block discarded – undo
55 55
         );
56 56
 
57 57
         $count = 0;
58
-        foreach ($finder as $file) {
58
+        foreach ($finder as $file)
59
+        {
59 60
             $count++;
60
-            if ($count > $this->maxFiles) {
61
-                try {
61
+            if ($count > $this->maxFiles)
62
+            {
63
+                try
64
+                {
62 65
                     $this->files->delete($file->getRealPath());
63
-                } catch (FilesException) {
66
+                }
67
+                catch (FilesException)
68
+                {
64 69
                     // ignore
65 70
                 }
66 71
             }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         private readonly Verbosity $verbosity,
20 20
         private readonly ExceptionRendererInterface $renderer,
21 21
         private readonly FilesInterface $files
22
-    ) {
22
+    ){
23 23
     }
24 24
 
25 25
     public function create(\Throwable $e): SnapshotInterface
@@ -51,16 +51,16 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $finder = new Finder();
53 53
         $finder->in($this->directory)->sort(
54
-            static fn (SplFileInfo $a, SplFileInfo $b): int|float => $b->getMTime() - $a->getMTime()
54
+            static fn (SplFileInfo $a, SplFileInfo $b): int | float => $b->getMTime() - $a->getMTime()
55 55
         );
56 56
 
57 57
         $count = 0;
58
-        foreach ($finder as $file) {
58
+        foreach ($finder as $file){
59 59
             $count++;
60
-            if ($count > $this->maxFiles) {
61
-                try {
60
+            if ($count > $this->maxFiles){
61
+                try{
62 62
                     $this->files->delete($file->getRealPath());
63
-                } catch (FilesException) {
63
+                }catch (FilesException){
64 64
                     // ignore
65 65
                 }
66 66
             }
Please login to merge, or discard this patch.
src/Snapshots/src/Snapshot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     public function __construct(
13 13
         private readonly string $id,
14 14
         private readonly \Throwable $exception
15
-    ) {
15
+    ){
16 16
     }
17 17
 
18 18
     public function getID(): string
Please login to merge, or discard this patch.
src/Views/src/Loader/ViewPath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
         private readonly string $namespace,
11 11
         private readonly string $name,
12 12
         private readonly string $basename
13
-    ) {
13
+    ){
14 14
     }
15 15
 
16 16
     public function getNamespace(): string
Please login to merge, or discard this patch.
src/Views/src/Loader/PathParser.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function __construct(
16 16
         private readonly string $defaultNamespace,
17 17
         private readonly string $extension
18
-    ) {
18
+    ){
19 19
     }
20 20
 
21 21
     public function getExtension(): string
@@ -50,21 +50,21 @@  discard block
 block discarded – undo
50 50
         );
51 51
 
52 52
         $namespace = $this->defaultNamespace;
53
-        if (!\str_contains((string) $filename, '.')) {
53
+        if (!\str_contains((string)$filename, '.')){
54 54
             //Force default extension
55
-            $filename .= '.' . $this->extension;
56
-        } elseif (!$this->match($filename)) {
55
+            $filename .= '.'.$this->extension;
56
+        } elseif (!$this->match($filename)){
57 57
             return null;
58 58
         }
59 59
 
60
-        if (\str_contains((string) $filename, LoaderInterface::NS_SEPARATOR)) {
61
-            [$namespace, $filename] = explode(LoaderInterface::NS_SEPARATOR, (string) $filename);
60
+        if (\str_contains((string)$filename, LoaderInterface::NS_SEPARATOR)){
61
+            [$namespace, $filename] = explode(LoaderInterface::NS_SEPARATOR, (string)$filename);
62 62
         }
63 63
 
64 64
         //Twig like namespaces
65
-        if (isset($filename[0]) && $filename[0] === '@') {
65
+        if (isset($filename[0]) && $filename[0] === '@'){
66 66
             $separator = \strpos($filename, '/');
67
-            if ($separator === false) {
67
+            if ($separator === false){
68 68
                 throw new PathException(\sprintf('Malformed view path "%s" (expecting "@namespace/name").', $path));
69 69
             }
70 70
 
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
      */
95 95
     private function validatePath(string $path): void
96 96
     {
97
-        if (empty($path)) {
97
+        if (empty($path)){
98 98
             throw new PathException('A view path is empty');
99 99
         }
100 100
 
101
-        if (\str_contains($path, "\0")) {
101
+        if (\str_contains($path, "\0")){
102 102
             throw new PathException('A view path cannot contain NUL bytes');
103 103
         }
104 104
 
@@ -106,14 +106,14 @@  discard block
 block discarded – undo
106 106
         $parts = \explode('/', $path);
107 107
         $level = 0;
108 108
 
109
-        foreach ($parts as $part) {
110
-            if ('..' === $part) {
109
+        foreach ($parts as $part){
110
+            if ('..' === $part){
111 111
                 --$level;
112
-            } elseif ('.' !== $part) {
112
+            } elseif ('.' !== $part){
113 113
                 ++$level;
114 114
             }
115 115
 
116
-            if ($level < 0) {
116
+            if ($level < 0){
117 117
                 throw new PathException(\sprintf(
118 118
                     'Looks like you try to load a view outside configured directories (%s)',
119 119
                     $path
Please login to merge, or discard this patch.
Braces   +24 added lines, -11 removed lines patch added patch discarded remove patch
@@ -50,21 +50,27 @@  discard block
 block discarded – undo
50 50
         );
51 51
 
52 52
         $namespace = $this->defaultNamespace;
53
-        if (!\str_contains((string) $filename, '.')) {
53
+        if (!\str_contains((string) $filename, '.'))
54
+        {
54 55
             //Force default extension
55 56
             $filename .= '.' . $this->extension;
56
-        } elseif (!$this->match($filename)) {
57
+        }
58
+        elseif (!$this->match($filename))
59
+        {
57 60
             return null;
58 61
         }
59 62
 
60
-        if (\str_contains((string) $filename, LoaderInterface::NS_SEPARATOR)) {
63
+        if (\str_contains((string) $filename, LoaderInterface::NS_SEPARATOR))
64
+        {
61 65
             [$namespace, $filename] = explode(LoaderInterface::NS_SEPARATOR, (string) $filename);
62 66
         }
63 67
 
64 68
         //Twig like namespaces
65
-        if (isset($filename[0]) && $filename[0] === '@') {
69
+        if (isset($filename[0]) && $filename[0] === '@')
70
+        {
66 71
             $separator = \strpos($filename, '/');
67
-            if ($separator === false) {
72
+            if ($separator === false)
73
+            {
68 74
                 throw new PathException(\sprintf('Malformed view path "%s" (expecting "@namespace/name").', $path));
69 75
             }
70 76
 
@@ -94,11 +100,13 @@  discard block
 block discarded – undo
94 100
      */
95 101
     private function validatePath(string $path): void
96 102
     {
97
-        if (empty($path)) {
103
+        if (empty($path))
104
+        {
98 105
             throw new PathException('A view path is empty');
99 106
         }
100 107
 
101
-        if (\str_contains($path, "\0")) {
108
+        if (\str_contains($path, "\0"))
109
+        {
102 110
             throw new PathException('A view path cannot contain NUL bytes');
103 111
         }
104 112
 
@@ -106,14 +114,19 @@  discard block
 block discarded – undo
106 114
         $parts = \explode('/', $path);
107 115
         $level = 0;
108 116
 
109
-        foreach ($parts as $part) {
110
-            if ('..' === $part) {
117
+        foreach ($parts as $part)
118
+        {
119
+            if ('..' === $part)
120
+            {
111 121
                 --$level;
112
-            } elseif ('.' !== $part) {
122
+            }
123
+            elseif ('.' !== $part)
124
+            {
113 125
                 ++$level;
114 126
             }
115 127
 
116
-            if ($level < 0) {
128
+            if ($level < 0)
129
+            {
117 130
                 throw new PathException(\sprintf(
118 131
                     'Looks like you try to load a view outside configured directories (%s)',
119 132
                     $path
Please login to merge, or discard this patch.
src/Views/src/Config/ViewsConfig.php 2 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     public function getGlobalVariables(): array
29 29
     {
30
-        return (array) ($this->config['globalVariables'] ?? []);
30
+        return (array)($this->config['globalVariables'] ?? []);
31 31
     }
32 32
 
33 33
     public function isCacheEnabled(): bool
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function getCacheDirectory(): string
39 39
     {
40
-        return \rtrim($this->config['cache']['directory'] ?? '', '/') . '/';
40
+        return \rtrim($this->config['cache']['directory'] ?? '', '/').'/';
41 41
     }
42 42
 
43 43
     /**
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function getNamespaces(): array
47 47
     {
48
-        return (array) ($this->config['namespaces'] ?? []);
48
+        return (array)($this->config['namespaces'] ?? []);
49 49
     }
50 50
 
51 51
     /**
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     {
58 58
         return \array_map(
59 59
             fn (mixed $dependency): Autowire =>  $this->wire($dependency),
60
-            (array) ($this->config['dependencies'] ?? [])
60
+            (array)($this->config['dependencies'] ?? [])
61 61
         );
62 62
     }
63 63
 
@@ -70,16 +70,16 @@  discard block
 block discarded – undo
70 70
     {
71 71
         return \array_map(
72 72
             fn (mixed $engine): Autowire =>  $this->wire($engine),
73
-            (array) ($this->config['engines'] ?? [])
73
+            (array)($this->config['engines'] ?? [])
74 74
         );
75 75
     }
76 76
 
77 77
     /**
78 78
      * @param Autowire|class-string $item
79 79
      */
80
-    private function wire(Autowire|string $item): Autowire
80
+    private function wire(Autowire | string $item): Autowire
81 81
     {
82
-        if ($item instanceof Autowire) {
82
+        if ($item instanceof Autowire){
83 83
             return $item;
84 84
         }
85 85
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,8 @@
 block discarded – undo
79 79
      */
80 80
     private function wire(Autowire|string $item): Autowire
81 81
     {
82
-        if ($item instanceof Autowire) {
82
+        if ($item instanceof Autowire)
83
+        {
83 84
             return $item;
84 85
         }
85 86
 
Please login to merge, or discard this patch.