Test Failed
Pull Request — master (#878)
by butschster
09:31 queued 01:39
created
src/Tokenizer/src/Listener/AttributesParser.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 {
17 17
     public function __construct(
18 18
         private readonly ReaderInterface $reader
19
-    ) {
19
+    ){
20 20
     }
21 21
 
22 22
     /**
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $listener = new \ReflectionClass($listener);
28 28
 
29
-        foreach ($this->reader->getClassMetadata($listener, TargetClass::class) as $attribute) {
29
+        foreach ($this->reader->getClassMetadata($listener, TargetClass::class) as $attribute){
30 30
             // Analyze the target class from TargetClass attribute.
31 31
             yield new ListenerDefinition(
32 32
                 listenerClass: $listener->getName(),
@@ -35,14 +35,14 @@  discard block
 block discarded – undo
35 35
             );
36 36
         }
37 37
 
38
-        foreach ($this->reader->getClassMetadata($listener, TargetAttribute::class) as $attribute) {
38
+        foreach ($this->reader->getClassMetadata($listener, TargetAttribute::class) as $attribute){
39 39
             // Analyze the target class from TargetAttribute attribute.
40 40
             $refl = new \ReflectionClass($attribute->class);
41 41
 
42 42
             // Check if the target class has an attribute
43 43
             $attr = $refl->getAttributes(\Attribute::class)[0] ?? null;
44 44
 
45
-            if ($attr === null) {
45
+            if ($attr === null){
46 46
                 continue;
47 47
             }
48 48
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@  discard block
 block discarded – undo
26 26
     {
27 27
         $listener = new \ReflectionClass($listener);
28 28
 
29
-        foreach ($this->reader->getClassMetadata($listener, TargetClass::class) as $attribute) {
29
+        foreach ($this->reader->getClassMetadata($listener, TargetClass::class) as $attribute)
30
+        {
30 31
             // Analyze the target class from TargetClass attribute.
31 32
             yield new ListenerDefinition(
32 33
                 listenerClass: $listener->getName(),
@@ -35,14 +36,16 @@  discard block
 block discarded – undo
35 36
             );
36 37
         }
37 38
 
38
-        foreach ($this->reader->getClassMetadata($listener, TargetAttribute::class) as $attribute) {
39
+        foreach ($this->reader->getClassMetadata($listener, TargetAttribute::class) as $attribute)
40
+        {
39 41
             // Analyze the target class from TargetAttribute attribute.
40 42
             $refl = new \ReflectionClass($attribute->class);
41 43
 
42 44
             // Check if the target class has an attribute
43 45
             $attr = $refl->getAttributes(\Attribute::class)[0] ?? null;
44 46
 
45
-            if ($attr === null) {
47
+            if ($attr === null)
48
+            {
46 49
                 continue;
47 50
             }
48 51
 
Please login to merge, or discard this patch.