Test Failed
Pull Request — master (#878)
by butschster
09:31 queued 01:39
created
src/Tokenizer/src/Listener/AttributesParser.php 1 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.