Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Tokenizer/tests/Fixtures/Bootloader/DirectoryBootloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,6 +11,6 @@
 block discarded – undo
11 11
 {
12 12
     public function init(TokenizerBootloader $tokenizer): void
13 13
     {
14
-        $tokenizer->addDirectory(\dirname(__DIR__, 2) . '/Fixtures/Bootloader');
14
+        $tokenizer->addDirectory(\dirname(__DIR__, 2).'/Fixtures/Bootloader');
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/Filters/src/Model/Mapper/CasterRegistry.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
     public function __construct(array $casters = [])
13 13
     {
14
-        foreach ($casters as $caster) {
14
+        foreach ($casters as $caster){
15 15
             $this->register($caster);
16 16
         }
17 17
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,8 @@
 block discarded – undo
11 11
 
12 12
     public function __construct(array $casters = [])
13 13
     {
14
-        foreach ($casters as $caster) {
14
+        foreach ($casters as $caster)
15
+        {
15 16
             $this->register($caster);
16 17
         }
17 18
     }
Please login to merge, or discard this patch.
src/Filters/src/Attribute/Setter.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 
32 32
     public function updateValue(mixed $value): mixed
33 33
     {
34
-        try {
34
+        try{
35 35
             return ($this->filter)($value, ...$this->args);
36
-        } catch (\Throwable $e) {
36
+        }catch (\Throwable $e){
37 37
             throw new SetterException($e);
38 38
         }
39 39
     }
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,12 @@
 block discarded – undo
31 31
 
32 32
     public function updateValue(mixed $value): mixed
33 33
     {
34
-        try {
34
+        try
35
+        {
35 36
             return ($this->filter)($value, ...$this->args);
36
-        } catch (\Throwable $e) {
37
+        }
38
+        catch (\Throwable $e)
39
+        {
37 40
             throw new SetterException($e);
38 41
         }
39 42
     }
Please login to merge, or discard this patch.
src/Core/src/Internal/Binder.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@
 block discarded – undo
32 32
     public function hasInstance(string $alias): bool
33 33
     {
34 34
         $parent = $this->scope->getParent();
35
-        if ($parent !== null && $parent->hasInstance($alias)) {
35
+        if ($parent !== null && $parent->hasInstance($alias)){
36 36
             return true;
37 37
         }
38 38
 
39
-        if (!$this->container->has($alias)) {
39
+        if (!$this->container->has($alias)){
40 40
             return false;
41 41
         }
42 42
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,11 +32,13 @@
 block discarded – undo
32 32
     public function hasInstance(string $alias): bool
33 33
     {
34 34
         $parent = $this->scope->getParent();
35
-        if ($parent !== null && $parent->hasInstance($alias)) {
35
+        if ($parent !== null && $parent->hasInstance($alias))
36
+        {
36 37
             return true;
37 38
         }
38 39
 
39
-        if (!$this->container->has($alias)) {
40
+        if (!$this->container->has($alias))
41
+        {
40 42
             return false;
41 43
         }
42 44
 
Please login to merge, or discard this patch.
src/Queue/tests/JobHandlerLocatorListenerTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function testListen(): void
20 20
     {
21
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
21
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler{};
22 22
 
23 23
         $registry = new QueueRegistry(
24 24
             new Container(),
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,9 @@
 block discarded – undo
18 18
 {
19 19
     public function testListen(): void
20 20
     {
21
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
21
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler
22
+        {
23
+};
22 24
 
23 25
         $registry = new QueueRegistry(
24 26
             new Container(),
Please login to merge, or discard this patch.
src/Translator/src/Config/TranslatorConfig.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,7 +101,8 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function getLocaleDirectory(string $locale, ?string $directory = null): string
103 103
     {
104
-        if ($directory !== null) {
104
+        if ($directory !== null)
105
+        {
105 106
             return \rtrim($directory, '/') . '/' . $locale . '/';
106 107
         }
107 108
 
@@ -116,9 +117,12 @@  discard block
 block discarded – undo
116 117
         $bundle = \strtolower(\str_replace(['/', '\\'], '-', $bundle));
117 118
         $domains = (array) ($this->config['domains'] ?? []);
118 119
 
119
-        foreach ($domains as $domain => $patterns) {
120
-            foreach ($patterns as $pattern) {
121
-                if ($this->matcher->matches($bundle, $pattern)) {
120
+        foreach ($domains as $domain => $patterns)
121
+        {
122
+            foreach ($patterns as $pattern)
123
+            {
124
+                if ($this->matcher->matches($bundle, $pattern))
125
+                {
122 126
                     return $domain;
123 127
                 }
124 128
             }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -101,11 +101,11 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function getLocaleDirectory(string $locale, ?string $directory = null): string
103 103
     {
104
-        if ($directory !== null) {
105
-            return \rtrim($directory, '/') . '/' . $locale . '/';
104
+        if ($directory !== null){
105
+            return \rtrim($directory, '/').'/'.$locale.'/';
106 106
         }
107 107
 
108
-        return \rtrim($this->getLocalesDirectory(), '/') . '/' . $locale . '/';
108
+        return \rtrim($this->getLocalesDirectory(), '/').'/'.$locale.'/';
109 109
     }
110 110
 
111 111
     /**
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
     public function resolveDomain(string $bundle): string
115 115
     {
116 116
         $bundle = \strtolower(\str_replace(['/', '\\'], '-', $bundle));
117
-        $domains = (array) ($this->config['domains'] ?? []);
117
+        $domains = (array)($this->config['domains'] ?? []);
118 118
 
119
-        foreach ($domains as $domain => $patterns) {
120
-            foreach ($patterns as $pattern) {
121
-                if ($this->matcher->matches($bundle, $pattern)) {
119
+        foreach ($domains as $domain => $patterns){
120
+            foreach ($patterns as $pattern){
121
+                if ($this->matcher->matches($bundle, $pattern)){
122 122
                     return $domain;
123 123
                 }
124 124
             }
Please login to merge, or discard this patch.
src/Prototype/src/Command/UsageCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
     public function perform(): int
16 16
     {
17 17
         $prototyped = $this->locator->getTargetClasses();
18
-        if ($prototyped === []) {
18
+        if ($prototyped === []){
19 19
             $this->writeln('<comment>No prototyped classes found.</comment>');
20 20
 
21 21
             return self::SUCCESS;
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
         $grid = $this->table(['Class:', 'Property:', 'Target:']);
25 25
 
26
-        foreach ($prototyped as $class) {
26
+        foreach ($prototyped as $class){
27 27
             $proto = $this->getPrototypeProperties($class, $prototyped);
28 28
 
29 29
             $grid->addRow([$class->getName(), $this->mergeNames($proto), $this->mergeTargets($proto)]);
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,8 @@  discard block
 block discarded – undo
15 15
     public function perform(): int
16 16
     {
17 17
         $prototyped = $this->locator->getTargetClasses();
18
-        if ($prototyped === []) {
18
+        if ($prototyped === [])
19
+        {
19 20
             $this->writeln('<comment>No prototyped classes found.</comment>');
20 21
 
21 22
             return self::SUCCESS;
@@ -23,7 +24,8 @@  discard block
 block discarded – undo
23 24
 
24 25
         $grid = $this->table(['Class:', 'Property:', 'Target:']);
25 26
 
26
-        foreach ($prototyped as $class) {
27
+        foreach ($prototyped as $class)
28
+        {
27 29
             $proto = $this->getPrototypeProperties($class, $prototyped);
28 30
 
29 31
             $grid->addRow([$class->getName(), $this->mergeNames($proto), $this->mergeTargets($proto)]);
Please login to merge, or discard this patch.
src/Prototype/src/Config/PrototypeConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
      */
28 28
     public function getBindings(): array
29 29
     {
30
-        return (array) ($this->config['bindings'] ?? []);
30
+        return (array)($this->config['bindings'] ?? []);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Prototype/src/Command/ListCommand.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public function perform(): int
13 13
     {
14 14
         $bindings = $this->getRegistry()->getPropertyBindings();
15
-        if ($bindings === []) {
15
+        if ($bindings === []){
16 16
             $this->comment('No prototype dependencies found.');
17 17
 
18 18
             return self::SUCCESS;
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
         $grid = $this->table(['Name:', 'Target:']);
22 22
 
23
-        foreach ($bindings as $binding) {
23
+        foreach ($bindings as $binding){
24 24
             $grid->addRow([$binding->property, $binding->type->name()]);
25 25
         }
26 26
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,8 @@  discard block
 block discarded – undo
12 12
     public function perform(): int
13 13
     {
14 14
         $bindings = $this->getRegistry()->getPropertyBindings();
15
-        if ($bindings === []) {
15
+        if ($bindings === [])
16
+        {
16 17
             $this->comment('No prototype dependencies found.');
17 18
 
18 19
             return self::SUCCESS;
@@ -20,7 +21,8 @@  discard block
 block discarded – undo
20 21
 
21 22
         $grid = $this->table(['Name:', 'Target:']);
22 23
 
23
-        foreach ($bindings as $binding) {
24
+        foreach ($bindings as $binding)
25
+        {
24 26
             $grid->addRow([$binding->property, $binding->type->name()]);
25 27
         }
26 28
 
Please login to merge, or discard this patch.