Passed
Push — master ( c81bf2...c3afe7 )
by Aleksei
09:08 queued 01:17
created
src/Boot/src/Bootloader/BootloaderRegistryInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      *  1. SimpleBootloader::class,
17 17
      *  2. [SimpleBootloader::class => ['option' => 'value']]
18 18
      */
19
-    public function registerSystem(string|array $bootloader): void;
19
+    public function registerSystem(string | array $bootloader): void;
20 20
 
21 21
     /**
22 22
      * @param TClass|array<TClass, array<string, mixed>> $bootloader
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      *  1. SimpleBootloader::class,
26 26
      *  2. [SimpleBootloader::class => ['option' => 'value']]
27 27
      */
28
-    public function register(string|array $bootloader): void;
28
+    public function register(string | array $bootloader): void;
29 29
 
30 30
     /**
31 31
      * @return array<TClass>|array<TClass, array<string, mixed>>
Please login to merge, or discard this patch.
src/Filters/src/Model/Mapper/EnumCaster.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
26 26
          */
27 27
         $enum = $type->getName();
28 28
 
29
-        try {
29
+        try{
30 30
             $property->setValue($filter, $value instanceof $enum ? $value : $enum::from($value));
31
-        } catch (\Throwable $e) {
31
+        }catch (\Throwable $e){
32 32
             throw new SetterException(
33 33
                 previous: $e,
34 34
                 message: \sprintf('Unable to set enum value. %s', $e->getMessage()),
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,9 +26,12 @@
 block discarded – undo
26 26
          */
27 27
         $enum = $type->getName();
28 28
 
29
-        try {
29
+        try
30
+        {
30 31
             $property->setValue($filter, $value instanceof $enum ? $value : $enum::from($value));
31
-        } catch (\Throwable $e) {
32
+        }
33
+        catch (\Throwable $e)
34
+        {
32 35
             throw new SetterException(
33 36
                 previous: $e,
34 37
                 message: \sprintf('Unable to set enum value. %s', $e->getMessage()),
Please login to merge, or discard this patch.
src/Filters/src/Model/Mapper/DefaultCaster.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 
17 17
     public function setValue(FilterInterface $filter, \ReflectionProperty $property, mixed $value): void
18 18
     {
19
-        try {
19
+        try{
20 20
             $property->setValue($filter, $value);
21
-        } catch (\Throwable $e) {
21
+        }catch (\Throwable $e){
22 22
             throw new SetterException(
23 23
                 previous: $e,
24 24
                 message: \sprintf('Unable to set value. %s', $e->getMessage()),
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,9 +16,12 @@
 block discarded – undo
16 16
 
17 17
     public function setValue(FilterInterface $filter, \ReflectionProperty $property, mixed $value): void
18 18
     {
19
-        try {
19
+        try
20
+        {
20 21
             $property->setValue($filter, $value);
21
-        } catch (\Throwable $e) {
22
+        }
23
+        catch (\Throwable $e)
24
+        {
22 25
             throw new SetterException(
23 26
                 previous: $e,
24 27
                 message: \sprintf('Unable to set value. %s', $e->getMessage()),
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/Attribute/TargetWorker.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
 #[\Attribute(\Attribute::TARGET_CLASS), NamedArgumentConstructor]
11 11
 final class TargetWorker extends BootloadConfig
12 12
 {
13
-    public function __construct(array|string $workers)
13
+    public function __construct(array | string $workers)
14 14
     {
15 15
         parent::__construct(allowEnv: ['RR_MODE' => $workers]);
16 16
     }
Please login to merge, or discard this patch.
src/Boot/src/BootloadManager/Checker/BootloaderCheckerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,5 +12,5 @@
 block discarded – undo
12 12
     /**
13 13
      * @param class-string<BootloaderInterface>|BootloaderInterface $bootloader
14 14
      */
15
-    public function canInitialize(string|BootloaderInterface $bootloader, ?BootloadConfig $config = null): bool;
15
+    public function canInitialize(string | BootloaderInterface $bootloader, ?BootloadConfig $config = null): bool;
16 16
 }
Please login to merge, or discard this patch.
src/Tokenizer/tests/Fixtures/Attributes/WithTargetClassWithArgs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,6 @@
 block discarded – undo
10 10
     public function __construct(
11 11
         private string $foo,
12 12
         private string $bar,
13
-    ) {
13
+    ){
14 14
     }
15 15
 }
Please login to merge, or discard this patch.
src/Stempler/src/helpers.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
-if (!\function_exists('inject')) {
5
+if (!\function_exists('inject')){
6 6
     /**
7 7
      * Macro function to be replaced by the injected value.
8 8
      */
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     }
13 13
 }
14 14
 
15
-if (!\function_exists('injected')) {
15
+if (!\function_exists('injected')){
16 16
     /**
17 17
      * Return true if block value has been defined.
18 18
      *
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,7 +2,8 @@  discard block
 block discarded – undo
2 2
 
3 3
 declare(strict_types=1);
4 4
 
5
-if (!\function_exists('inject')) {
5
+if (!\function_exists('inject'))
6
+{
6 7
     /**
7 8
      * Macro function to be replaced by the injected value.
8 9
      */
@@ -12,7 +13,8 @@  discard block
 block discarded – undo
12 13
     }
13 14
 }
14 15
 
15
-if (!\function_exists('injected')) {
16
+if (!\function_exists('injected'))
17
+{
16 18
     /**
17 19
      * Return true if block value has been defined.
18 20
      *
Please login to merge, or discard this patch.
src/Queue/tests/SerializerLocatorListenerTest.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 {
23 23
     public function testListenWithJobTypeFromConfig(): void
24 24
     {
25
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
25
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler{};
26 26
 
27 27
         $container = new Container();
28 28
         $container->bind('test', new PhpSerializer());
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
     public function testListenWithJobTypeFromAttribute(): void
60 60
     {
61
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
61
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler{};
62 62
 
63 63
         $container = new Container();
64 64
         $container->bind('test', new PhpSerializer());
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
 
95 95
     public function testListenWithJobTypeFromClass(): void
96 96
     {
97
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
97
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler{};
98 98
 
99 99
         $container = new Container();
100 100
         $container->bind('test', new PhpSerializer());
Please login to merge, or discard this patch.
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,9 @@  discard block
 block discarded – undo
22 22
 {
23 23
     public function testListenWithJobTypeFromConfig(): void
24 24
     {
25
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
25
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler
26
+        {
27
+};
26 28
 
27 29
         $container = new Container();
28 30
         $container->bind('test', new PhpSerializer());
@@ -58,7 +60,9 @@  discard block
 block discarded – undo
58 60
 
59 61
     public function testListenWithJobTypeFromAttribute(): void
60 62
     {
61
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
63
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler
64
+        {
65
+};
62 66
 
63 67
         $container = new Container();
64 68
         $container->bind('test', new PhpSerializer());
@@ -94,7 +98,9 @@  discard block
 block discarded – undo
94 98
 
95 99
     public function testListenWithJobTypeFromClass(): void
96 100
     {
97
-        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler {};
101
+        $handler = new class($this->createMock(InvokerInterface::class)) extends JobHandler
102
+        {
103
+};
98 104
 
99 105
         $container = new Container();
100 106
         $container->bind('test', new PhpSerializer());
Please login to merge, or discard this patch.
src/Tokenizer/tests/ScopedClassLocatorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         $this->container = new Container();
25 25
         $this->container->bind(Tokenizer::class, $this->getTokenizer(['scopes' => [
26
-            'foo' => ['directories' => [__DIR__ . '/Classes/Inner'], 'exclude' => []],
26
+            'foo' => ['directories' => [__DIR__.'/Classes/Inner'], 'exclude' => []],
27 27
         ]]));
28 28
         $this->container->bindSingleton(ScopedClassesInterface::class, ScopedClassLocator::class);
29 29
     }
Please login to merge, or discard this patch.