Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.2559 |
Changes | 0 |
1 | <?php |
||
14 | 1 | public function saveAssignedToMetabox($postId) |
|
15 | { |
||
16 | 1 | if (!wp_verify_nonce(glsr(Helper::class)->filterInput('_nonce-assigned-to'), 'assigned_to')) { |
|
17 | 1 | return; |
|
18 | } |
||
19 | $assignedTo = strval(glsr(Helper::class)->filterInput('assigned_to')); |
||
20 | glsr(Database::class)->update($postId, 'assigned_to', $assignedTo); |
||
21 | } |
||
40 |