Passed
Push — master ( da883f...99da89 )
by Aleksei
11:17
created
src/Telemetry/src/Span/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
      * @param non-empty-string|null $description
12 12
      */
13 13
     public function __construct(
14
-        public readonly string|int $code,
14
+        public readonly string | int $code,
15 15
         public readonly ?string $description = null
16
-    ) {
16
+    ){
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Telemetry/src/NullTracerFactory.php 1 patch
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(
13 13
         private readonly ?ScopeInterface $scope = new Container(),
14
-    ) {
14
+    ){
15 15
     }
16 16
 
17 17
     public function make(array $context = []): TracerInterface
Please login to merge, or discard this patch.
src/Telemetry/src/LogTracer.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
         private readonly ClockInterface $clock,
24 24
         private readonly LoggerInterface $logger,
25 25
         private readonly UuidFactoryInterface $uuidFactory
26
-    ) {
26
+    ){
27 27
         parent::__construct($scope);
28 28
     }
29 29
 
Please login to merge, or discard this patch.
src/Queue/tests/Interceptor/Consume/HandlerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $tracerFactory->shouldReceive('make')
23 23
             ->once()
24 24
             ->with(['some' => 'data'])
25
-            ->andReturn( $tracer = new NullTracer());
25
+            ->andReturn($tracer = new NullTracer());
26 26
 
27 27
         $handler = new Handler(
28 28
             core: $core = m::mock(CoreInterface::class),
Please login to merge, or discard this patch.
src/Queue/tests/Core/QueueInjectorTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         $factory->shouldReceive('make')->andReturnUsing(function (string $name): QueueInterface {
88 88
             $result = ['sync' => $this->defaultQueue, 'test' => $this->testQueue][$name] ?? null;
89 89
 
90
-            if ($result === null) {
90
+            if ($result === null){
91 91
                 throw new NotFoundException();
92 92
             }
93 93
             return $result;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,8 @@
 block discarded – undo
87 87
         $factory->shouldReceive('make')->andReturnUsing(function (string $name): QueueInterface {
88 88
             $result = ['sync' => $this->defaultQueue, 'test' => $this->testQueue][$name] ?? null;
89 89
 
90
-            if ($result === null) {
90
+            if ($result === null)
91
+            {
91 92
                 throw new NotFoundException();
92 93
             }
93 94
             return $result;
Please login to merge, or discard this patch.
src/Framework/Auth/Config/AuthConfig.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@
 block discarded – undo
39 39
      * @return TokenStorageInterface|class-string<TokenStorageInterface>|Autowire
40 40
      * @throws InvalidArgumentException
41 41
      */
42
-    public function getStorage(string $name): TokenStorageInterface|string|Autowire
42
+    public function getStorage(string $name): TokenStorageInterface | string | Autowire
43 43
     {
44
-        if (!isset($this->config['storages'][$name])) {
44
+        if (!isset($this->config['storages'][$name])){
45 45
             throw new InvalidArgumentException(
46 46
                 \sprintf('Token storage `%s` is not defined.', $name)
47 47
             );
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,8 @@
 block discarded – undo
41 41
      */
42 42
     public function getStorage(string $name): TokenStorageInterface|string|Autowire
43 43
     {
44
-        if (!isset($this->config['storages'][$name])) {
44
+        if (!isset($this->config['storages'][$name]))
45
+        {
45 46
             throw new InvalidArgumentException(
46 47
                 \sprintf('Token storage `%s` is not defined.', $name)
47 48
             );
Please login to merge, or discard this patch.
src/AuthHttp/src/Middleware/AuthTransportWithStorageMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         TransportRegistry $transportRegistry,
30 30
         ?EventDispatcherInterface $eventDispatcher = null,
31 31
         ?string $storage = null
32
-    ) {
32
+    ){
33 33
         $this->authMiddleware = new AuthTransportMiddleware(
34 34
             $transportName,
35 35
             $scope,
Please login to merge, or discard this patch.
src/Auth/src/TokenStorageProvider.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,14 +16,14 @@  discard block
 block discarded – undo
16 16
     public function __construct(
17 17
         private readonly AuthConfig $config,
18 18
         private readonly FactoryInterface $factory
19
-    ) {
19
+    ){
20 20
     }
21 21
 
22 22
     public function getStorage(?string $name = null): TokenStorageInterface
23 23
     {
24 24
         $name ??= $this->config->getDefaultStorage();
25 25
 
26
-        if (isset($this->storages[$name])) {
26
+        if (isset($this->storages[$name])){
27 27
             return $this->storages[$name];
28 28
         }
29 29
 
@@ -34,11 +34,11 @@  discard block
 block discarded – undo
34 34
     {
35 35
         $storage = $this->config->getStorage($name);
36 36
 
37
-        if ($storage instanceof TokenStorageInterface) {
37
+        if ($storage instanceof TokenStorageInterface){
38 38
             return $storage;
39 39
         }
40 40
 
41
-        if ($storage instanceof Autowire) {
41
+        if ($storage instanceof Autowire){
42 42
             return $storage->resolve($this->factory);
43 43
         }
44 44
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
     {
24 24
         $name ??= $this->config->getDefaultStorage();
25 25
 
26
-        if (isset($this->storages[$name])) {
26
+        if (isset($this->storages[$name]))
27
+        {
27 28
             return $this->storages[$name];
28 29
         }
29 30
 
@@ -34,11 +35,13 @@  discard block
 block discarded – undo
34 35
     {
35 36
         $storage = $this->config->getStorage($name);
36 37
 
37
-        if ($storage instanceof TokenStorageInterface) {
38
+        if ($storage instanceof TokenStorageInterface)
39
+        {
38 40
             return $storage;
39 41
         }
40 42
 
41
-        if ($storage instanceof Autowire) {
43
+        if ($storage instanceof Autowire)
44
+        {
42 45
             return $storage->resolve($this->factory);
43 46
         }
44 47
 
Please login to merge, or discard this patch.
src/AuthHttp/tests/Middleware/Firewall/OverwriteFirewallTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
             new ServerRequest('GET', new Uri('/admin'), ['X-Auth-Token' => $token], 'php://input')
35 35
         );
36 36
 
37
-        $this->assertSame($token === 'ok' ? '/admin' : '/login', (string) $response->getBody());
37
+        $this->assertSame($token === 'ok' ? '/admin' : '/login', (string)$response->getBody());
38 38
     }
39 39
 }
Please login to merge, or discard this patch.