1 | <?php |
||
31 | class IssuePolicy |
||
32 | { |
||
33 | use HandlesAuthorization, ProjectAccess; |
||
34 | |||
35 | public function before(UserInterface $user, $ability) |
||
41 | |||
42 | /** |
||
43 | * Determine whether the user can view the issue. |
||
44 | * |
||
45 | * @param User $user |
||
46 | * @param Issue $issue |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function view(User $user, Issue $issue, Project $project) |
||
68 | |||
69 | /** |
||
70 | * Determine whether the user can create issues. |
||
71 | * |
||
72 | * @param User $user |
||
73 | * |
||
74 | * @return mixed |
||
75 | */ |
||
76 | public function create(User $user, Project $project) |
||
84 | |||
85 | /** |
||
86 | * Determine whether the user can update the issue. |
||
87 | * |
||
88 | * @param User $user |
||
89 | * @param Issue $issue |
||
90 | * |
||
91 | * @return mixed |
||
92 | */ |
||
93 | public function update(User $user, Issue $issue, Project $project = null) |
||
111 | |||
112 | /** |
||
113 | * Determine whether the user can delete the issue. |
||
114 | * |
||
115 | * @param User $user |
||
116 | * @param Issue $issue |
||
117 | * |
||
118 | * @return mixed |
||
119 | */ |
||
120 | public function delete(User $user, Issue $issue) |
||
126 | |||
127 | public function lockQuote(User $user, Issue $issue, Project $project = null) |
||
132 | |||
133 | |||
134 | /** |
||
135 | * Check if a user is allowed to see the issue quote. |
||
136 | * |
||
137 | * @param UserInterface $user |
||
138 | * |
||
139 | * @return bool |
||
140 | */ |
||
141 | public function viewLockedQuote(User $user, Issue $issue) |
||
152 | } |
||
153 |
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.