Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
19 | class OrganisationVoter extends BaseVoter |
||
20 | { |
||
21 | /** |
||
22 | * @param string $attribute An attribute |
||
23 | * @param mixed $subject The subject to secure, e.g. an object the user wants to access or any other PHP type |
||
24 | * |
||
25 | * @return bool True if the attribute and subject are supported, false otherwise |
||
26 | */ |
||
27 | protected function supports($attribute, $subject) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Perform a single access check operation on a given attribute, subject and token. |
||
34 | * It is safe to assume that $attribute and $subject already passed the "supports()" method check. |
||
35 | * |
||
36 | * @param string $attribute |
||
37 | * @param Organisation $subject |
||
38 | * |
||
39 | * @return bool |
||
40 | */ |
||
41 | protected function voteOnAttribute($attribute, $subject, TokenInterface $token) |
||
46 |
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.