@@ -32,8 +32,9 @@ discard block |
||
32 | 32 | { |
33 | 33 | $source = Source::where('key', $sourceKey)->with('recruitment.formFields')->get()->first(); |
34 | 34 | |
35 | - if (empty($source)) |
|
36 | - return response()->json(['message' => 'Recruitment not found'], 404); |
|
35 | + if (empty($source)) { |
|
36 | + return response()->json(['message' => 'Recruitment not found'], 404); |
|
37 | + } |
|
37 | 38 | |
38 | 39 | return new ApplyFormResource($source->recruitment); |
39 | 40 | } |
@@ -41,8 +42,9 @@ discard block |
||
41 | 42 | public function apply(CandidatesCreateRequest $request) |
42 | 43 | { |
43 | 44 | $source = Source::where('key', $request->get('key'))->get()->first(); |
44 | - if (empty($source)) |
|
45 | - return response()->json(['message' => 'Recruitment not found'], 404); |
|
45 | + if (empty($source)) { |
|
46 | + return response()->json(['message' => 'Recruitment not found'], 404); |
|
47 | + } |
|
46 | 48 | |
47 | 49 | $candidate = CandidateCreator::createCandidate($request, $this->tenantManager); |
48 | 50 |