| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 87.5% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class BookableIsAdminApproved implements NamedAssertion |
||
| 15 | { |
||
| 16 | public function getName(): string |
||
| 17 | { |
||
| 18 | return 'le réservable est un cours'; |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Assert that the bookable's booking type is admin approved. |
||
| 23 | * |
||
| 24 | * @param \Application\Acl\Acl $acl |
||
| 25 | * @param RoleInterface $role |
||
| 26 | 2 | * @param ResourceInterface $resource |
|
| 27 | * @param string $privilege |
||
| 28 | 2 | * |
|
| 29 | * @return bool |
||
| 30 | */ |
||
| 31 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.