Passed
Branch develop (6754ff)
by Adam
15:29
created
app/Http/Controllers/ApplyController.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,8 +32,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.