PredefinedMessageService   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A update() 0 7 1
1
<?php
2
3
namespace App\Services;
4
5
use App\Http\Requests\PredefinedMessageUpdateRequest;
6
use App\Models\PredefinedMessage;
7
8
class PredefinedMessageService
9
{
10
    public static function update($messageId, PredefinedMessageUpdateRequest $request)
11
    {
12
        $recruitment = PredefinedMessage::findOrFail($messageId);
13
        $input = $request->validated();
14
        $recruitment->fill($input)->save();
15
16
        return $recruitment;
17
    }
18
}
19