Passed
Push — master ( 9f8f80...2ee547 )
by Aleksei
06:30 queued 17s
created
src/Stempler/src/Directive/DirectiveGroup.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,8 +33,10 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function hasDirective(string $name): bool
35 35
     {
36
-        foreach ($this->directives as $directiveRenderer) {
37
-            if ($directiveRenderer->hasDirective($name)) {
36
+        foreach ($this->directives as $directiveRenderer)
37
+        {
38
+            if ($directiveRenderer->hasDirective($name))
39
+            {
38 40
                 return true;
39 41
             }
40 42
         }
@@ -44,8 +46,10 @@  discard block
 block discarded – undo
44 46
 
45 47
     public function render(Directive $directive): ?string
46 48
     {
47
-        foreach ($this->directives as $directiveRenderer) {
48
-            if ($directiveRenderer->hasDirective($directive->name)) {
49
+        foreach ($this->directives as $directiveRenderer)
50
+        {
51
+            if ($directiveRenderer->hasDirective($directive->name))
52
+            {
49 53
                 return $directiveRenderer->render($directive);
50 54
             }
51 55
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function __construct(
15 15
         private array $directives = []
16
-    ) {
16
+    ){
17 17
     }
18 18
 
19 19
     /**
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function hasDirective(string $name): bool
28 28
     {
29
-        foreach ($this->directives as $directiveRenderer) {
30
-            if ($directiveRenderer->hasDirective($name)) {
29
+        foreach ($this->directives as $directiveRenderer){
30
+            if ($directiveRenderer->hasDirective($name)){
31 31
                 return true;
32 32
             }
33 33
         }
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
 
38 38
     public function render(Directive $directive): ?string
39 39
     {
40
-        foreach ($this->directives as $directiveRenderer) {
41
-            if ($directiveRenderer->hasDirective($directive->name)) {
40
+        foreach ($this->directives as $directiveRenderer){
41
+            if ($directiveRenderer->hasDirective($directive->name)){
42 42
                 return $directiveRenderer->render($directive);
43 43
             }
44 44
         }
Please login to merge, or discard this patch.
src/AuthHttp/src/Middleware/Firewall/AbstractFirewall.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         /** @var AuthContextInterface $authContext */
29 29
         $authContext = $request->getAttribute(AuthMiddleware::ATTRIBUTE);
30 30
 
31
-        if ($authContext === null || $authContext->getActor() === null) {
31
+        if ($authContext === null || $authContext->getActor() === null){
32 32
             return $this->denyAccess($request, $handler);
33 33
         }
34 34
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
28 28
         /** @var AuthContextInterface $authContext */
29 29
         $authContext = $request->getAttribute(AuthMiddleware::ATTRIBUTE);
30 30
 
31
-        if ($authContext === null || $authContext->getActor() === null) {
31
+        if ($authContext === null || $authContext->getActor() === null)
32
+        {
32 33
             return $this->denyAccess($request, $handler);
33 34
         }
34 35
 
Please login to merge, or discard this patch.
src/Config/src/Patch/Group.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public function patch(array $config): array
27 27
     {
28
-        foreach ($this->patches as $patch) {
28
+        foreach ($this->patches as $patch){
29 29
             $config = $patch->patch($config);
30 30
         }
31 31
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
 
26 26
     public function patch(array $config): array
27 27
     {
28
-        foreach ($this->patches as $patch) {
28
+        foreach ($this->patches as $patch)
29
+        {
29 30
             $config = $patch->patch($config);
30 31
         }
31 32
 
Please login to merge, or discard this patch.
src/Core/tests/Fixtures/UnionTypes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 class UnionTypes
15 15
 {
16
-    public static function example(SampleClass|TypedClass $example)
16
+    public static function example(SampleClass | TypedClass $example)
17 17
     {
18 18
     }
19 19
 
20
-    public static function unionNull(null|string $nullable): null|string
20
+    public static function unionNull(null | string $nullable): null | string
21 21
     {
22 22
         return $nullable;
23 23
     }
Please login to merge, or discard this patch.
src/Prototype/src/Annotation/Line.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,8 @@
 block discarded – undo
33 33
 
34 34
     public function is(array $type): bool
35 35
     {
36
-        if ($this->type === null) {
36
+        if ($this->type === null)
37
+        {
37 38
             return false;
38 39
         }
39 40
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@
 block discarded – undo
12 12
     public function __construct(
13 13
         public string $value,
14 14
         public ?string $type = null
15
-    ) {
15
+    ){
16 16
     }
17 17
 
18 18
     public function is(array $type): bool
19 19
     {
20
-        if ($this->type === null) {
20
+        if ($this->type === null){
21 21
             return false;
22 22
         }
23 23
 
Please login to merge, or discard this patch.
src/Views/src/ContextGenerator.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -50,22 +50,26 @@
 block discarded – undo
50 50
      */
51 51
     private function rotate(ContextInterface $context, array $dependencies): array
52 52
     {
53
-        if (empty($dependencies)) {
53
+        if (empty($dependencies))
54
+        {
54 55
             return [];
55 56
         }
56 57
 
57 58
         $top = \array_shift($dependencies);
58 59
 
59 60
         $variants = [];
60
-        foreach ($top->getVariants() as $value) {
61
+        foreach ($top->getVariants() as $value)
62
+        {
61 63
             $variant = $context->withDependency(new ValueDependency($top->getName(), $value));
62 64
 
63
-            if (empty($dependencies)) {
65
+            if (empty($dependencies))
66
+            {
64 67
                 $variants[] = $variant;
65 68
                 continue;
66 69
             }
67 70
 
68
-            foreach ($this->rotate($variant, $dependencies) as $inner) {
71
+            foreach ($this->rotate($variant, $dependencies) as $inner)
72
+            {
69 73
                 $variants[] = $inner;
70 74
             }
71 75
         }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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 ContextInterface $context
17
-    ) {
17
+    ){
18 18
     }
19 19
 
20 20
     /**
@@ -40,22 +40,22 @@  discard block
 block discarded – undo
40 40
      */
41 41
     private function rotate(ContextInterface $context, array $dependencies): array
42 42
     {
43
-        if (empty($dependencies)) {
43
+        if (empty($dependencies)){
44 44
             return [];
45 45
         }
46 46
 
47 47
         $top = \array_shift($dependencies);
48 48
 
49 49
         $variants = [];
50
-        foreach ($top->getVariants() as $value) {
50
+        foreach ($top->getVariants() as $value){
51 51
             $variant = $context->withDependency(new ValueDependency($top->getName(), $value));
52 52
 
53
-            if (empty($dependencies)) {
53
+            if (empty($dependencies)){
54 54
                 $variants[] = $variant;
55 55
                 continue;
56 56
             }
57 57
 
58
-            foreach ($this->rotate($variant, $dependencies) as $inner) {
58
+            foreach ($this->rotate($variant, $dependencies) as $inner){
59 59
                 $variants[] = $inner;
60 60
             }
61 61
         }
Please login to merge, or discard this patch.
src/Distribution/src/Resolver/UriResolver.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@
 block discarded – undo
17 17
 {
18 18
     protected function concat(string $file, ?string $prefix): string
19 19
     {
20
-        if ($prefix === null) {
20
+        if ($prefix === null){
21 21
             return $file;
22 22
         }
23 23
 
24
-        return \trim($prefix, '/') . '/' . \trim($file, '/');
24
+        return \trim($prefix, '/').'/'.\trim($file, '/');
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@
 block discarded – undo
17 17
 {
18 18
     protected function concat(string $file, ?string $prefix): string
19 19
     {
20
-        if ($prefix === null) {
20
+        if ($prefix === null)
21
+        {
21 22
             return $file;
22 23
         }
23 24
 
Please login to merge, or discard this patch.
src/Distribution/src/Resolver/CloudFrontResolver.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,8 @@
 block discarded – undo
73 73
 
74 74
     protected function assertCloudFrontAvailable(): void
75 75
     {
76
-        if (\class_exists(UrlSigner::class)) {
76
+        if (\class_exists(UrlSigner::class))
77
+        {
77 78
             return;
78 79
         }
79 80
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         string $privateKey,
26 26
         private readonly string $domain,
27 27
         private readonly ?string $prefix = null
28
-    ) {
28
+    ){
29 29
         $this->assertCloudFrontAvailable();
30 30
         $this->factory = new AmazonUriFactory();
31 31
         $this->signer = new UrlSigner($keyPairId, $privateKey);
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     protected function assertCloudFrontAvailable(): void
48 48
     {
49
-        if (\class_exists(UrlSigner::class)) {
49
+        if (\class_exists(UrlSigner::class)){
50 50
             return;
51 51
         }
52 52
 
Please login to merge, or discard this patch.
src/Distribution/src/Internal/AmazonUriFactory.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@  discard block
 block discarded – undo
21 21
      * @var string
22 22
      */
23 23
     private const ERROR_NOT_AVAILABLE =
24
-        'The "aws/aws-sdk-php" package is supplied with the Guzzle PSR-7 ' .
25
-        'implementation, but it is not available. Please install the ' .
24
+        'The "aws/aws-sdk-php" package is supplied with the Guzzle PSR-7 '.
25
+        'implementation, but it is not available. Please install the '.
26 26
         '"aws/aws-sdk-php" package or use any other implementation of PSR-17 factories.'
27 27
     ;
28 28
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     private function assertAvailable(): void
43 43
     {
44
-        if (\class_exists(Uri::class)) {
44
+        if (\class_exists(Uri::class)){
45 45
             return;
46 46
         }
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
     private function assertAvailable(): void
43 43
     {
44
-        if (\class_exists(Uri::class)) {
44
+        if (\class_exists(Uri::class))
45
+        {
45 46
             return;
46 47
         }
47 48
 
Please login to merge, or discard this patch.