Total Complexity | 2 |
Total Lines | 13 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | abstract class Evaluator |
||
15 | { |
||
16 | 7 | protected function has(Builder $repository): Closure |
|
17 | { |
||
18 | 7 | return function (array $grantableNames) use ($repository): bool { |
|
19 | 7 | return ($this->same($grantableNames)($repository))->exists(); |
|
20 | 7 | }; |
|
21 | } |
||
22 | |||
23 | 10 | protected function same(array $grantableNames): Closure |
|
27 | 10 | }; |
|
28 | } |
||
30 |