| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class CanUpdateCard implements NamedAssertion |
||
| 15 | { |
||
| 16 | public function getName(): string |
||
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Assert that the card that the object belongs to can be updated. |
||
| 23 | * |
||
| 24 | * @param \Application\Acl\Acl $acl |
||
| 25 | * @param ModelResource $resource |
||
| 26 | * @param string $privilege |
||
| 27 | * |
||
| 28 | * @return bool |
||
| 29 | */ |
||
| 30 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
||
| 39 |
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.