Passed
Push — master ( 347780...7c17cc )
by butschster
07:14
created
src/Tokenizer/src/Bootloader/TokenizerBootloader.php 2 patches
Spacing   +3 added lines, -3 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
 
36 36
     public function init(BinderInterface $binder, DirectoriesInterface $dirs): void
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function addScopedDirectory(string $scope, string $directory): void
71 71
     {
72
-        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope])) {
72
+        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope])){
73 73
             $this->config->modify(
74 74
                 TokenizerConfig::CONFIG,
75 75
                 new Append('scopes', $scope, [])
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
         $this->config->modify(
80 80
             TokenizerConfig::CONFIG,
81
-            new Append('scopes.' . $scope, null, $directory)
81
+            new Append('scopes.'.$scope, null, $directory)
82 82
         );
83 83
     }
84 84
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,8 @@
 block discarded – undo
69 69
      */
70 70
     public function addScopedDirectory(string $scope, string $directory): void
71 71
     {
72
-        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope])) {
72
+        if (!isset($this->config->getConfig(TokenizerConfig::CONFIG)['scopes'][$scope]))
73
+        {
73 74
             $this->config->modify(
74 75
                 TokenizerConfig::CONFIG,
75 76
                 new Append('scopes', $scope, [])
Please login to merge, or discard this patch.
src/Logger/src/Event/LogEvent.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
         private readonly string $level,
13 13
         private readonly string $message,
14 14
         private readonly array $context = []
15
-    ) {
15
+    ){
16 16
     }
17 17
 
18 18
     public function getTime(): \DateTimeInterface
Please login to merge, or discard this patch.
src/Logger/src/ListenerRegistry.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function addListener(callable $listener): self
16 16
     {
17
-        if (!\in_array($listener, $this->listeners, true)) {
17
+        if (!\in_array($listener, $this->listeners, true)){
18 18
             $this->listeners[] = $listener;
19 19
         }
20 20
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     public function removeListener(callable $listener): void
25 25
     {
26 26
         $key = \array_search($listener, $this->listeners, true);
27
-        if ($key !== null) {
27
+        if ($key !== null){
28 28
             unset($this->listeners[$key]);
29 29
         }
30 30
     }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@  discard block
 block discarded – undo
14 14
 
15 15
     public function addListener(callable $listener): self
16 16
     {
17
-        if (!\in_array($listener, $this->listeners, true)) {
17
+        if (!\in_array($listener, $this->listeners, true))
18
+        {
18 19
             $this->listeners[] = $listener;
19 20
         }
20 21
 
@@ -24,7 +25,8 @@  discard block
 block discarded – undo
24 25
     public function removeListener(callable $listener): void
25 26
     {
26 27
         $key = \array_search($listener, $this->listeners, true);
27
-        if ($key !== null) {
28
+        if ($key !== null)
29
+        {
28 30
             unset($this->listeners[$key]);
29 31
         }
30 32
     }
Please login to merge, or discard this patch.
src/Logger/src/NullLogger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     public function __construct(
20 20
         callable $receptor,
21 21
         private string $channel
22
-    ) {
22
+    ){
23 23
         $this->receptor = $receptor(...);
24 24
     }
25 25
 
Please login to merge, or discard this patch.
src/Logger/src/LogFactory.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function __construct(
16 16
         private readonly ListenerRegistryInterface $listenedRegistry
17
-    ) {
17
+    ){
18 18
     }
19 19
 
20 20
     public function getLogger(string $channel): LoggerInterface
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
         $e = new LogEvent(
28 28
             new \DateTime(),
29 29
             $channel,
30
-            (string) $level,
30
+            (string)$level,
31 31
             $message,
32 32
             $context
33 33
         );
34 34
 
35
-        foreach ($this->listenedRegistry->getListeners() as $listener) {
35
+        foreach ($this->listenedRegistry->getListeners() as $listener){
36 36
             \call_user_func($listener, $e);
37 37
         }
38 38
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,8 @@
 block discarded – undo
32 32
             $context
33 33
         );
34 34
 
35
-        foreach ($this->listenedRegistry->getListeners() as $listener) {
35
+        foreach ($this->listenedRegistry->getListeners() as $listener)
36
+        {
36 37
             \call_user_func($listener, $e);
37 38
         }
38 39
     }
Please login to merge, or discard this patch.
src/Cache/src/Config/CacheConfig.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getDefaultStorage(): string
33 33
     {
34
-        if (!\is_string($this->config['default'])) {
34
+        if (!\is_string($this->config['default'])){
35 35
             throw new InvalidArgumentException('Default cache storage config value must be a string');
36 36
         }
37 37
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function getStorageConfig(string $name): array
42 42
     {
43
-        if (!isset($this->config['storages'][$name])) {
43
+        if (!isset($this->config['storages'][$name])){
44 44
             throw new InvalidArgumentException(
45 45
                 \sprintf('Config for storage `%s` is not defined.', $name)
46 46
             );
@@ -48,19 +48,19 @@  discard block
 block discarded – undo
48 48
 
49 49
         $config = $this->config['storages'][$name];
50 50
 
51
-        if (!isset($config['type'])) {
51
+        if (!isset($config['type'])){
52 52
             throw new InvalidArgumentException(
53 53
                 \sprintf('Storage type for `%s` is not defined.', $name)
54 54
             );
55 55
         }
56 56
 
57
-        if (!\is_string($config['type'])) {
57
+        if (!\is_string($config['type'])){
58 58
             throw new InvalidArgumentException(
59 59
                 \sprintf('Storage type value for `%s` must be a string', $name)
60 60
             );
61 61
         }
62 62
 
63
-        if (isset($this->config['typeAliases'][$config['type']])) {
63
+        if (isset($this->config['typeAliases'][$config['type']])){
64 64
             $config['type'] = $this->config['typeAliases'][$config['type']];
65 65
         }
66 66
 
Please login to merge, or discard this patch.
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,8 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getDefaultStorage(): string
33 33
     {
34
-        if (!\is_string($this->config['default'])) {
34
+        if (!\is_string($this->config['default']))
35
+        {
35 36
             throw new InvalidArgumentException('Default cache storage config value must be a string');
36 37
         }
37 38
 
@@ -40,7 +41,8 @@  discard block
 block discarded – undo
40 41
 
41 42
     public function getStorageConfig(string $name): array
42 43
     {
43
-        if (!isset($this->config['storages'][$name])) {
44
+        if (!isset($this->config['storages'][$name]))
45
+        {
44 46
             throw new InvalidArgumentException(
45 47
                 \sprintf('Config for storage `%s` is not defined.', $name)
46 48
             );
@@ -48,19 +50,22 @@  discard block
 block discarded – undo
48 50
 
49 51
         $config = $this->config['storages'][$name];
50 52
 
51
-        if (!isset($config['type'])) {
53
+        if (!isset($config['type']))
54
+        {
52 55
             throw new InvalidArgumentException(
53 56
                 \sprintf('Storage type for `%s` is not defined.', $name)
54 57
             );
55 58
         }
56 59
 
57
-        if (!\is_string($config['type'])) {
60
+        if (!\is_string($config['type']))
61
+        {
58 62
             throw new InvalidArgumentException(
59 63
                 \sprintf('Storage type value for `%s` must be a string', $name)
60 64
             );
61 65
         }
62 66
 
63
-        if (isset($this->config['typeAliases'][$config['type']])) {
67
+        if (isset($this->config['typeAliases'][$config['type']]))
68
+        {
64 69
             $config['type'] = $this->config['typeAliases'][$config['type']];
65 70
         }
66 71
 
Please login to merge, or discard this patch.
src/Cache/src/Event/KeyWritten.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
     public function __construct(
10 10
         public readonly string $key,
11 11
         public readonly mixed $value,
12
-    ) {
12
+    ){
13 13
     }
14 14
 }
Please login to merge, or discard this patch.
src/Cache/src/Event/KeyDeleted.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,6 +8,6 @@
 block discarded – undo
8 8
 {
9 9
     public function __construct(
10 10
         public readonly string $key,
11
-    ) {
11
+    ){
12 12
     }
13 13
 }
Please login to merge, or discard this patch.
src/Cache/src/Event/CacheHit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,6 +9,6 @@
 block discarded – undo
9 9
     public function __construct(
10 10
         public readonly string $key,
11 11
         public readonly mixed $value
12
-    ) {
12
+    ){
13 13
     }
14 14
 }
Please login to merge, or discard this patch.