| Total Complexity | 8 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 96.43% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class JobTaskController extends Controller |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Converts a JobPosterKeyTask to an array appropriate for the api. |
||
| 14 | * |
||
| 15 | * @param JobPosterKeyTask $model |
||
|
1 ignored issue
–
show
|
|||
| 16 | * @return void |
||
|
1 ignored issue
–
show
|
|||
| 17 | */ |
||
| 18 | 3 | public function toApiArray(JobPosterKeyTask $model) |
|
| 19 | { |
||
| 20 | 3 | return array_merge($model->toArray(), $model->getTranslationsArray()); |
|
| 21 | } |
||
| 22 | |||
| 23 | 1 | public function indexByJob(JobPoster $jobPoster) |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Update the set of tasks associated with a Job. |
||
| 32 | * |
||
| 33 | * @param App\Http\Requests\BatchUpdateJobTask $request |
||
|
2 ignored issues
–
show
|
|||
| 34 | * @param \App\Models\JobPoster $jobPoster |
||
|
2 ignored issues
–
show
|
|||
| 35 | * @return \Illuminate\Http\Response |
||
| 36 | */ |
||
| 37 | 2 | public function batchUpdate(BatchUpdateJobTask $request, JobPoster $jobPoster) |
|
| 76 |