Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Coverage | 71.43% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class StatusIsNew implements NamedAssertion |
||
15 | { |
||
16 | public function getName(): string |
||
17 | { |
||
18 | return "la demande n'est pas encore traitée"; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Assert that the expense claim is new (not processed yet). |
||
23 | * |
||
24 | * @param \Application\Acl\Acl $acl |
||
25 | * @param RoleInterface $role |
||
26 | * @param ResourceInterface $resource |
||
27 | * @param string $privilege |
||
28 | * |
||
29 | * @return bool |
||
30 | */ |
||
31 | 4 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
|
41 | } |
||
42 | } |
||
43 |
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.