Passed
Branch main (685012)
by Breno
10:21
created
Category
src/Specification/AttributeTarget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,6 @@
 block discarded – undo
14 14
 
15 15
     public function isSatisfiedBy(ParsedAttribute $attribute): bool
16 16
     {
17
-        return (bool) ($attribute->attribute()->getTarget() & $this->target);
17
+        return (bool) ($attribute->attribute()->getTarget()&$this->target);
18 18
     }
19 19
 }
Please login to merge, or discard this patch.
src/AttributesFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         array &$reflectionObjects,
55 55
         int $target
56 56
     ): void {
57
-        if ($target & Attribute::TARGET_CLASS) {
57
+        if ($target&Attribute::TARGET_CLASS) {
58 58
             $reflectionObjects[] = $reflectionClass;
59 59
         }
60 60
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         array &$reflectionObjects,
69 69
         int $target
70 70
     ): void {
71
-        if ($target & Attribute::TARGET_PROPERTY) {
71
+        if ($target&Attribute::TARGET_PROPERTY) {
72 72
             foreach ($reflectionClass->getProperties() as $property) {
73 73
                 $reflectionObjects[] = $property;
74 74
             }
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
         int $target
82 82
     ): void {
83 83
         foreach ($reflectionClass->getMethods() as $method) {
84
-            if ($target & Attribute::TARGET_METHOD) {
84
+            if ($target&Attribute::TARGET_METHOD) {
85 85
                 $reflectionObjects[] = $method;
86 86
             }
87
-            if ($target & Attribute::TARGET_PARAMETER) {
87
+            if ($target&Attribute::TARGET_PARAMETER) {
88 88
                 foreach ($method->getParameters() as $parameter) {
89 89
                     $reflectionObjects[] = $parameter;
90 90
                 }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         array &$reflectionObjects,
98 98
         int $target
99 99
     ): void {
100
-        if ($target & Attribute::TARGET_CLASS_CONSTANT) {
100
+        if ($target&Attribute::TARGET_CLASS_CONSTANT) {
101 101
             foreach ($reflectionClass->getReflectionConstants() as $constant) {
102 102
                 $reflectionObjects[] = $constant;
103 103
             }
Please login to merge, or discard this patch.