Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function assert(Acl $acl, ?RoleInterface $role = null, ?ResourceInterface $resource = null, $privilege = null) |
||
29 | { |
||
30 | /** @var Account $account */ |
||
31 | $account = $resource->getInstance(); |
||
|
|||
32 | |||
33 | if (!_em()->getRepository(Account::class)->hasTransaction($account)) { |
||
34 | return true; |
||
35 | } |
||
36 | |||
37 | return $acl->reject('the account, or its sub-accounts, have transaction lines'); |
||
38 | } |
||
40 |
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.