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.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.