@@ -14,6 +14,6 @@ |
||
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 | } |
@@ -54,7 +54,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | } |