Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class RecruitmentUserController extends Controller |
||
12 | { |
||
13 | /** |
||
14 | * Create a new controller instance. |
||
15 | * |
||
16 | * @param TenantManager $tenantManager |
||
17 | * |
||
18 | * @return void |
||
19 | */ |
||
20 | public function __construct(TenantManager $tenantManager) |
||
21 | { |
||
22 | RecruitmentResource::setTenantManager($tenantManager); //workaround - not the best but it works well |
||
23 | } |
||
24 | |||
25 | public function list(Recruitment $recruitment) |
||
26 | { |
||
27 | return response()->json($recruitment->grantedUsers); |
||
28 | } |
||
29 | |||
30 | public function create(RecruitmentUserCreateRequest $request, Recruitment $recruitment) |
||
37 | } |
||
38 | |||
39 | public function delete(Recruitment $recruitment, $userId) |
||
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.