| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 50% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Metaboxes |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param int $postId |
||
| 11 | * @return void |
||
| 12 | */ |
||
| 13 | 1 | public function saveAssignedToMetabox($postId) |
|
| 14 | { |
||
| 15 | 1 | if (!wp_verify_nonce(glsr(Helper::class)->filterInput('_nonce-assigned-to'), 'assigned_to')) { |
|
| 16 | 1 | return; |
|
| 17 | } |
||
| 18 | $assignedTo = strval(glsr(Helper::class)->filterInput('assigned_to')); |
||
| 19 | update_post_meta($postId, 'assigned_to', $assignedTo); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param int $postId |
||
| 24 | * @return mixed |
||
| 25 | */ |
||
| 26 | 1 | public function saveResponseMetabox($postId) |
|
| 36 | ]))); |
||
| 37 | } |
||
| 39 |