@@ -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 |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | protected function mapWebRoutes() |
60 | 60 | { |
61 | 61 | Route::middleware('web') |
62 | - ->namespace($this->namespace) |
|
63 | - ->group(base_path('routes/web.php')); |
|
62 | + ->namespace($this->namespace) |
|
63 | + ->group(base_path('routes/web.php')); |
|
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | protected function mapApiRoutes() |
74 | 74 | { |
75 | 75 | Route::middleware('api') |
76 | - ->namespace($this->namespace) |
|
77 | - ->group(base_path('routes/api.php')); |
|
76 | + ->namespace($this->namespace) |
|
77 | + ->group(base_path('routes/api.php')); |
|
78 | 78 | } |
79 | 79 | } |