| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 3 | public function isGrantedForUser(string $name, string $parent, UserInterface $user): bool |
|
| 58 | { |
||
| 59 | 3 | $feature = $this->manager->find($name, $parent); |
|
| 60 | |||
| 61 | 3 | if (!$feature instanceof FeatureEntity) { |
|
|
|
|||
| 62 | 1 | return false; |
|
| 63 | } |
||
| 64 | |||
| 65 | 2 | return $this->security->isGrantedForUser($feature, $user); |
|
| 66 | } |
||
| 68 |