@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function indexByJob(JobPoster $jobPoster) |
24 | 24 | { |
25 | - $toApiArray = array($this, 'toApiArray'); |
|
25 | + $toApiArray = array ($this, 'toApiArray'); |
|
26 | 26 | $taskArray = JobPosterKeyTask::where('job_poster_id', $jobPoster->id)->get()->map($toApiArray); |
27 | 27 | return response()->json($taskArray); |
28 | 28 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | public function batchUpdate(BatchUpdateJobTask $request, JobPoster $jobPoster) |
38 | 38 | { |
39 | - $toApiArray = array($this, 'toApiArray'); |
|
39 | + $toApiArray = array ($this, 'toApiArray'); |
|
40 | 40 | |
41 | 41 | $newTasks = collect($request->validated()); // Collection of JobPosterKeyTasks. |
42 | 42 | $oldTasks = $jobPoster->job_poster_key_tasks; |